function doHeader() { global $config_style_name, $jscript, $config_main_menu, $config_sysinfo_only; $config_proftp_admin_name = $GLOBALS['language']['name']['administrator']; if ($config_sysinfo_only) { $config_proftp_admin_name = $GLOBALS['language']['name']['sys_info_only']; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="style/<?php echo $config_style_name . '/' . $config_style_name; ?> .css"> <title><?php echo $config_proftp_admin_name; ?> </title> <script src="jscript/functions.js" type="text/javascript"></script> </head> <body> <table class="outerBounds"> <tr> <td> <table class="box"> <tr><td class="box-main_title" align="center"><?php echo $config_proftp_admin_name; ?> </td></tr> <tr><td><table class="box" style="border-style: none;"><tr><td></td></tr></table></td></tr> </table> <?php if ($config_sysinfo_only == 0) { $main_menu = array(); $main_menu[$GLOBALS['language']['menu']['mainpage']] = 'index.php'; $main_menu[$GLOBALS['language']['menu']['users']] = 'user_list.php'; $main_menu[$GLOBALS['language']['menu']['groups']] = 'group_list.php'; $main_menu[$GLOBALS['language']['menu']['transfers']] = 'transfers.php'; if (sys_statusavailable()) { $main_menu[$GLOBALS['language']['menu']['status']] = 'status.php'; } $main_menu["<spacer>"] = ''; } else { if (sys_statusavailable()) { $main_menu[$GLOBALS['language']['menu']['sysinfo']] = 'index.php'; } } $main_menu[$GLOBALS['language']['menu']['about']] = 'about.php'; $main_menu[$GLOBALS['language']['menu']['manual']] = 'manual.php'; if (!isOldPHP()) { $main_menu[$GLOBALS['language']['menu']['configure']] = 'configure.php'; } doMenu($main_menu); echo '<br><br>'; }
echo '<br><span class="error">' . $GLOBALS['language']['configure']['no_write_config'] . '</span>'; } echo ' </td>'; echo '</tr>'; ?> </table> </td> </tr> </table> <?php $stats_menu[$GLOBALS['language']['configure']['menu_database']] = $_SERVER['PHP_SELF'] . '?section=database'; if ($config_sysinfo_only != 1) { $stats_menu[$GLOBALS['language']['configure']['menu_proftpd']] = $_SERVER['PHP_SELF'] . '?section=proftpd'; } $stats_menu[$GLOBALS['language']['configure']['menu_interface']] = $_SERVER['PHP_SELF'] . '?section=ui'; if (sys_statusavailable()) { $stats_menu[$GLOBALS['language']['configure']['menu_mpoint']] = $_SERVER['PHP_SELF'] . '?section=mountpoint'; } if ($config_sysinfo_only != 1) { $stats_menu[$GLOBALS['language']['configure']['menu_sections']] = $_SERVER['PHP_SELF'] . '?section=sections'; } $stats_menu[$GLOBALS['language']['configure']['menu_filepaths']] = $_SERVER['PHP_SELF'] . '?section=paths'; if ($config_sysinfo_only != 1 && $config_ext['quota']['enabled'] == 1) { $stats_menu[$GLOBALS['language']['configure']['menu_quota']] = $_SERVER['PHP_SELF'] . '?section=quota'; } if ($config_sysinfo_only != 1 && $config_ext['pdns']['enabled'] == 1) { $stats_menu[$GLOBALS['language']['configure']['menu_pdns']] = $_SERVER['PHP_SELF'] . '?section=pdns'; } $stats_menu[$GLOBALS['language']['configure']['menu_extension']] = $_SERVER['PHP_SELF'] . '?section=extensions'; if (is_writable('configuration.xml')) { doMenu($stats_menu);
</tr> <?php if (!$have_table) { if ($config_ext['vhosts']['enabled'] == 1) { notify($language['configure']['ext_vhost_no_table_activated']); } else { notify($language['configure']['ext_vhost_no_table'], 'black'); } } ?> <!-- Quota --> <?php $have_table = $db->get_table_exists('ftpquotalimits') && $db->get_table_exists('ftpquotatallies'); $have_modules = false; $have_section = true; if (sys_statusavailable() != 0) { $system = sys_getinfoclass(); if ($system->get_have_ftpmodule('mod_quotatab.c') && $system->get_have_ftpmodule('mod_quotatab_sql.c')) { $have_modules = true; } $have_section = $system->have_section_proftpd(); } else { // Can't tell, but assume we have the module anyway $have_modules = true; } ?> <tr> <td width="175" class="box-sel-head"><?php echo $language['configure']['ext_quota']; ?> :</td>