[ 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_status.sc (source)

   1  if (ADMIN) {
   2      if (!function_exists('admin_status')) {
   3  		function admin_status() {
   4              global $sql, $ns, $pref;
   5              $members = $sql -> db_Count("user");
   6              $unverified = $sql -> db_Count("user", "(*)", "WHERE user_ban=2");
   7              $banned = $sql -> db_Count("user", "(*)", "WHERE user_ban=1");
   8              $comments = $sql -> db_Count("comments");
   9              $unver = ($unverified ? " <a href='".e_ADMIN."users.php?unverified'>".ADLAN_111."</a>" : ADLAN_111);
  10  
  11              $text = "<div style='padding-bottom: 2px;'>".E_16_USER." ".ADLAN_110.": ".$members."</div>";
  12              $text .= "<div style='padding-bottom: 2px;'>".E_16_USER." {$unver}: ".$unverified."</div>";
  13              $text .= "<div style='padding-bottom: 2px;'>".E_16_BANLIST." ".ADLAN_112.": ".$banned."</div>";
  14              $text .= "<div style='padding-bottom: 2px;'>".E_16_COMMENT." ".ADLAN_114.": ".$comments."</div>";
  15  
  16              foreach($pref['e_status_list'] as $val)
  17              {
  18                  if (is_readable(e_PLUGIN.$val."/e_status.php"))
  19                  {
  20                             include_once(e_PLUGIN.$val."/e_status.php");
  21                  }
  22              }
  23  
  24  
  25              if($flo = $sql -> db_Count("generic", "(*)", "WHERE gen_type='failed_login'"))
  26              {
  27                  $text .= "<img src='".e_IMAGE."admin_images/failedlogin_16.png' alt='' style='vertical-align: middle;' /> <a href='".e_ADMIN."fla.php'>".ADLAN_146.": $flo</a>";
  28              }
  29  
  30  
  31              return $ns -> tablerender(ADLAN_134, $text, '', TRUE);
  32          }
  33      }
  34  
  35      if ($parm == 'request') {
  36          if (function_exists('status_request')) {
  37              if (status_request()) {
  38                  return admin_status();
  39              }
  40          }
  41      } else {
  42          return admin_status();
  43      }
  44  }


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