XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
center.php File Reference

Go to the source code of this file.

Functions

 protector_ip_cmp ($a, $b)
 

Variables

if(!is_writable(dirname(dirname(__FILE__)).'/configs')) $bad_ips = $protector->get_bad_ips( true )
 
 $bad_ips4disp = ''
 
 $conf = $protector->getConf()
 
 $db =& XoopsDatabaseFactory::getDatabaseConnection()
 
foreach($bad_ips as $bad_ip=>
$jailed_time) 
$group1_ips = $protector->get_group1_ips()
 
 $group1_ips4disp = htmlspecialchars(implode("\n",$group1_ips),ENT_QUOTES)
 
 $log_table = $db->prefix( $mydirname."_log" )
 
if(isset($_GET['num'])) $myts =& MyTextSanitizer::getInstance()
 
 $nav = new XoopsPageNav( $numrows , $num , $pos , 'pos' , "page=center&num=$num" )
 
 $nav_html = $nav->renderNav( 10 )
 
 $num = empty( $_GET[ 'num' ] ) ? 20 : intval( $_GET[ 'num' ] )
 
 $num_array = array( 20 , 100 , 500 , 2000 )
 
 $num_options = ''
 
 $oddeven = 'odd'
 
 $pos = empty( $_GET[ 'pos' ] ) ? 0 : intval( $_GET[ 'pos' ] )
 
 $protector =& Protector::getInstance( $db->conn )
 
 $prs = $db->query( "SELECT l.lid, l.uid, l.ip, l.agent, l.type, l.description, UNIX_TIMESTAMP(l.timestamp), u.uname FROM $log_table l LEFT JOIN ".$db->prefix("users")." u ON l.uid=u.uid ORDER BY timestamp DESC LIMIT $pos,$num" )
 
if(!empty($_POST['action'])) $rs = $db->query( "SELECT count(lid) FROM $log_table" )
 
 while (list($lid, $uid, $ip, $agent, $type, $description, $timestamp, $uname)=$db->fetchRow($prs))
 

Function Documentation

protector_ip_cmp (   $a,
  $b 
)

Definition at line 278 of file center.php.

Variable Documentation

if (!is_writable(dirname(dirname(__FILE__)).'/configs')) $bad_ips = $protector->get_bad_ips( true )
$bad_ips4disp = ''

Definition at line 144 of file center.php.

$conf = $protector->getConf()

Definition at line 13 of file center.php.

foreach ($bad_ips as $bad_ip=> $jailed_time) $group1_ips = $protector->get_group1_ips()

Definition at line 152 of file center.php.

Referenced by Protector\get_group1_ips(), and protector_postcommon().

$group1_ips4disp = htmlspecialchars(implode("\n",$group1_ips),ENT_QUOTES)

Definition at line 154 of file center.php.

$log_table = $db->prefix( $mydirname."_log" )

Definition at line 20 of file center.php.

if (isset($_GET['num'])) $myts =& MyTextSanitizer::getInstance()

Definition at line 12 of file center.php.

$nav = new XoopsPageNav( $numrows , $num , $pos , 'pos' , "page=center&num=$num" )

Definition at line 115 of file center.php.

$nav_html = $nav->renderNav( 10 )

Definition at line 116 of file center.php.

$num_array = array( 20 , 100 , 500 , 2000 )

Definition at line 120 of file center.php.

$num_options = ''

Definition at line 119 of file center.php.

$oddeven = 'odd'

Definition at line 225 of file center.php.

$prs = $db->query( "SELECT l.lid, l.uid, l.ip, l.agent, l.type, l.description, UNIX_TIMESTAMP(l.timestamp), u.uname FROM $log_table l LEFT JOIN ".$db->prefix("users")." u ON l.uid=u.uid ORDER BY timestamp DESC LIMIT $pos,$num" )

Definition at line 112 of file center.php.

if (!empty($_POST['action'])) $rs = $db->query( "SELECT count(lid) FROM $log_table" )

Definition at line 110 of file center.php.

Referenced by XoopsTopic\topicExists().

while(list($lid, $uid, $ip, $agent, $type, $description, $timestamp, $uname)=$db->fetchRow($prs))

Definition at line 226 of file center.php.