petyasb
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Код: $this->SendMSG("Socket closed"); } } } function _cmp_list_enums($a,$b) {return strcmp($a["name"],$b["name"]); } function _create_list($recreate = false) { global $list,$_COOKIE,$systemfile,$show_all,$workpath; // if ($list && $recreate === false) return true; $files_lst = $workpath.DIRECTORY_SEPARATOR."files.lst"; $glist=array(); if(($show_all === true) && ($_COOKIE["showAll"] == 1)) { $dir = dir($workpath.DIRECTORY_SEPARATOR); while(false !== ($file = $dir->read())) { if($file[0] != "." && (!in_array($file,$systemfile)) && is_file($workpath.DIRECTORY_SEPARATOR.$file) && is_readable($workpath.DIRECTORY_SEPARATOR.$file)) { $file = $workpath.DIRECTORY_SEPARATOR.$file; $time = filectime($file); while(isset($glist[$time])) $time++; $glist[substr(md5(basename($file)),8,8)] = array("name" => realpath($file), "size" => bytesToKbOrMb(getfilesize($file)), "date" => $time); } } $dir->close(); @uasort($glist,"_cmp_list_enums"); } else { if(@file_exists($files_lst)) { $glist = file($files_lst); $dlist = array(); foreach ($glist as $key => $record) { foreach(unserialize($record) as $field => $value) { $listReformat[$key][$field] = $value; if($field == "date") $date = $value; if($field == "name") $filename = $value; } if (!@file_exists($filename)) { unset($glist[$key], $listReformat[$key]); continue; } if (!isset($dlist[$filename]) || ($dlist[$filename]< $date)) { unset($glist[$dlist[$filename]]); $dlist[$filename] = $date; $glist[substr(md5(basename($filename)),8,8)] = $listReformat[$key]; } unset($glist[$key], $listReformat[$key]); } } } $list=$glist; // print_r($list); } ?> | у меня в верху каждой страницы появляется вот этот текст, и не показываются картинки rapidshare, не подскажите в чём может быть проблема? |