[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/admin_menu/ -> admin_menu.php (source)

   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_plugins/admin_menu/admin_menu.php,v $
  14  |     $Revision: 1.11 $
  15  |     $Date: 2006/11/23 09:46:33 $
  16  |     $Author: e107coders $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  global $tp;
  22  if (ADMIN == TRUE) {
  23      @include_once(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_admin.php");
  24      @include_once(e_LANGUAGEDIR."English/admin/lan_admin.php");
  25  
  26      require_once(e_HANDLER."userclass_class.php");
  27      require_once(e_ADMIN."ad_links.php");
  28      require_once(e_HANDLER.'admin_handler.php');
  29  
  30      $array_functions[] = array(e_ADMIN."plugin.php", ADLAN_98, "Z");
  31  
  32      if ($sql->db_Select("plugin", "*", "plugin_installflag=1")) {
  33          while ($row = $sql->db_Fetch()) {
  34              include(e_PLUGIN.$row['plugin_path']."/plugin.php");
  35              if ($eplug_conffile) {
  36                  $array_functions[] = array(e_PLUGIN.$row['plugin_path']."/".$eplug_conffile, $tp->toHtml($eplug_name,"","defs,emotes_off, no_make_clickable"), "P".$row['plugin_id']);
  37              }
  38              unset($eplug_conffile, $eplug_name, $eplug_caption, $eplug_icon_small);
  39          }
  40      }
  41  
  42      $array_functions = asortbyindex($array_functions, 1);
  43  
  44      $amtext = "<div style='text-align:center'>
  45      <select name='activate' onchange='urljump(this.options[selectedIndex].value)' class='tbox'>
  46      <option>".LAN_SELECT."</option>\n";
  47      foreach ($array_functions as $link_value) {
  48          $amtext .= render_admin_links($link_value[0], $link_value[1], $link_value[2]);
  49      }
  50  
  51      $amtext .= "</select>
  52      </div>";
  53      $ns->tablerender(LAN_ADMIN, $amtext, 'admin_menu');
  54  }
  55  
  56  function render_admin_links($link, $title, $perms) {
  57      if (getperms($perms)) {
  58          return "<option value='".$link."'>".$title."</option>";
  59      }
  60  }
  61  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7