exit;
}
- $default = 'images/person-175.jpg';
+ $default = 'images/person-300.jpg';
$public = true;
if (isset($type)) {
intval($resolution)
);
if (DBA::isResult($r)) {
- $sql_extra = Security::permissions_sql($r[0]['uid']);
+ $sql_extra = Security::getPermissionsSQLByUserId($r[0]['uid']);
// Now we'll see if we can access the photo
$r = q("SELECT * FROM `photo` WHERE `resource-id` = '%s' AND `scale` <= %d $sql_extra ORDER BY scale DESC LIMIT 1",
if (isset($resolution)) {
switch ($resolution) {
case 4:
- $data = file_get_contents('images/person-175.jpg');
+ $data = file_get_contents('images/person-300.jpg');
$mimetype = 'image/jpeg';
break;
case 5: