<div class="span2"> <?php include "sidebar_mngr.php"; ?> </div> <div class="span10"> <h1>Рабочее место менеджера</h1> <br> <h2>Привет! Отличный денек чтобы поработать! :)</h2> <?php include "../im/_class.informator.php"; $anketa = new users(); $anketa->get_user_info($_SESSION['user_uniq']); //echo $anketa->name."<br>"; //echo $anketa->famil."<br>"; //echo $anketa->otch."<br>"; //echo $anketa->email."<br>"; $recent_order = $_GET['recent_order']; if ($recent_order == '1') { echo '<div class="alert alert-info"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Уважаемая(ый) ' . $anketa->name . '!</strong><br> Ваш заказ принят и в самом скором времени будет обработан. Вы можете следить за исполнением заказа из своего личного кабинета. </div> '; } //Проверка на наличие наобработанных заказов $unprocessed_orders = new orders(); $unprocessed_orders->get_unprocessed_orders();
public function get_district_drill_down_detail($district_id, $date_of_activation) { $district_data = ""; $county_id = $this->session->userdata('county_id'); $get_facility_data = facilities::get_facilities_reg_on_($district_id, urldecode($date_of_activation)); foreach ($get_facility_data as $facility_data) { $facility_code = $facility_data->facility_code; $facility_user_data = users::get_user_info($facility_code); $facility_name = $facility_data->facility_name; $district_data .= '<span class="" width="100%"><b>' . $facility_name . '</b></span> <table class="row-fluid table table-hover table-bordered table-update" width="100%"> <thead> <tr> <th>First Name</th><th>Last Name</th><th>Email </th><th>Phone No.</th> </tr> </thead> <tbody>'; foreach ($facility_user_data as $user_data_) { $district_data .= "<tr><td>" . $user_data_['fname'] . "</td><td>" . $user_data_['lname'] . "</td><td>" . $user_data_['email'] . "</td><td>" . $user_data_['telephone'] . "</td>\n\t\t\t\t\t<tr>"; } $district_data .= "</tbody></table>"; } echo $district_data; }
require_once "classes/core.class.php"; $coreC = new core(); $installed = $coreC->is_installed(); if (!$installed) { echo '<html lang="ru"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>Проведите <a href="install/install.php">первичную инициализацию</a>. <br><b>ВНИМАНИЕ:</b> при проведении первичной нинциализации все данные из базы будут удалены<br>Если вы уже проводили первичную инициализацию, но по-прежнему видите это сообщение, то выствите в файле config/install.ini значение 1 параметру installed.</html>'; exit; } require_once "classes/templates.class.php"; // $templatesC = new templates; require_once "classes/search.class.php"; $searchC = new search(); require_once "classes/users.class.php"; $usersC = new users(); require_once "classes/auth.class.php"; $authC = new auth(); $uinfo = $usersC->get_user_info($_SESSION['user_id']); require_once "classes/latex.class.php"; require_once "classes/mark.class.php"; $markC = new mark(); $mark_file = $markC->get_mark_file($uinfo['mark']); require_once 'mark/' . $mark_file; require_once "classes/filters.class.php"; $filtersC = new filters(); require_once "classes/sections.class.php"; $sectionsC = new sections(); require_once "classes/threads.class.php"; $threadsC = new threads(); require_once "classes/messages.class.php"; $messagesC = new messages(); require_once "classes/faq.class.php"; $faqC = new faq();
<?php error_reporting(0); session_start(); //print_r($_SESSION); // //if (!include '../db_class.php') include 'db_class.php'; include $_SERVER['DOCUMENT_ROOT'] . '/db_class.php'; $check = new users(); if (isset($_SESSION['hash']) && isset($_SESSION['user_uniq'])) { //echo __FILE__; // if (!include '../db_class.php') include 'db_class.php'; //include '../db_class.php' //include $_SERVER['DOCUMENT_ROOT'].'/index.php'; // $check = new users; $check->get_user_info($_SESSION['user_uniq']); $user_uniq_constructor = md5($check->li . $check->reg_date . $check->reg_time); if ($user_uniq_constructor == $_SESSION['user_uniq'] && $_SESSION[hash] == $check->pw) { $check->accepted = 1; } else { //echo "Authorization failed"; unset($check); $check->accepted = 0; } } else { //echo "Authorization failed"; $check->accepted = 0; unset($check); //stop; }
<?php echo "Доставка: " . $order_overview[tk]; $user = new users(); $user->get_user_info($user_uniq_get); echo "<br>" . $user->address; ?> </div> </div>
function sanitize_mysql($var) { $var = mysql_real_escape_string($var); $var = sanitize_string($var); return $var; } if (isset($_GET['user_uniq'])) { $user_uniq = sanitize_string($_GET['user_uniq']); //if ($_SESSION[user_uniq]==$_COOKIE[user_id]){ if ($_COOKIE[user_id] != NULL) { $_SESSION[user_uniq] = $user_uniq; //print_r($_SESSION); //$seenmassive=$_COOKIE[CookieArt]."|".$art; include "../db_class.php"; $newbe = new users(); $newbe->get_user_info($user_uniq); //$newbe-> $check = md5($newbe->li . $newbe->reg_date . $newbe->reg_time); if ($check == $user_uniq) { // echo "<script>alert('доверяем! :)');</script>"; } else { echo "<script>alert('User not identificate, access denied!');</script>"; } } else { setcookie(user_id, $user_uniq); } //} //else { // setcookie (user_id, $user_uniq); //} include "http://www.ladystyle.su/template/header.php";
include $_SERVER['DOCUMENT_ROOT'] . '/db_class.php'; if (isset($_SESSION['hash']) && isset($_SESSION['user_uniq'])) { $check = new users(); $check->get_user_info($_SESSION['user_uniq']); $user_uniq_constructor = md5($check->li . $check->reg_date . $check->reg_time); if ($user_uniq_constructor == $_SESSION['user_uniq'] && $_SESSION[hash] == $check->pw) { $check->accepted = 1; } else { //echo "Authorization failed"; unset($check); $check->accepted = 0; } } else { if (isset($_COOKIE['hash1']) && isset($_COOKIE['user_uniq1'])) { $check = new users(); $check->get_user_info($_COOKIE['user_uniq1']); $user_uniq_constructor = md5($check->li . $check->reg_date . $check->reg_time); if ($user_uniq_constructor == $_COOKIE['user_uniq1'] && $_COOKIE['hash1'] == $check->pw) { $check->accepted = 1; // echo "<script>alert('cookies auth');</script>"; $_SESSION['hash'] = $_COOKIE['hash1']; $_SESSION['user_uniq'] = $_COOKIE['user_uniq1']; } else { //echo "Authorization failed"; unset($check); $check->accepted = 0; } } //echo "Authorization failed"; // $check->accepted=0; //unset($check);