questo è il pezzo iniziale dell'index per accedere al pannello di controllo del programma.
Codice PHP:
<?php
session_start();
if ($form == 'sent') {
unset($HTTP_SESSION_VARS);
session_destroy();
}
global $asess_name, $asess_passwd, $asess_data;
session_register("asess_name");
session_register("asess_passwd");
session_register("asess_data");
include($_SERVER['DOCUMENT_ROOT'] . '/vars.php');
$connection = mysql_connect($db_host,$db_user,$db_pwd) or die (mysql_error());
mysql_select_db($db_name,$connection) or die ("Impossibile aprire il database.\n");
if (!isset($HTTP_SESSION_VARS["asess_name"])) {
if ($form = 'sent' && ereg($self_name, $HTTP_REFERER)) {
if ($login == "" || $passwd == "" || ereg('%', $login) || ereg('%', $passwd)) {
echo("<html><head><title>$title</title></head><body><p align=center><font face=$fontface><b>
<span style=\"background-color: $admincolor\"> $title Control Panel </span></b>