Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1084346
subitems.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 6, 11:25 AM
Size
3 KB
Mime Type
text/x-php
Expires
Fri, Aug 8, 11:25 AM (19 s)
Engine
blob
Format
Raw Data
Handle
704348
Attached To
rINP In-Portal
subitems.php
View Options
<?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
=
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> </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
)
echo
'<script>init();</script>'
;
?>
<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
();
?>
Event Timeline
Log In to Comment