".$HANDLERS_DIRECTORY."htmlarea/
".$ADMIN_DIRECTORY."htmlarea/
"; $ns -> tablerender(ADLAN_ERR_1, $text);*/ $emessage->add($HANDLERS_DIRECTORY."htmlarea/
".$ADMIN_DIRECTORY."htmlarea/", E_MESSAGE_WARNING); } /* Not used in 0.8 // check for old modules. if(getperms('0') && isset($pref['modules']) && $pref['modules'] && $sql->db_Field("plugin",5) == "plugin_addons") { $mods=explode(",", $pref['modules']); $thef = "e_module.php"; foreach ($mods as $mod) { if (is_readable(e_PLUGIN."{$mod}/module.php")) { $mod_found[] = e_PLUGIN."{$mod}/module.php"; } } if($mod_found) { $text = ADLAN_ERR_5." ".$thef.":


".ADLAN_ERR_6."
"; $ns -> tablerender(ADLAN_ERR_4,$text); } } */ // check for file-types; $allowed_types = get_filetypes(); // Get allowed types according to filetypes.xml or filetypes.php if (count($allowed_types) == 0) { $allowed_types = array('zip' => 1, 'gz' => 1, 'jpg' => 1, 'png' => 1, 'gif' => 1); $emessage->add("Setting default filetypes: ".implode(', ',array_keys($allowed_types)), E_MESSAGE_INFO); } //echo "Allowed filetypes = ".implode(', ',array_keys($allowed_types)).'
'; // avatar check. $public = array(e_UPLOAD, e_UPLOAD.'avatars'); $exceptions = array(".","..","/","CVS","avatars","Thumbs.db",".ftpquota",".htaccess","php.ini",".cvsignore",'e107.htaccess'); //TODO use $file-class to grab list and perform this check. foreach ($public as $dir) { if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (is_dir($dir."/".$file) == FALSE && !in_array($file,$exceptions)) { $fext = substr(strrchr($file, "."), 1); if (!array_key_exists(strtolower($fext),$allowed_types) ) { if ($file == 'index.html' || $file == "null.txt") { if (filesize($dir.'/'.$file)) { $potential[] = str_replace('../', '', $dir).'/'.$file; } } else { $potential[] = str_replace('../', '', $dir).'/'.$file; } } } } closedir($dh); } } } if (isset($potential)) { //$text = ADLAN_ERR_3."

"; $emessage->add(ADLAN_ERR_3, E_MESSAGE_WARNING); $text = '