<?php include_once "include/template.class.php"; include_once "include/admin.class.php"; $template = new DxTemplate(); $section = new Admin(); @($action = intval($_GET['action'])); print $template->Head("Administration Page"); print $template->includeCSS("template/Default/style.tmp"); print $template->includeJS("include/menu.js"); print $template->openBody(0); print '<center>'; print $template->openDiv("header"); print $template->closeDiv(); print $template->setMenu(explode('/', $_SERVER['PHP_SELF']), 4); print $template->openDiv("body"); print $section->setMenu(); print '<h2 align="center">Administration Pannel Control</h2>'; if ($section->is_admin()) { if ($action == 1) { print '<form method="POST" action="?action=1"> <table width="100%" valign="top"> <tr> <td> Name: </td> <td> <input type="text" name="name" /> </td> </tr> <tr> <td>Description: </td> <td><input type="text" name="description" /> </td> </tr> <tr />
<?php include "include/template.class.php"; include "include/user.class.php"; include_once "include/mysql.class.php"; $template = new DxTemplate(); $register = new User(); print $template->Head("Register"); print $template->includeCSS("template/Default/style.tmp"); print $template->includeJS("include/menu.js"); print $template->openBody(1); print '<center>'; print $template->openDiv("header"); print $template->closeDiv(); print $template->openDiv("body"); print $template->setMenu(explode('/', $_SERVER['PHP_SELF']), 4); if ($register->is_user()) { die("Ma Sei cretino? sei loggato e vuoi registrarti? LOL"); } print '<form method="POST"> <table width="100%" valign="top"> <tr> <td> Nickname: </td> <td> <input type="text" name="username" /> </td> </tr> <tr> <td>Password: </td> <td><input type="password" name="password" /> </td> </tr> <tr /> <tr>