<?php /* * load base */ require_once CORE_PATH . '/BASE.php'; $base = new BASE(); /* * check if db is installed or not; if not, then install; */ $base->check_installation(); /* * escape all special charecters in URI */ $URI = explode("/", $_SERVER['REQUEST_URI']); unset($URI[0]); unset($URI[1]); $URI_VAL = ""; foreach ($URI as $k => $v) { if ($v != "" && strlen($v) > 0) { $uri_values[] = htmlspecialchars_decode($v); $URI_VAL .= "/" . htmlspecialchars_decode($v); } } /* * load base MVC */ require_once CORE_PATH . '/MVC.php'; /* * get route file */