$api_url = "http://chart.apis.google.com/chart?chs=$size&chld=L|0&choe=UTF-8&cht=qr&chl=".urlencode((!empty($url->domain) ? $url->domain : $this->config["url"])."/{$this->action}?source=qr");
header("Location: $api_url");
exit;
<?php | |
define("SHORTENER_URL", "http://yoursite.com"); | |
define("SHORTENER_KEY", "123456789"); | |
/**** Sample PHP Function ***/ | |
function shorten($url, $custom = "", $format = "json") { | |
$api_url = SHORTENER_URL."/api/?key=".SHORTENER_KEY; | |
$api_url .= "&url=".urlencode(filter_var($url, FILTER_SANITIZE_URL)); | |
if(!empty($custom)){ |
GET http://yourwebsite.com/api/details |
GET http://yourwebsite.com/api/urls |
<?php | |
// Get users list who have their profile set to public | |
$users = $this->db->get("user", ["public" => "1"], ["limit"=>(($this->page-1)*$this->limit).", {$this->limit}","count"=>TRUE]); | |
// Generate Pagination | |
if(($this->db->rowCount%$this->limit)<>0) { | |
$max=floor($this->db->rowCount/$this->limit)+1; | |
} else { | |
$max=floor($this->db->rowCount/$this->limit); | |
} |
$api_url = "http://chart.apis.google.com/chart?chs=$size&chld=L|0&choe=UTF-8&cht=qr&chl=".urlencode((!empty($url->domain) ? $url->domain : $this->config["url"])."/{$this->action}?source=qr");
header("Location: $api_url");
exit;
To fix the issue, open the file includes/User.class.php go to line 1673 to find
if(($width < 500 && $height < 500) || ($width/$height) != 1) return Main::redirect("user/splash/create",array("danger",e("Avatar must be either a 100x100 PNG or a JPEG (Max 300KB).")));
and replace that by
if(($width > 500 && $height > 500) || ($width/$height) != 1) return Main::redirect("user/splash/create",array("danger",e("Avatar must be either a 100x100 PNG or a JPEG (Max 300KB).")));