1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

e107 update administration ready;

overall message handler usage added;
This commit is contained in:
secretr
2008-12-30 15:56:12 +00:00
parent f678f6608f
commit c87325cc67
11 changed files with 320 additions and 238 deletions

View File

@@ -11,14 +11,17 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/beginner.php,v $
| $Revision: 1.3 $
| $Date: 2008-08-25 10:46:31 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
if($_GET['mode'] == "e_advanced"){
$pref['adminstyle'] = "classis";
save_prefs();
@@ -46,7 +49,7 @@ if($_GET['mode'] == "e_advanced"){
if($buts != '')
{
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
}

View File

@@ -11,18 +11,21 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/cascade.php,v $
| $Revision: 1.3 $
| $Date: 2008-08-25 10:46:31 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
$text = "<div style='text-align:center'>
<table class='fborder' style='".ADMIN_WIDTH."'>";
while (list($key, $funcinfo) = each($newarray))
while (list($key, $funcinfo) = each($newarray))
{
$text .= render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'adminb');
}
@@ -39,6 +42,6 @@ $text .= getPluginLinks( E_16_PLUGMANAGER, 'adminb');
$text .= "</table></div>";
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
?>

View File

@@ -11,39 +11,42 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/categories.php,v $
| $Revision: 1.4 $
| $Date: 2008-12-04 20:17:49 $
| $Author: e107steved $
| $Revision: 1.5 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
$text = "<div style='text-align:center'>
<table class='fborder' style='".ADMIN_WIDTH."'>";
foreach ($admin_cat['id'] as $cat_key => $cat_id)
foreach ($admin_cat['id'] as $cat_key => $cat_id)
{
$text_check = FALSE;
$text_cat = "<tr><td class='fcaption' colspan='2'>".$admin_cat['title'][$cat_key]."</td></tr>
<tr><td class='forumheader3' style='text-align: center; vertical-align: middle; width: 72px; height: 48px'>".$admin_cat['lrg_img'][$cat_key]."</td><td class='forumheader3'>
<table style='width:100%'>";
if ($cat_key != 5)
if ($cat_key != 5)
{
foreach ($newarray as $key => $funcinfo)
foreach ($newarray as $key => $funcinfo)
{
if ($funcinfo[4] == $cat_key)
if ($funcinfo[4] == $cat_key)
{
$text_rend = render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'default');
if ($text_rend)
if ($text_rend)
{
$text_check = TRUE;
}
$text_cat .= $text_rend;
}
}
}
else
}
else
{
$text_rend = render_links(e_ADMIN."plugin.php", ADLAN_98, ADLAN_99, "Z", E_16_PLUGMANAGER, 'default');
@@ -51,14 +54,14 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
$xml = new xmlClass; // We're going to have some plugins with plugin.xml files, surely? So create XML object now
$xml->filter = array('@attributes' => FALSE,'administration' => FALSE); // .. and they're all going to need the same filter
if ($text_rend)
if ($text_rend)
{
$text_check = TRUE;
}
$text_cat .= $text_rend;
if ($sql->db_Select("plugin", "*", "plugin_installflag=1"))
if ($sql->db_Select("plugin", "*", "plugin_installflag=1"))
{
while ($row = $sql->db_Fetch())
while ($row = $sql->db_Fetch())
{
extract($row); // plugin_id int(10) unsigned NOT NULL auto_increment,
// plugin_name varchar(100) NOT NULL default '',
@@ -66,7 +69,7 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
// plugin_path varchar(100) NOT NULL default '',
// plugin_installflag tinyint(1) unsigned NOT NULL default '0',
// plugin_addons text NOT NULL,
if (is_readable(e_PLUGIN.$plugin_path."/plugin.xml"))
{
$readFile = $xml->loadXMLfile(e_PLUGIN.$plugin_path.'/plugin.xml', true, true);
@@ -80,12 +83,12 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
{
include(e_PLUGIN.$plugin_path."/plugin.php");
}
if ($eplug_conffile)
if ($eplug_conffile)
{
$eplug_name = $tp->toHTML($eplug_name,FALSE,"defs, emotes_off");
$plugin_icon = $eplug_icon_small ? "<img src='".e_PLUGIN.$eplug_icon_small."' alt='".$eplug_caption."' style='border:0px; vertical-align:bottom; width: 16px; height: 16px' />" : E_16_PLUGIN;
$plugin_array[ucfirst($eplug_name)] = array('link' => e_PLUGIN.$plugin_path."/".$eplug_conffile, 'title' => $eplug_name, 'caption' => $eplug_caption, 'perms' => "P".$plugin_id, 'icon' => $plugin_icon);
if ($plugin_array[0])
if ($plugin_array[0])
{
$text_check = TRUE;
}
@@ -94,7 +97,7 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
}
}
ksort($plugin_array, SORT_STRING);
foreach ($plugin_array as $plug_key => $plug_value)
foreach ($plugin_array as $plug_key => $plug_value)
{
$text_cat .= render_links($plug_value['link'], $plug_value['title'], $plug_value['caption'], $plug_value['perms'], $plug_value['icon'], 'default');
}
@@ -102,7 +105,7 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
$text_cat .= render_clean();
$text_cat .= "</table>
</td></tr>";
if ($text_check)
if ($text_check)
{
$text .= $text_cat;
}
@@ -110,7 +113,7 @@ foreach ($admin_cat['id'] as $cat_key => $cat_id)
$text .= "</table></div>";
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
echo admin_info();

View File

@@ -11,14 +11,17 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/classis.php,v $
| $Revision: 1.3 $
| $Date: 2008-08-25 10:46:32 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
$buts = "";
while (list($key, $funcinfo) = each($newarray))
@@ -32,7 +35,7 @@ if($buts != "")
$text .= $buts;
$text .= render_clean();
$text .= "</table></div>";
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
}
$text = "<div style='text-align:center'>
<table style='".ADMIN_WIDTH."'>";

View File

@@ -11,14 +11,17 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/combo.php,v $
| $Revision: 1.3 $
| $Date: 2008-08-25 10:46:32 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
$text = "<div style='text-align:center'>
<table style='".ADMIN_WIDTH."'>";
$buts = "";
@@ -33,7 +36,7 @@ while ($td <= 5) {
$td = 1;
$text .= "</tr></table></div>";
if($buts != ""){
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
}
$text = "<div style='text-align:center'>

View File

@@ -11,13 +11,17 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/includes/compact.php,v $
| $Revision: 1.3 $
| $Date: 2008-08-25 10:46:32 $
| $Author: e107steved $
| $Revision: 1.4 $
| $Date: 2008-12-30 15:56:12 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER."message_handler.php");
$emessage = &eMessage::getInstance();
$buts = "";
$text = "<div style='text-align:center'>
<table style='".ADMIN_WIDTH."'>";
@@ -37,7 +41,7 @@ $td = 1;
$text .= "</tr></table></div>";
if($buts !=""){
$ns->tablerender(ADLAN_47." ".ADMINNAME, $text);
$ns->tablerender(ADLAN_47." ".ADMINNAME, $emessage->render().$text);
}
$text = "<div style='text-align:center'>
@@ -54,4 +58,4 @@ $ns->tablerender(ADLAN_CL_7, $text);
echo admin_info();
?>
?>