active; }); $plugin_objs = array(); foreach($activeplugins as $plugin) { eval($plugin->phpcode); $plugin_obj = new $plugin->class; $plugin_obj->init(); $plugin_objs[] = $plugin_obj; } /* Register URL handlers */ register_url_handler("_default", "frontend_url_handler"); register_url_handler("backend", $backend_subactions); 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); } ?>