[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_admin/ -> userinfo.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_admin/userinfo.php,v $
  14  |     $Revision: 1.10 $
  15  |     $Date: 2006/10/28 10:09:17 $
  16  |     $Author: lisa_ $
  17  +----------------------------------------------------------------------------+
  18  */
  19  require_once ("../class2.php");
  20  if (!getperms("4")) {
  21      header("location:".e_BASE."index.php");
  22       exit;
  23  }
  24  $e_sub_cat = 'users';
  25  require_once ("auth.php");
  26  
  27  if (!e_QUERY) {
  28      $text = "<div style=\"text-align:center\">".USFLAN_1."</div>";
  29      $ns->tablerender(LAN_ERROR, $text);
  30      require_once ("footer.php");
  31      exit;
  32  } else {
  33      $ipd = e_QUERY;
  34  }
  35  
  36  if (isset($ipd)) {
  37      if(!defined("BULLET")) define("BULLET", "bullet2.gif");
  38  
  39      $obj = new convert;
  40      $sql->db_Select("chatbox", "*", "cb_ip='$ipd' LIMIT 0,20");
  41      $host = $e107->get_host_name($ipd);
  42      $text = USFLAN_3." <b>".$ipd."</b> [ ".USFLAN_4.": $host ]<br />
  43          <i><a href=\"banlist.php?".$ipd."\">".USFLAN_5."</a></i>
  44  
  45          <br /><br />";
  46      while (list($cb_id, $cb_nick, $cb_message, $cb_datestamp, $cb_blocked, $cb_ip ) = $sql->db_Fetch()) {
  47          $datestamp = $obj->convert_date($cb_datestamp, "short");
  48          $post_author_id = substr($cb_nick, 0, strpos($cb_nick, "."));
  49          $post_author_name = substr($cb_nick, (strpos($cb_nick, ".")+1));
  50          $text .= "<img src='".THEME_ABS."images/".BULLET."' alt='bullet' />
  51              <span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>\n<div class=\"mediumtext\">".$datestamp."<br />". $cb_message."
  52              </div><br />";
  53      }
  54  
  55      $text .= "<hr />";
  56  
  57      $sql->db_Select("comments", "*", "comment_ip='$ipd' LIMIT 0,20");
  58      while (list($comment_id, $comment_item_id, $comment_author, $comment_author_email, $comment_datestamp, $comment_comment, $comment_blocked, $comment_ip) = $sql->db_Fetch()) {
  59          $datestamp = $obj->convert_date($comment_datestamp, "short");
  60          $post_author_id = substr($comment_author, 0, strpos($comment_author, "."));
  61          $post_author_name = substr($comment_author, (strpos($comment_author, ".")+1));
  62          $text .= "<img src='".THEME_ABS."images/".BULLET."' alt='bullet' />
  63              <span class=\"defaulttext\"><i>".$post_author_name." (".USFLAN_6.": ".$post_author_id.")</i></span>\n<div class=\"mediumtext\">".$datestamp."<br />". $comment_comment."</div><br />";
  64      }
  65  
  66  }
  67  
  68  $ns->tablerender(USFLAN_7, $text);
  69  
  70  require_once ("footer.php");
  71  ?>


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