Code: Select all
[phpBB Debug] PHP Notice: in file /portal/includes/functions_upload.php on line 159: Undefined variable: mod_dir
Code: Select all
[phpBB Debug] PHP Notice: in file /portal/includes/functions_upload.php on line 159: Undefined variable: mod_dir
Code: Select all
[phpBB Debug] PHP Notice: in file /portal/includes/functions_upload.php on line 58: Undefined index: NO_UPLOAD_FILE
Code: Select all
// make sure we set $mod_dir to the correct folder after the above step
$mod_dir = (isset($new_mod_dir)) ? $new_mod_dir : $mod_dir;
Code: Select all
// check root folder
$relative_mod_dir = (file_exists("$mod_dir/root")) ? "$mod_dir/root" : $mod_dir;
Code: Select all
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($mod_dir)); // requires PHP 5
Code: Select all
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($relative_mod_dir)); // requires PHP 5
Code: Select all
foreach($iterator as $cur_file)
{
Code: Select all
if (in_array($cur_file->getFilename(), array('.', '..', 'license.txt')))
{
continue;
}
Code: Select all
$cur_path = str_replace($mod_dir . '/', '', $cur_path);
$cut_pos = strpos($cur_path, '/');
// Only allow files in adm, language, portal and styles folder
if(!in_array(substr($cur_path, 0, $cut_pos), array('adm', 'language', 'portal', 'styles')) && $cur_file->getFilename() != 'license.txt')
Code: Select all
$cur_path = str_replace($relative_mod_dir . '/', '', $cur_path);
$cut_pos = strpos($cur_path, '/');
// Only allow files in adm, language, portal and styles folder
if (!in_array(substr($cur_path, 0, $cut_pos), array('adm', 'language', 'portal', 'styles')))
Code: Select all
$actions['NEW_FILES'][$mod_dir . '/' . $cur_path] = $phpbb_root_path . $cur_path;
Code: Select all
$actions['NEW_FILES'][$relative_mod_dir . '/' . $cur_path] = $phpbb_root_path . $cur_path;
Code: Select all
@chmod($to, octdec(0644));
I've noticed that tooFiles attributes after uploading = 420
Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_portal.php on line 845: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag