CMS Eleanor - Поиск
Полная версия этой страницы: Официальный форум Eleanor CMS » RS 5 ,ошибка загрузки файлов.
Официальный форум Eleanor CMS » Для вебмастеров и владельцев сайтов » Комната программистов
Андрей
Доброй ночи.
Помогите пжалста, перестали загружаться файлы на сайт.
в логах есть вот такая штука

Цитата
Notice: Undefined variable: p Line: 409 in file /var/www/----/data/www/---/classes/others/class_uploader.php
URL: /ajax.php?JsHttpRequest=13644959281418-xml
Date: 2013-03-28 20:13:13


Notice: Undefined variable: p Line: 409 in file /var/www/---/data/www/---/classes/others/class_uploader.php
URL: /ajax.php?JsHttpRequest=136449593353710-xml
Date: 2013-03-28 20:13:19


Notice: Undefined variable: p Line: 409 in file /var/www/---/data/www/---/classes/others/class_uploader.php
URL: /ajax.php?JsHttpRequest=136449593755412-xml


Notice: Undefined variable: p Line: 409 in file /var/www/---3/data/www/---i/classes/others/class_uploader.php
URL: /ajax.php?JsHttpRequest=136449594352514-xml
Date: 2013-03-28 20:13:29


Notice: Undefined variable: p Line: 409 in file /var/www/---/data/www/---/classes/others/class_uploader.php
URL: /ajax.php?JsHttpRequest=136449594928816-xml
Date: 2013-03-28 20:13:34
Alexander
Андрей, покажите, пожалуйста, что у вас написано в 409й строке. Заодно покажите +-5 строк.
Андрей
     $path=$this->DirPath($start_folder);
        $to=trim($to,'. ');
        if($this->error or !file_exists($path.'/'.$what) or preg_match('%[\s#"\'\\/:*\?<>|]+%',$to)>0 or file_exists($path.'/'.$to))
            return false;
        $type=strtolower(substr(strrchr($what,'.'),1));
409 - $new_type=false===$p=strrpos($to,'.') ? strtolower(substr($to,$p+1)) : '';
        $to=$path.'/'.$to;
        $path.='/'.$what;
        if($this->allowed_types and !in_array($new_type,$this->allowed_types))
            return false;
        if(in_array($type,$this->preview) and in_array($new_type,$this->preview) and is_file($path))
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.