Logout(); header("Location: ".$adminURL."/login.php"); die(); //require_once($pathtoroot."admin/login.php"); } //admin only util $rootURL="http://".ThisDomain().$objConfig->Get("Site_Path"); $admin = $objConfig->Get("AdminDirectory"); if(!strlen($admin)) $admin = "admin"; $localURL=$rootURL."kernel/"; $adminURL = $rootURL.$admin; $imagesURL = $adminURL."/images"; //$pathtolocal = $pathtoroot."in-news/"; require_once ($pathtoroot.$admin."/include/elements.php"); require_once ($pathtoroot."kernel/admin/include/navmenu.php"); //require_once ($pathtolocal."admin/include/navmenu.php"); require_once($pathtoroot.$admin."/toolbar.php"); require_once($pathtoroot.$admin."/listview/listview.php"); if(strlen($_GET["module"])==0) { $module="In-Portal"; } else { $module=$_GET["module"]; } if(strlen($_GET["section"])==0) { $section="System"; } else { $section=$_GET["section"]; } $m = GetModuleArray(); foreach($m as $key=>$value) { $path = $pathtoroot. $value."admin/include/parser.php"; if(file_exists($path)) { include_once($path); } } unset($objEditItems); $envar = "module=$module§ion=$section&env=" . BuildEnv(); //$title = prompt_language("la_Text_Editing")." ".prompt_language("la_Tab_Search"); $sec = $objSections->GetSection($section); $objCatToolBar = new clsToolBar(); $objCatToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","document.configform.submit();","tool_select.gif"); $objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","history.back();","tool_cancel.gif"); $ParentSection = $sec->Get("parent"); $ParentSec = $objSections->GetSection($ParentSection); $ParentUrl = $ParentSec->URL(); if($ParentSec->Get("parent")) { $SubmitUrl = $ParentUrl; } else $SubmitUrl = $_SERVER['PHP_SELF']."?".$envar; int_header($objCatToolBar,NULL,$title); ?>