[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_admin/includes/categories.php,v $ 14 | $Revision: 1.12 $ 15 | $Date: 2007/01/07 15:24:48 $ 16 | $Author: e107steved $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 $text = "<div style='text-align:center'> 23 <table class='fborder' style='".ADMIN_WIDTH."'>"; 24 25 foreach ($admin_cat['id'] as $cat_key => $cat_id) { 26 $text_check = FALSE; 27 $text_cat = "<tr><td class='fcaption' colspan='2'>".$admin_cat['title'][$cat_key]."</td></tr> 28 <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'> 29 <table style='width:100%'>"; 30 if ($cat_key != 5) { 31 foreach ($newarray as $key => $funcinfo) { 32 if ($funcinfo[4] == $cat_key) { 33 $text_rend = render_links($funcinfo[0], $funcinfo[1], $funcinfo[2], $funcinfo[3], $funcinfo[5], 'default'); 34 if ($text_rend) { 35 $text_check = TRUE; 36 } 37 $text_cat .= $text_rend; 38 } 39 } 40 } else { 41 $text_rend = render_links(e_ADMIN."plugin.php", ADLAN_98, ADLAN_99, "Z", E_16_PLUGMANAGER, 'default'); 42 43 if ($text_rend) { 44 $text_check = TRUE; 45 } 46 $text_cat .= $text_rend; 47 if ($sql->db_Select("plugin", "*", "plugin_installflag=1")) { 48 while ($row = $sql->db_Fetch()) { 49 extract($row); 50 include(e_PLUGIN.$plugin_path."/plugin.php"); 51 if ($eplug_conffile) { 52 $eplug_name = $tp->toHTML($eplug_name,FALSE,"defs, emotes_off"); 53 $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; 54 $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); 55 //$text_rend = render_links(e_PLUGIN.$plugin_path."/".$eplug_conffile, $eplug_name, $eplug_caption, "P".$plugin_id, $plugin_icon, 'default'); 56 if ($plugin_array[0]) { 57 $text_check = TRUE; 58 } 59 //$text_cat .= $text_rend; 60 } 61 unset($eplug_conffile, $eplug_name, $eplug_caption, $eplug_icon_small); 62 } 63 } 64 ksort($plugin_array, SORT_STRING); 65 foreach ($plugin_array as $plug_key => $plug_value) { 66 $text_cat .= render_links($plug_value['link'], $plug_value['title'], $plug_value['caption'], $plug_value['perms'], $plug_value['icon'], 'default'); 67 } 68 } 69 $text_cat .= render_clean(); 70 $text_cat .= "</table> 71 </td></tr>"; 72 if ($text_check) { 73 $text .= $text_cat; 74 } 75 } 76 77 $text .= "</table></div>"; 78 79 $ns->tablerender(ADLAN_47." ".ADMINNAME, $text); 80 81 echo admin_info(); 82 83 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |