Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sun, Feb 2, 10:17 PM

in-portal

Index: trunk/admin/subitems.php
===================================================================
--- trunk/admin/subitems.php (revision 1777)
+++ trunk/admin/subitems.php (revision 1778)
@@ -1,147 +1,147 @@
<?php
// KENEL4 INIT: BEGIN
define('ADMIN', 1);
define('FULL_PATH', realpath(dirname(__FILE__).'/..') );
define('APPLICATION_CLASS', 'MyApplication');
include_once(FULL_PATH.'/kernel/kernel4/startup.php');
$application =& kApplication::Instance();
$application->Init();
// KERNEL4 INI: END
// 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
$rootURL = $application->BaseURL();
$admin = ADMIN_DIR;
$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 = $application->GetVar('section');
+ $section = getArrayValue($_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 "<pre>". $inc ."</pre><BR>";
if( file_exists($inc) ) $incs[] = $inc;
}
$envar = BuildEnv();
$charset = GetRegionalOption('Charset');
print <<<END
<html>
<head>
<title>In-portal</title>
<meta http-equiv="content-type" content="text/html;charset=$charset">
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript">
imagesPath='$imagesURL'+'/';
clear_checkboxes=0;
</script>
END;
require_once($pathtoroot.$admin."/include/mainscript.php");
print <<<END
<link rel="stylesheet" type="text/css" href="$cssURL/style.css">
<link rel="stylesheet" type="text/css" href="$cssURL/subitems.css">
<script src="$jsURL/listitems.js"></script>
<script src="$jsURL/imgbuttons.js"></script>
<script src="$jsURL/navboxes.js"></script>
END;
int_SectionHeader();
?>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td valign="top">
<?php
$parent = $objSections->GetSection($section);
$sub = $objSections->GetSection( $parent->Get("child") );
$has_modules = is_object($sub);
?>
<table cellspacing="0" cellpadding="2" border="0" width="100%" CLASS="<?php echo $has_modules ? 'tableborder_full' : ''; ?>">
<?php
if($has_modules)
{
while(is_object($sub))
{
echo '<tr isListItem="true" '.int_table_color_ret().'>'."\n";
echo ' <td class="subitem_icon">';
echo ' <img align="left" src="'.$sub->IconURL(2).'" border="0">';
echo ' </td>';
echo ' <td class="subitem_description"><a href="'.$sub->URL().'" class="dLink">';
$lang_tag = 'la_Description_'.$sub->Get('key');
echo admin_language( $sub->Get('name') ).'</a>';
echo prompt_language($lang_tag); //$sub->Get("description");
echo ' </td>'."\n";
echo '</tr>'."\n";
$sub = $objSections->GetSection( $sub->Get('right') );
}
}
else
{
echo '<tr><td>&nbsp;</td></tr>';
}
?>
</TABLE>
</TD>
<?php
if(count($incs)>0)
{
?>
<td width="1"><img src="<?php echo $imagesURL; ?>/spacer.gif" width="4" height="1"></td>
<td width="269" valign="top" class="boxContainer">
<?php
// including each module summaries here
for($i=0;$i<count($incs);$i++)
include($incs[$i]);
?>
</TD>
<?php
}
?>
</TR>
</TABLE>
<?php
if(count($incs)>0)
{
?>
<script>
init();
</script>
<?php
}
?>
<form ID="viewmenu" NAME="viewmenu" method="post" action="user_list.php?env=<?php echo BuildEnv(); ?>" name="viewmenu">
<input type="hidden" name="fieldname" value="">
<input type="hidden" name="varvalue" value="">
<input type="hidden" name="varvalue2" value="">
<input type="hidden" name="Action" value="">
</form>
<?php
int_footer();
$application->Done();
?>
\ No newline at end of file
Property changes on: trunk/admin/subitems.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.8
\ No newline at end of property
+1.9
\ No newline at end of property

Event Timeline