<?php session_start(); ini_set('short_open_tag', '1'); //error_reporting(0); include_once "../../../config.php"; include_once '../../controller/include.inc.php'; include_once 'constants.php'; include_once dirname(__FILE__) . '/TopSessions.php'; $pn = 0; if ($_REQUEST['pn']) { $pn = $_REQUEST['pn']; } $start = $pn * $LPP; $voiControl = new VoilaController(); $utils = new utils(); $ob_roles = $voiControl->obRoles(); $ob_roles->checkUserLogin(); $mailbox = $voiControl->ObMailBox(); $mailList = $voiControl->ObMailList(); $complaintsObj = $voiControl->ObComplaints(); $temp_maker = $voiControl->obTemplateMaker(); $ob_cms_lang = $voiControl->obcms_lang(); $user_id = $_SESSION['cms-user-id']; $grp_id = $_SESSION['cms-grp-id']; if ($_REQUEST['cmsMID'] != "") { $module_id = $_SESSION['cmsMID'] = $_REQUEST['cmsMID']; } else { $module_id = $_SESSION['cmsMID']; } if ($_REQUEST['table_id'] != "") {
<?php session_start(); error_reporting(0); include_once "../config.php"; include_once 'controller/include.inc.php'; $voiControl = new VoilaController(); $utils = new utils(); $ob_roles = $voiControl->obRoles(); if ($_SESSION['go-cms'] == 'go') { $utils->redirect("views/home/home.php"); } $error_msg = ''; if ($_REQUEST['action'] == 'login') { $username_req = $_REQUEST['username']; $password_req = md5($_REQUEST['password']); $username = $utils->lookupField('cms_users', 'username', 'username', $username_req); $password = $utils->lookupField('cms_users', 'password', 'password', $password_req); $login_result = $ob_roles->login($username_req, $password_req); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>VOILA CMS | Log in</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.5 --> <link rel="stylesheet" href="includes/bootstrap/css/bootstrap.min.css">