Link to the post-redirect url

This commit is contained in:
Laurent Raufaste 2013-05-13 21:52:41 -04:00
parent caad286ff4
commit f98540accf

View File

@ -110,7 +110,7 @@ while (is_resource($result) && $row = mysql_fetch_object($result))
$size = getimagesize($_SERVER["DOCUMENT_ROOT"].'/screenshots/'.$screenshot);
$screenshot_type = $size['mime'];
$prod->screenshot->url = 'http://www.pouet.net/screenshots/'.$screenshot;
$prod->screenshot->url = 'http://pouet.net/screenshots/'.$screenshot;
$prod->screenshot->filesize = $screenshot_size;
$prod->screenshot->type = $size['mime'];
}
@ -234,7 +234,7 @@ while (is_resource($result) && $row = mysql_fetch_object($result))
$link = new stdClass();
$link->name = 'pouet.net';
$link->url = 'http://www.pouet.net/prod.php?which='.$row->id;
$link->url = 'http://pouet.net/prod.php?which='.$row->id;
$prod->affiliate_links[] = $link;
@ -401,4 +401,4 @@ if (isset($dbl))
}
echo json_encode($output);
?>
?>