Index: trunk/admin/subitems.php
===================================================================
diff -u -r374 -r1787
--- trunk/admin/subitems.php (.../subitems.php) (revision 374)
+++ trunk/admin/subitems.php (.../subitems.php) (revision 1787)
@@ -1,152 +1,105 @@
Init();
+ // KERNEL4 INI: END
-$sub = substr($pathtoroot,strlen($pathchar)*-1);
-if($sub!=$pathchar)
-{
- $pathtoroot = $pathtoroot.$pathchar;
-}
-//echo $pathtoroot;
+ // IN-PORTAL INIT: BEGIN
+ $g_TablePrefix = TABLE_PREFIX;
+ $pathtoroot = DOC_ROOT.BASE_PATH.'/';
+ require_once DOC_ROOT.BASE_PATH.'/kernel/startup.php';
+ // IN-PORTAL INIT: END
-require_once($pathtoroot."kernel/startup.php");
+ $rootURL = $application->BaseURL();
+ $admin = ADMIN_DIR;
-$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
+ $localURL = $rootURL.'kernel/';
+ $adminURL = $rootURL.$admin;
+ $imagesURL = $adminURL.'/images';
+ $cssURL = $adminURL.'/include';
+ $jsURL = $adminURL.'/include/subitems';
+
+ //admin only util
+ $pathtolocal = $pathtoroot.'kernel/';
+ require_once ($pathtoroot.$admin.'/include/elements.php');
+ require_once($pathtoroot.$admin.'/toolbar.php');
+ $section = getArrayValue($_GET, 'section');
+
+ $sectionname = explode(":", $section);
+ $sectionname = $sectionname[sizeof($sectionname)-1];
-$admin = $objConfig->Get("AdminDirectory");
-//echo "Admin: $admin
\n";
-if(!strlen($admin))
- $admin = "admin";
+ $incs = Array();
-$localURL=$rootURL."kernel/";
-$adminURL=$rootURL.$admin;
-$imagesURL = $adminURL."/images";
+ $m = GetModuleArray();
+ foreach($m as $key => $value)
+ {
+ $inc = $pathtoroot.$value."admin/include/summary/".$sectionname.".php";
+// echo "
". $inc ."
";
+ if( file_exists($inc) ) $incs[] = $inc;
+ }
-$cssURL = $adminURL."/include";
-$jsURL = $adminURL."/include/subitems";
-//admin only util
-
-$pathtolocal = $pathtoroot."kernel/";
-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");
-$section = $_GET["section"];
-
-$sectionname = explode(":", $section);
-$sectionname = $sectionname[sizeof($sectionname)-1];
-
-$incs = array();
-
-$m = GetModuleArray();
-foreach($m as $key=>$value)
-{
- $inc = $pathtoroot.$value."admin/include/summary/".$sectionname.".php";
- //echo "". $inc ."
";
- if(file_exists($inc))
- $incs[] = $inc;
-}
-
-$envar = BuildEnv();
+ $envar = BuildEnv();
+ $charset = GetRegionalOption('Charset');
+
print <<
-
- In-portal
-
-
-
-
+
+ In-portal
+
+
+
END;
-require_once($pathtoroot.$admin."/include/mainscript.php");
+require_once($pathtoroot.$admin.'/include/mainscript.php');
print <<
-
END;
- int_SectionHeader();
+ int_SectionHeader();
?>
-
GetSection($section);
- $sub = $objSections->GetSection($parent->Get("child"));
- while(is_object($sub))
- {
- echo "\n";
- echo " ";
- echo " IconURL(2)."\" border=\"0\">";
- echo " | ";
- echo " URL()."\" class=\"dLink\">";
- $lang_tag = "la_Description_".$sub->Get("key");
- echo admin_language($sub->Get("name"))."";
- echo prompt_language($lang_tag); //$sub->Get("description");
- echo " | \n";
- echo " \n";
- $sub = $objSections->GetSection($sub->Get("right"));
- }
+ $parent = $objSections->GetSection($section);
+ $sub = $objSections->GetSection( $parent->Get("child") );
+ $has_modules = is_object($sub);
?>
+
-
+
-
-
-0)
-{
-?>
-
-
+ |
+
+ 0 ) echo ''; ?>
-
+Done();
+?>
\ No newline at end of file