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

   1  if (getperms('0'))
   2  {
   3      if (!function_exists('admin_log')) {
   4  		function admin_log() {
   5              global $sql, $ns;
   6              $text = E_16_ADMINLOG." <a style='cursor: pointer; cursor: hand' onclick=\"expandit('adminlog')\">".ADLAN_116."</a>\n";
   7              if (e_QUERY == "logall") {
   8                  $text .= "<div id='adminlog'>";
   9                  $cnt = $sql -> db_Select("dblog", "*", "ORDER BY `dblog_datestamp` DESC", "no_where");
  10              } else {
  11                  $text .= "<div style='display: none;' id='adminlog'>";
  12                  $cnt = $sql -> db_Select("dblog", "*", "ORDER BY `dblog_datestamp` DESC LIMIT 0,10", "no_where");
  13              }
  14              $text .= ($cnt) ? "<ul>" : "";
  15              $gen = new convert;
  16              while ($row = $sql -> db_Fetch()) {
  17                  $datestamp = $gen->convert_date($row['dblog_datestamp'], 'short');
  18                  $text .= "<li>{$datestamp} - {$row['dblog_title']}</li>";
  19              }
  20              $text .= ($cnt ? "</ul>" : "");
  21              $text .= "[ <a href='".e_ADMIN."admin_log.php?logall'>".ADLAN_117."</a> ]";
  22  
  23              $text .= "<br />[ <a href='".e_ADMIN."admin_log.php?purge' onclick=\"return jsconfirm('".LAN_CONFIRMDEL."')\">".ADLAN_118."</a> ]\n";
  24  
  25              $text .= "</div>";
  26  
  27              return $ns -> tablerender(ADLAN_135, $text, '', TRUE);
  28          }
  29      }
  30  
  31      if ($parm == 'request') {
  32          if (function_exists('log_request')) {
  33              if (log_request()) {
  34                  return admin_log();
  35              }
  36          }
  37      } else {
  38          return admin_log();
  39      }
  40  }


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