diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-08-25 23:02:26 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-08-25 23:02:26 +0200 |
commit | 9fbcf8e3909b7308574a9837e100cb13fdd6acbf (patch) | |
tree | b3d0f5351d7100dbde685969fbe344ebf2b1dbc2 | |
parent | efff9beb2d7aecfaf0713e9f423cb7437ecd28cb (diff) | |
download | ratatoeskr-cms-9fbcf8e3909b7308574a9837e100cb13fdd6acbf.tar.gz ratatoeskr-cms-9fbcf8e3909b7308574a9837e100cb13fdd6acbf.tar.bz2 ratatoeskr-cms-9fbcf8e3909b7308574a9837e100cb13fdd6acbf.zip |
Load smartyin main.php
-rw-r--r-- | ratatoeskr/main.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php index a543da6..70a54cc 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/urlprocess.php"); require_once(dirname(__FILE__) . "/frontend.php"); require_once(dirname(__FILE__) . "/backend/main.php"); function ratatoeskr() { - global $backend_subactions; - + global $backend_subactions, $smarty; + session_start(); if(!CONFIG_FILLED_OUT) return setup(); @@ -41,7 +42,9 @@ function ratatoeskr() register_url_handler("_notfound", "e404handler"); $urlpath = explode("/", $_GET["action"]); - $data = array("rel_path_to_root") + $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); } ?> |