<?php include "phpGPS.php"; $db = new phpGPS_DB(); $con = $db->connectToDB(); include "login.php"; $userGroups = array("admin"); $loginT = null; if (isset($con)) { $loginT = new login($con, $userGroups); if (!$loginT->userStatus && $userGroups != "admin") { echo "Login Failed<br>"; login::showLogin(); exit; } else { $type = $loginT->getType(); } } $delete = false; if (isset($_GET['delete']) && $_GET['delete'] == "true") { $delete = true; } $viewQuery = false; if (isset($_GET['viewQuery']) && $_GET['viewQuery'] == "true") { $viewQuery = true; } if (!isset($_GET['table']) || $_GET['table'] == "") { exit("Table not set"); } if (!isset($_GET['where']) || $_GET['where'] == "") { exit("Where not set");
<?php define('VERSION', '0.6'); define('RESTRICTED', TRUE); define('PUBLIC', TRUE); define('MYFILE', basename($_SERVER['PHP_SELF'], ".d")); define('TEMPLATE', 'zypro'); $root = dirname(__FILE__); define('ROOT', $root); include_once 'config/settings.php'; include_once 'core/class.autoload.php'; include_once 'config/configuration.php'; $login = new login(session::getSID()); ob_start(); if ($login->logged_in() !== true) { $login->showLogin(); $loginContent = ob_get_clean(); ob_start(); } else { $loginContent = ''; } $application = new application(); $application->start(); ob_end_flush();