include("../config.php"); include("padm.php"); mysql_select_db(GAZ_DB_DATABASE); include("../includes/functions/general.php"); include("../includes/functions/validate.php"); include("../includes/functions/gallery.php"); include("../includes/functions/html.php"); include("../includes/functions/admin.php"); include("../includes/messages.php"); session_name('ASESSID'); session_start(); if(!empty($_GET['action'])) { $data_query = mysql_query("SELECT * FROM " . GAZ_TBL_ADMIN . " WHERE login = '" . addslashes($_POST['login']) . "' AND password = PASSWORD('" . trim(addslashes($_POST['pass'])) . "')"); if(mysql_num_rows($data_query)) { $data = mysql_fetch_assoc($data_query); $_SESSION['admin_login'] = 1; $_SESSION['admin_id'] = $data['id']; $_SESSION['admin_name'] = stripslashes($data['name']); $data_query = mysql_query("SELECT module_id FROM " . GAZ_TBL_ADMIN2MODULE . " WHERE admin_id = '" . $_SESSION['admin_id'] . "'"); $allow_modules = array(-1); while($data = mysql_fetch_assoc($data_query)) { array_push($allow_modules, $data['module_id']); } $_SESSION['allow_modules'] = $allow_modules; if(check_key()) { redirect(href_admin_link('index.php', '')); } else { redirect(href_admin_link('index.php', 'cp=configure')); } } else { $error_mes = 'Invalid Username or Password.'; } } ?>
|
Photo Gallery Admin Panel = @$error_mes; ?> If you have forgotten your password then click here to have password reset data emailed to you at the address you saved in the Configure section. |
| Powered by: WebsitesForValue.com |