universal gallery link in php !

This commit is contained in:
tmos 2014-05-04 14:57:39 +02:00
parent 1eef7b312b
commit 91e519fd96
2 changed files with 1 additions and 2 deletions

View file

@ -38,7 +38,7 @@ $label_noimages = "No images"; //Empty folder text
$label_loading = "Loading..."; //Thumbnail loading text $label_loading = "Loading..."; //Thumbnail loading text
//RSS SETTINGS //RSS SETTINGS
$gallery_link = "http://you.minigal.adress/"; //don't forget the final / ! $gallery_link = substr("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 0, strlen("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])-7); // the -7 is to remove "rss.php"
$description = "MiniGal Nano"; $description = "MiniGal Nano";
$nb_items_rss = 25; //number ef elements to display in the feed. If you add a lot of pictures at the time, consider increasing this number $nb_items_rss = 25; //number ef elements to display in the feed. If you add a lot of pictures at the time, consider increasing this number
$SkipExts = array('html', 'txt', 'php', "gitignore"); //Files with one of this extension will not be displayed on the RSS feed $SkipExts = array('html', 'txt', 'php', "gitignore"); //Files with one of this extension will not be displayed on the RSS feed

View file

@ -20,7 +20,6 @@
$FileExt = strtolower(substr(strrchr($Current ,'.'),1)); $FileExt = strtolower(substr(strrchr($Current ,'.'),1));
if (in_array($FileExt, $SkipFileExts)===false) // Should we display this extension ? if (in_array($FileExt, $SkipFileExts)===false) // Should we display this extension ?
$current_adress = $gallery_link . "/" . $Folder.'/'. $Current; $current_adress = $gallery_link . "/" . $Folder.'/'. $Current;
#debug echo "display current_adress : ". $current_adress . "<br>";
$content .= $current_adress. "\n"; $content .= $current_adress. "\n";
} }
} }