/** * The constructor function of admin class * We do just the session start * It is necessary to start the session before actually storing any value * to the super global $_SESSION variable */ public function __construct() { //store the absolute script directory //note that this is not the admin directory self::$abs_path = dirname(dirname(__FILE__)); //initialize the post variable if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->post = $_POST; if (get_magic_quotes_gpc()) { //get rid of magic quotes and slashes if present array_walk_recursive($this->post, array($this, 'stripslash_gpc')); } } //initialize the get variable $this->get = $_GET; //decode the url array_walk_recursive($this->get, array($this, 'urldecode')); }
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_login_action();
<?php include_once realpath(dirname(__FILE__) . '/admin-class.php'); $admin = new itg_admin(); $pushTosend = array(); $offlineUsers = $admin->getOfflineUsers(); $allUsers = $admin->getAllUsers(); $androidToken = array(); foreach ($allUsers as $alluser) { foreach ($offlineUsers as $offline) { if (in_array(strtoupper($offline['username']), $alluser)) { $pushTosend[] = $alluser; } } } foreach ($pushTosend as $value) { if ($value['is_on_track'] == 1) { if ($value['devicetype'] == 'ios') { iosPush($value['token']); } if ($value['devicetype'] == 'android') { $androidToken[] = $value['token']; } } } sendPushNotification($androidToken); function iosPush($token) { try { $deviceToken = $token;
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_logout_action();
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include_once 'admin-class.php'; $admin = new itg_admin(); if ($_POST['delete'] == 1) { $admin->deleteSavedSession($_POST['sessionId']); } else { $admin->getSavedSession($_POST['sessionId']); }
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if ($_POST) { $admin->addUserTrackingDetails($_POST); } if (base64_decode($_GET['id']) == '') { header('Location: dashboard.php'); } $userTrackData = $admin->getUserTrackingDetalis(base64_decode($_GET['id'])); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="bower_components/datePicker/jquery.datetimepicker.full.js"></script>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if ($_POST['saveTime'] == 1) { $admin->saveTimezone($_POST); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Personnel Tracker</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="js/strophe.js" type="text/javascript"></script> <script src="js/strophe-openfire.js" type="text/javascript"></script> <script src="js/ServerManager.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="dist/js/jstz.min.js"/>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if ($_POST) { if (!empty($_POST['ticket'])) { $admin->saveTicket($_POST['name'], $_POST['email'], $_POST['company'], $_POST['ticket']); } } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> <script src="bower_components/raphael/raphael-min.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if (base64_decode($_GET['id']) == '') { header('Location: dashboard.php'); } $userSessionData = $admin->getUserSessionData(base64_decode($_GET['id'])); ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> <script src="bower_components/raphael/raphael-min.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include_once 'admin-class.php'; $admin = new itg_admin(); return $admin->getTrackedData($_POST); exit(0);
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } if (!empty($_POST)) { $admin->changeAdminPassword($_POST); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Personnel Tracker</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="dist/css/timeline.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link href="bower_components/morrisjs/morris.css" rel="stylesheet"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="js/jQuery-v1.9.1.js" type="text/javascript"></script> <script src="js/jquery.ui.widget.min.js" type="text/javascript"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Personnel Tracker</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/timeline.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link href="bower_components/morrisjs/morris.css" rel="stylesheet"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="js/jQuery-v1.9.1.js" type="text/javascript"></script> <script src="js/jquery.ui.widget.min.js" type="text/javascript"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> <script src="bower_components/raphael/raphael-min.js"></script> <script src="bower_components/morrisjs/morris.min.js"></script> <script src="js/morris-data.js"></script> <script src="dist/js/sb-admin-2.js"></script>
<?php include_once dirname(__FILE__) . '/admin-class.php'; session_start(); $admin = new itg_admin(); if ($_SESSION['is_super'] == 1) { if ($_POST) { if ($_POST['createadmin'] == 1) { $admin->_createAdmin(); } } if ($_GET['check'] == 1) { $admin->_checkAdmin($_GET['email']); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Add Admin</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="bower_components/datePicker/jquery.datetimepicker.full.js"></script>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->isSuperAdmin(); $adminUser = $admin->getCompleteAdminUsers(); if (count($adminUser) <= 0) { header("Location: dashboard.php?msg=No admin found"); } if ($_GET['op'] == "delete") { $admin->deleteAdmin(); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Admins</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> </head> <body> <div id="wrapper"> <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header">
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if (!$_SESSION['admin_login']) { header('Location: index.php'); } $data = $admin->getTicketInfo(); if ($_GET['ticketid']) { $admin->closeTicket($_GET['ticketid']); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="bower_components/datePicker/jquery.datetimepicker.full.js"></script> <link rel="stylesheet" href="bower_components/datePicker/jquery.datetimepicker.css"> <script src="bower_components/datePicker/formatDate.js"></script> <script src="js/strophe.js" type="text/javascript"></script> <script src="js/strophe-openfire.js" type="text/javascript"></script>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_bookmark();
<?php include_once 'admin-class.php'; $admin = new itg_admin(); if ($_SESSION['is_super'] == 0) { $adminUser = $admin->getActiveUsers(); } elseif ($_SESSION['is_super'] == 1) { $adminUser = $admin->getAllUsers(); } else { header("Location: dashboard.php?msg=Not authorized to view users"); } if (count($adminUser) <= 0) { header("Location: dashboard.php?msg=No users found"); } if ($_GET['op'] == "delete") { $admin->deleteUser(); } if ($_POST) { $admin->addMultipleSession($_POST); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_authenticate(); $con = mysql_connect("regportal13.db.8510111.hostedresource.com", "regportal13", "pbotixMMX@12"); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query("CREATE DATABASE rbtx", $con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } mysql_close($con); ?>
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $admin->_authenticate(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Administrator page</title> </head> <body> <fieldset> <legend>Welcome <?php echo $admin->get_nicename(); ?> </legend> <p> Here are some of the basic informations </p> <p> Username: <?php echo $_SESSION['school']; ?> </p> <p> Email: <?php echo $admin->get_email(); ?> </p> </fieldset>
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include_once './admin-class.php'; $admin = new itg_admin(); $id = $_POST['user_id']; echo $admin->getUserOnline($id); exit(0);
<?php include_once 'admin-class.php'; $admin = new itg_admin(); $runningSessionData = $admin->getRunningSession(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Tracker | Users</title> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet"> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <script src="bower_components/datePicker/jquery.js"></script> <script src="js/strophe.js" type="text/javascript"></script> <script src="js/strophe-openfire.js" type="text/javascript"></script> <script src="js/ServerManager.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> <script src="bower_components/raphael/raphael-min.js"></script> <script src="bower_components/morrisjs/morris.min.js"></script> </head> <body>