"; echo print_r($data,true); echo ""; */ if ($c) usort($data['file']['num'], "compare_" . ($_REQUEST['sort_dir'] ? $_REQUEST['sort_dir'] : "desc") . "_" . ($_REQUEST['sort_by'] ? $_REQUEST['sort_by'] : "name")); // Headers header("Expires: " . gmdate("D, d M Y H:i:s"). " GMT"); if (!$noheadercache) { if ($_SERVER['SERVER_PROTOCOL'] == "HTTP/1.0") $nocache = "Pragma: no-cache"; else $nocache = "Cache-Control: no-cache, must-revalidate"; header($nocache); } // XSS sanitize $data['host_name'] = htmlspecialchars($data['host_name']); $data['server_name'] = htmlspecialchars($data['server_name']); $data['dir_name'] = htmlspecialchars($data['dir_name']); $data['port'] = htmlspecialchars($data['port']); echo template('tpl/dir_list.tpl', $data); ?>