Помощник
Здравствуйте, гость ( Вход | Регистрация )
![]() ![]() |
![]() |
![]() |
![]()
Сообщение
#1
|
|
Заглянувший![]() Группа: Eleanor user Сообщений: 16 Регистрация: 2009-03-09 Из: Москва Репутация: ![]() ![]() Всего: нет ![]() |
Доброй ночи.
Помогите пжалста, перестали загружаться файлы на сайт. в логах есть вот такая штука Цитата 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 |
|
|
||
![]() |
![]()
Сообщение
#2
|
|
Eleanor developer![]() Группа: Администраторы Сообщений: 5 261 Регистрация: 2008-11-11 Из: Николаев Версия системы: RC5 Репутация: ![]() ![]() Всего: 67 ![]() |
Андрей, покажите, пожалуйста, что у вас написано в 409й строке. Заодно покажите +-5 строк.
|
|
|
||
![]() |
![]()
Сообщение
#3
|
|
Заглянувший![]() Группа: Eleanor user Сообщений: 16 Регистрация: 2009-03-09 Из: Москва Репутация: ![]() ![]() Всего: нет ![]() |
$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)) |
|
|
||
![]() ![]() |
![]() |
Текстовая версия | ![]() ![]() ![]() ![]() |