$contents =''; foreach($filelist as $file ) { if( is_dir( $file ) || strstr(dirname($file), "scripts" )) continue; $filepath = str_replace( $path.'/', '', $file ); $contents .= '<filename>'.$filepath."</filename>\n"; } file_put_contents( 'extplorer_filelist.txt', $contents ); */ //------------------------------------------------------------------------------ if ($action == "post") { $action = extGetParam($_REQUEST, "do_action"); } elseif (empty($action)) { $action = "list"; } if ($action != 'show_error') { ext_Result::init(); } if (defined('_LOGIN_REQUIRED')) { return; } // Empty the output buffer if this is a XMLHttpRequest if (ext_isXHR()) { error_reporting(0); while (@ob_end_clean()) { } } if (file_exists(_EXT_PATH . '/include/' . strtolower(basename($action)) . '.php')) { require_once _EXT_PATH . '/include/' . strtolower(basename($action)) . '.php'; } $classname = 'ext_' . $action; if (class_exists(strtolower($classname)) && is_callable(array($classname, 'execaction'))) {