<?php include "../config/config.php"; include "../common/mysql.class.php"; include "action.php"; $db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, ALL_PS, $mydbcharset); session_start(); echo $_SESSION['vcode']; $uid = $_SESSION['admin_uid']; if (!empty($uid)) { header('location:index.php'); } else { if (!empty($_POST['username']) && !empty($_POST['password'])) { $db->getUserLogin($_POST['username'], $_POST['password'], $_POST['vcode']); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin Panel</title> <link href="css/manager.css" type="text/css" rel="stylesheet" /> <script language="javascript" src="../js/manager.js"></script> </head> <body style="background-color:#333333;"> <div align="center"> <div class="login"> <div class="top"><div class="logo"><a href="#" target="_blank"><img src="images/logo.jpg" width="150" /></a></div></div> <div class="login_box"> <form action="" method="post" name="login" id="login">