- new version of create_file_listing.php for future 1.4 branch

- new feature : remote site management (generate listing, update, clean,
  delete)

- on category page, no display of filesize if info not available in database


git-svn-id: http://piwigo.org/svn/trunk@526 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-09-18 16:09:47 +00:00
parent aa392c1fdd
commit 094bbe3cee
8 changed files with 1041 additions and 97 deletions
+2 -7
View File
@@ -103,15 +103,10 @@ while ($row = mysql_fetch_array($result))
// message in title for the thumbnail
$thumbnail_title = $row['file'];
if (!isset($row['filesize']) or $row['filesize'] == '')
if (isset($row['filesize']))
{
$filesize = floor(filesize($cat_directory.$row['file']) / 1024);
$thumbnail_title .= ' : '.$row['filesize'].' KB';
}
else
{
$filesize = $row['filesize'];
}
$thumbnail_title .= ' : '.$filesize.' KB';
// url link on picture.php page
$url_link = PHPWG_ROOT_PATH.'picture.php?';
if ($page['cat'] == 'random')