From 5318686626fac89fe15176ecbcdadc2f8c15d409 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 11 Apr 2017 17:00:40 +0200 Subject: [PATCH] Reorganize files into subfolders --- auth.php | 11 ++++++----- client/index.php | 6 +++--- main.css => css/main.css | 0 helpers/config.php | 4 +--- helpers/db.php | 2 +- helpers/position.php | 2 +- helpers/track.php | 2 +- helpers/user.php | 4 ++-- index.php | 20 ++++++++++---------- admin.js => js/admin.js | 2 +- api_gmaps.js => js/api_gmaps.js | 0 api_openlayers.js => js/api_openlayers.js | 0 main.js => js/main.js | 10 +++++----- pass.js => js/pass.js | 2 +- lang.php | 5 +++-- adduser.php => utils/adduser.php | 2 +- changepass.php => utils/changepass.php | 2 +- download.php => utils/download.php | 4 ++-- getpositions.php => utils/getpositions.php | 4 ++-- gettracks.php => utils/gettracks.php | 4 ++-- logout.php => utils/logout.php | 2 +- 21 files changed, 44 insertions(+), 44 deletions(-) rename main.css => css/main.css (100%) rename admin.js => js/admin.js (98%) rename api_gmaps.js => js/api_gmaps.js (100%) rename api_openlayers.js => js/api_openlayers.js (100%) rename main.js => js/main.js (97%) rename pass.js => js/pass.js (98%) rename adduser.php => utils/adduser.php (96%) rename changepass.php => utils/changepass.php (96%) rename download.php => utils/download.php (98%) rename getpositions.php => utils/getpositions.php (95%) rename gettracks.php => utils/gettracks.php (92%) rename logout.php => utils/logout.php (90%) diff --git a/auth.php b/auth.php index 33307e2..dbb00de 100755 --- a/auth.php +++ b/auth.php @@ -17,13 +17,14 @@ * along with this program; if not, see . */ -require_once("helpers/config.php"); +define("ROOT_DIR", __DIR__); +require_once(ROOT_DIR . "/helpers/config.php"); $config = new uConfig(); -require_once("lang.php"); -require_once("helpers/db.php"); +require_once(ROOT_DIR . "/lang.php"); +require_once(ROOT_DIR . "/helpers/db.php"); $mysqli = uDb::getInstance(); -require_once($config::$rootDir . "/helpers/user.php"); +require_once(ROOT_DIR . "/helpers/user.php"); session_name('ulogger'); session_start(); @@ -57,7 +58,7 @@ if (!$user->isValid && ($config::$require_authentication || defined('headless')) ' . $lang["title"] . ' - + - + - + - + isAdmin): ?> - + - +