function systable($seconds) { global $s_systable, $s_login; list($family, $version) = server_info($s_login['server']); define('SERVER_FAMILY', $family); define('SERVER_VERSION', $version); $s_systable['refresh'] = $seconds; if ($seconds != 0) { $systable = get_systable($s_systable); $html = get_systable_html($systable, $s_systable); } else { $html = ''; } globalize_session_vars(); return jsrsArrayToString(array($html), $delim = '~'); }
$s_systable['order'] = $_GET['order']; } // determine the informations for the selected system table if (have_panel_permissions($s_login['user'], 'db_systable', TRUE)) { $js_stack .= js_request_filter_fields(); if (FALSE && strpos($s_systable['table'], 'MON$') === 0) { // DISABLED ! $have_refresh = TRUE; // TODO: replace with XMLHttpRequest and markableTable() $js_stack .= js_jsrs_refresh_systable(); } else { $have_refresh = FALSE; } if ($s_connected && !empty($s_systable['table'])) { include './inc/system_table.inc.php'; $systable = get_systable($s_systable); $js_stack .= js_markable_table(); } } // // determine the accessible databases for the login panel // $dbfiles = array(); if (isset($ALLOWED_FILES) && count($ALLOWED_FILES) > 0) { foreach ($ALLOWED_FILES as $file) { if (strpos($file, '/') === FALSE && strpos($file, '\\') === FALSE || is_file($file) && have_db_suffix($file)) { $dbfiles[] = $file; } } } elseif (isset($ALLOWED_DIRS) && count($ALLOWED_DIRS) > 0) { foreach ($ALLOWED_DIRS as $dir) {