diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-09-21 17:00:50 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-09-21 17:00:50 +0200 |
commit | 8311cba002dfcaf1836530b978f944f7228ac004 (patch) | |
tree | d8ff9eac15957194a53e4c6e94d4bd9eb2d89c2d /ratatoeskr/main.php | |
parent | a85e1fbbfbbaef176141e98a4691273cd06d0a65 (diff) | |
download | ratatoeskr-cms-8311cba002dfcaf1836530b978f944f7228ac004.tar.gz ratatoeskr-cms-8311cba002dfcaf1836530b978f944f7228ac004.tar.bz2 ratatoeskr-cms-8311cba002dfcaf1836530b978f944f7228ac004.zip |
Replaced Smarty with STE and started the backend.
Diffstat (limited to 'ratatoeskr/main.php')
-rw-r--r-- | ratatoeskr/main.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php index 70a54cc..09f4d8d 100644 --- a/ratatoeskr/main.php +++ b/ratatoeskr/main.php @@ -12,14 +12,15 @@ require_once(dirname(__FILE__) . "/sys/db.php"); require_once(dirname(__FILE__) . "/sys/plugin_api.php"); require_once(dirname(__FILE__) . "/sys/models.php"); -require_once(dirname(__FILE__) . "/sys/load_smarty.php"); +require_once(dirname(__FILE__) . "/sys/init_ste.php"); +require_once(dirname(__FILE__) . "/sys/translation.php"); require_once(dirname(__FILE__) . "/sys/urlprocess.php"); -require_once(dirname(__FILE__) . "/frontend.php"); +#require_once(dirname(__FILE__) . "/frontend.php"); require_once(dirname(__FILE__) . "/backend/main.php"); function ratatoeskr() { - global $backend_subactions, $smarty; + global $backend_subactions, $ste, $url_handlers; session_start(); if(!CONFIG_FILLED_OUT) return setup(); @@ -37,14 +38,16 @@ function ratatoeskr() } /* Register URL handlers */ - register_url_handler("_default", "frontend_url_handler"); + #register_url_handler("_default", "frontend_url_handler"); register_url_handler("backend", $backend_subactions); - register_url_handler("_notfound", "e404handler"); + #register_url_handler("_notfound", "e404handler"); $urlpath = explode("/", $_GET["action"]); $rel_path_to_root = implode("/", array_merge(array("."), array_repeat("..", count($urlpath) - 1))); $data = array("rel_path_to_root" => $rel_path_to_root); - $smarty->assign("rel_path_to_root", $rel_path_to_root); + $ste->vars["rel_path_to_root"] = $rel_path_to_root; + + url_process($urlpath, $url_handlers, $data); } ?> |