[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_files/shortcode/ -> admin_plugins.sc (source)

   1  if (ADMIN) {
   2      global $e107_plug, $ns, $pref;
   3      if ($pref['admin_alerts_ok'] == 1) {
   4          ob_start();
   5          $text = "";
   6          $i = 0;
   7          if (strstr(e_SELF, "/admin.php")) {
   8              global $sql;
   9              if ($sql -> db_Select("plugin", "*", "plugin_installflag=1")) {
  10                  while($rowplug = $sql -> db_Fetch()){
  11                      extract($rowplug);
  12                      $e107_plug[$rowplug[1]] = $rowplug[3];
  13                  }
  14              }
  15          }
  16          if (is_array($e107_plug)) {
  17              foreach(array_keys($e107_plug) as $xplug){
  18                  if (file_exists(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php")) {
  19                      if ($pref['admin_alerts_uniquemenu'] == 1) {
  20                          $text .= "<b>".$xplug."</b><br />";
  21                      } else {
  22                          $text = "";
  23                      }
  24                      require_once(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php");
  25                      $text .= "<br />";
  26                      if ($pref['admin_alerts_uniquemenu'] != 1) {
  27                          $caption = $xplug;
  28                          $ns -> tablerender($caption, $text);
  29                      } else {
  30                          $text .= "<br />";
  31                      }
  32                      $i++;
  33                  }
  34              }
  35          }
  36      
  37          $caption = LAN_head_6;
  38      
  39          if ($i>0 && $pref['admin_alerts_uniquemenu'] == 1) {
  40              $ns -> tablerender($caption, $text);
  41          }
  42          $plug_text = ob_get_contents();
  43          ob_end_clean();
  44          return $plug_text;
  45      }
  46  }


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