*/ ?> <div style="text-align:left;"><h2>- Manage Modules</h2></div> <?php if (!defined("ADMIN_FILE")) { die("Access denied."); } echo "Do a database for the index modules, thats all this really is anyway.<br />"; include $basedir . 'modules/functions.php'; if (isset($_GET['edit'])) { $module_id = $_GET['edit']; EditModule($module_id); return; } else { if (isset($_GET['delete'])) { $module_id = $_GET['delete']; DeleteModule($module_id); return; } else { if (isset($_GET['create'])) { NewModule(); return; } else { ListModules(); } } } //echo "<table align=\"center\" width=\"200px\"><tr><th>".LinkInternal('Create a Module','?load=admin&op=modules&create=true')."</th></tr></table>"; //ListModules(); ?>
function header() { global $refresh, $adminlang; echo ' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/javascript" src="../sources/admin_templates/richtext.js"></script> '; if (isset($refresh)) { echo '<meta http-equiv="refresh" content="3;url=', $refresh, '">'; } echo ' <title>' . $this->phrase['control_panel_title_bar'] . $_SESSION['pwzlogin'] . '</title>'; print "<style type=\"text/css\">\n"; require_once "../templates/admin_css.css"; print "</style>\n"; print ' </head> <body> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="header"><img src="../images/admin/logo.jpg"></td> <td class="header_right" width="100%"> <font class="header_title">' . $this->phrase['control_panel_header'] . '</font><br /> <a href="index2.php">' . $this->phrase['control_panel_home'] . '</a> | <a href="profile.php">' . $this->phrase['edit_profile'] . '</a> | <a href="logout.php">' . $this->phrase['log_out'] . '</a></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="border"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="160"> <tr> <td style="width: 100%; border: 1px solid #000000; background-color: #FFF;"> <table cellpadding="5" cellspacing="0" width="100%"> <tr><td style="color: #FFFFFF; font-size: 8pt; font-weight: bold; background: #000000;">' . $this->phrase['modules'] . '</td></tr> </table> <div class="menu"> <table cellpadding="0" cellspacing="0" class="menu"> ' . ListModules() . ' </table> </div> '; if (defined('SUPERADMIN_MODE')) { echo ' <table cellpadding="5" cellspacing="0" width="100%"> <tr><td style="color: #FFFFFF; font-size: 8pt; font-weight: bold; background: #000000;">' . $this->phrase['admin_tools'] . '</td></tr> </table> <div class="menu"> <table cellpadding="0" cellspacing="0" class="menu"> <tr> <td class="menu"><a href="configuration.php">' . $this->phrase['menu_settings'] . '</a></td> </tr> <tr> <td class="menu"><a href="menu_manager.php">' . $this->phrase['menu_menumanager'] . '</a></td> </tr> <tr> <td class="menu"><a href="modules.php">' . $this->phrase[menu_modules] . '</a></td> </tr> <tr> <td class="menu"><a href="templates.php">' . $this->phrase[menu_templates] . ' (Beta)</a></td> </tr> <tr> <td class="menu"><a href="administrators.php">' . $this->phrase[menu_administrators] . '</a></td> </tr> <tr> <td class="menu"><a href="users.php">' . $this->phrase['menu_users'] . '</a></td> </tr> <tr> <td class="menu"><a href="dbtools.php">' . $this->phrase[menu_utilities] . '</a></td> </tr> <tr> <td class="menu"><a href="ver_check.php">' . $this->phrase[menu_updates] . '</a></td> </tr> </table> </div> '; } echo ' </td></tr></table> </td> <td width="100%" valign="top" class="main"> '; }