mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
More handling of plugin.xml reformat, handle 'special' chars in profanity filter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* e107 website system (c) 2001-2008 Steve Dunstan (e107.org)
|
||||
* $Id: admin_alt_nav.sc,v 1.4 2008-08-25 13:34:45 e107steved Exp $
|
||||
* $Id: admin_alt_nav.sc,v 1.5 2008-12-05 19:56:45 e107steved Exp $
|
||||
*/
|
||||
|
||||
if (ADMIN)
|
||||
@@ -43,21 +43,26 @@ if (ADMIN)
|
||||
|
||||
$text .= adnav_cat(ADLAN_151, e_ADMIN.'admin.php', E_16_NAV_MAIN);
|
||||
|
||||
for ($i = 1; $i < 5; $i++) {
|
||||
for ($i = 1; $i < 5; $i++)
|
||||
{
|
||||
$ad_tmpi = 0;
|
||||
$ad_links_array = asortbyindex($array_functions, 1);
|
||||
$nav_main = adnav_cat($admin_cat['title'][$i], '', $admin_cat['img'][$i], $admin_cat['id'][$i]);
|
||||
$ad_texti = "<div id='".$admin_cat['id'][$i]."' class='menu' onmouseover=\"menuMouseover(event)\">";
|
||||
while(list($key, $nav_extract) = each($ad_links_array)){
|
||||
if($nav_extract[4]==$i){
|
||||
if(getperms($nav_extract[3])){
|
||||
while(list($key, $nav_extract) = each($ad_links_array))
|
||||
{
|
||||
if($nav_extract[4]==$i)
|
||||
{
|
||||
if(getperms($nav_extract[3]))
|
||||
{
|
||||
$ad_texti .= adnav_main($nav_extract[1], $nav_extract[0], $nav_extract[5]);
|
||||
$ad_tmpi = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
$ad_texti .= "</div>";
|
||||
if ($ad_tmpi == 1) {
|
||||
if ($ad_tmpi == 1)
|
||||
{
|
||||
$text .= $nav_main;
|
||||
$text .= $ad_texti;
|
||||
}
|
||||
@@ -78,10 +83,10 @@ if (ADMIN)
|
||||
$plug_vars = $plug->plug_vars;
|
||||
if($plug_vars['administration']['configFile'])
|
||||
{
|
||||
$plug_vars['name'] = $tp->toHTML($plug_vars['name'], FALSE, "defs");
|
||||
$plug_vars['@attributes']['name'] = $tp->toHTML($plug_vars['@attributes']['name'], FALSE, "defs");
|
||||
$icon_src = (isset($plug_vars['plugin_php']) ? e_PLUGIN_ABS : e_PLUGIN_ABS.$row['plugin_path'].'/') .$plug_vars['administration']['iconSmall'];
|
||||
$plugin_icon = $plug_vars['administration']['iconSmall'] ? "<img src='{$icon_src}' alt='".$plug_vars['administration']['caption']."' style='border:0px; vertical-align:bottom; width: 16px; height: 16px' />" : E_16_PLUGIN;
|
||||
$plugin_array[ucfirst($plug_vars['name'])] = adnav_main($plug_vars['name'], e_PLUGIN.$row['plugin_path']."/".$plug_vars['administration']['configFile'], $plugin_icon);
|
||||
$plugin_array[ucfirst($plug_vars['@attributes']['name'])] = adnav_main($plug_vars['@attributes']['name'], e_PLUGIN.$row['plugin_path']."/".$plug_vars['administration']['configFile'], $plugin_icon);
|
||||
}
|
||||
$render_plugins = TRUE;
|
||||
$active_plugs = TRUE;
|
||||
@@ -90,12 +95,14 @@ if (ADMIN)
|
||||
}
|
||||
ksort($plugin_array, SORT_STRING);
|
||||
$plugs_text = '';
|
||||
foreach ($plugin_array as $plugin_compile) {
|
||||
foreach ($plugin_array as $plugin_compile)
|
||||
{
|
||||
$plugs_text .= $plugin_compile;
|
||||
}
|
||||
}
|
||||
|
||||
if (getperms('Z')) {
|
||||
if (getperms('Z'))
|
||||
{
|
||||
$pclass_extended = $active_plugs ? 'header' : '';
|
||||
$plugin_text = adnav_main(ADLAN_98, e_ADMIN.'plugin.php', E_16_PLUGMANAGER, FALSE, $pclass_extended);
|
||||
$render_plugins = TRUE;
|
||||
@@ -110,12 +117,15 @@ if (ADMIN)
|
||||
|
||||
$text .= adnav_cat(ADLAN_CL_8, '', E_16_NAV_DOCS, 'docsMenu');
|
||||
$text .= "<div id='docsMenu' class='menu' onmouseover=\"menuMouseover(event)\">";
|
||||
if (!$handle=opendir(e_DOCS.e_LANGUAGE."/")) {
|
||||
if (!$handle=opendir(e_DOCS.e_LANGUAGE."/"))
|
||||
{
|
||||
$handle=opendir(e_DOCS."English/");
|
||||
}
|
||||
$i=1;
|
||||
while ($file = readdir($handle)) {
|
||||
if ($file != "." && $file != ".." && $file != "CVS") {
|
||||
while ($file = readdir($handle))
|
||||
{
|
||||
if ($file != "." && $file != ".." && $file != "CVS")
|
||||
{
|
||||
$text .= adnav_main(str_replace("_", " ", $file), e_ADMIN."docs.php?".$i, E_16_DOCS);
|
||||
$i++;
|
||||
}
|
||||
@@ -127,7 +137,8 @@ if (ADMIN)
|
||||
$text .= "</div>
|
||||
</td>";
|
||||
|
||||
if ($exit != 'off') {
|
||||
if ($exit != 'off')
|
||||
{
|
||||
$text .= "<td style='width: 160px; white-space: nowrap'>
|
||||
<div class='menuBar' style='width: 100%'>";
|
||||
|
||||
|
Reference in New Issue
Block a user