} else { require_once 'class/class.dbn.php'; } // MySQLi connection $lsdb = new ls_mysql(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT); $lsdb->set_charset("utf8"); // All important files include_once 'include/functions.php'; include_once 'class/class.lsbase.php'; include_once 'class/class.postmail.php'; include_once 'class/class.userlogin.php'; include_once 'class/class.user.php'; // Now launch the rewrite class, depending on the settings in db. $getURL = new LS_rewrite($_SERVER['REQUEST_URI']); // We are not using apache so take the ugly urls $tempp = $getURL->lsGetseg(0); $tempp1 = $getURL->lsGetseg(1); $tempp2 = $getURL->lsGetseg(2); $tempp3 = $getURL->lsGetseg(3); $tempp4 = $getURL->lsGetseg(4); $tempp5 = $getURL->lsGetseg(5); $tempp6 = $getURL->lsGetseg(6); // Check if we want caching if (!is_dir(APP_PATH . LS_CACHE_DIRECTORY)) { mkdir(APP_PATH . LS_CACHE_DIRECTORY, 0755); } // define file better for caching $cachedefinefile = APP_PATH . LS_CACHE_DIRECTORY . '/define.php'; if (!file_exists($cachedefinefile)) { $allsettings = "<?php\n"; // Get the general settings out the database