还是WEB游戏源码 Darkstep 还是WEB游戏源码 Darkstep

源代码在线查看: admin-search.php

软件大小: 4241 K
上传用户: zln12345
关键词: Darkstep WEB 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				  $OMNILOG				= 1;
				  include("_include-config.php");
				  if(! check_login()) {
				    header("Location: login.php");
				    exit;
				  }
				
				  if(! ($data->level >= 50))
				    exit;
				
				  mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
				
				/* ------------------------- */ ?>
				
				
				
				
				[( Elite Avengers )]
				
				
				
				 #obmessage #message {top:120px;  border:1px solid black;
				         width:200px;background-color:lime;padding:4px;
				         position:absolute;}
				
				
				
				var left = 0;
				function movein(){
				  if (document.layers) {
				        document.layers['message'].pageX = window.pageXOffset + left;
				        left+=step;
				        if(left				        else { setTimeout('closemessage()',hide); }
				    }
				
				  else{
					document.getElementById('message').style.left=left+'px';
					left+=step;
					if(left					else { setTimeout('closemessage()',hide); }
				  }
				}
				function closemessage(){
				        if (document.layers) {document.layers['message'].visibility='hidden';}
				        else{document.getElementById('message').style.visibility='hidden';}
				}
				
				
				
				
				
				
				
								
				 if($_GET['p'] == "search") {
				    if(isset($_GET['x']) && $_GET['t'] == "users") {
				      $begin				= ($_GET['b'] >= 0) ? $_GET['b']*30 : 0;
				      $field				= "IP";
				      if($_GET['f'] == "login")
				        $field				= "login";
				
				      $x				= preg_replace('/\*/','%',$_GET['x']);
				      $x				= preg_replace('/_/','\_',$x);
				      $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE `$field` LIKE '$x%'");
				      $total				= mysql_num_rows($dbres);
				
				      $x				= preg_replace('/%/','*',$x);
				      print "Aantal resultaten: $total\n";
				      print 				    
					Login
					IP
				ENDHTML;
				
				      $x				= preg_replace('/\*/','%',$x);
				      if($_GET['s'] == "login")
				        $dbres				= mysql_query("SELECT `login`,`IP`,`email` FROM `[users]` WHERE `$field` LIKE '$x%' ORDER BY `login` LIMIT $begin,30");
				      else if($_GET['s'] == "ip")
				        $dbres				= mysql_query("SELECT `login`,`IP`,`email` FROM `[users]` WHERE `$field` LIKE '$x%' ORDER BY `ip` LIMIT $begin,30");
				      else
				        $dbres				= mysql_query("SELECT `login`,`IP`,`email` FROM `[users]` WHERE `$field` LIKE '$x%' ORDER BY `$field` LIMIT $begin,30");
				      for($j=$begin+1; $member = mysql_fetch_object($dbres); $j++) {
				        print 				  $j
					[R] 
				ENDHTML;
				if($data->level > 50)
				echo "[D]";
				        print 				 [P] [I]
					{$member->login}
					{$member->IP}
				ENDHTML;
				      }
				
				      $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE `$field` LIKE '$x' ORDER BY `$field`");
				      print "\n\n\n  ";
				      if(mysql_num_rows($dbres) 				        print "< 1 >\n";
				      else {
				        $x				= preg_replace('/%/','*',$x);
				        if($begin/30 == 0)
				          print "<< ";
				        else
				          print "<< ";
				
				        for($i=0; $i				          print "". ($i+1) ." ";
				        }
				
				        if($begin+30 >= mysql_num_rows($dbres))
				          print ">> ";
				        else
				          print ">>";
				      }
				    }
				    else if(isset($_GET['x']) && $_GET['t'] == "hqLogs") {
				      $begin				= ($_GET['b'] >= 0) ? $_GET['b']*30 : 0;
				
				      $x				= preg_replace('/\*/','%',$_GET['x']);
				      $x				= preg_replace('/_/','\_',$x);
				
				      if($_GET['s'] == "ip")
				        $sort				= "ORDER BY `IP`";
				      else if($_GET['s'] == "fIP")
				        $sort				= "ORDER BY `forwardedFor`";
				      else if($_GET['s'] == "online")
				        $sort				= "ORDER BY `online`";
				      else
				        $sort				= "ORDER BY `login`";
				
				      if($_GET['f'] == "bothIP")
				        $dbres				= mysql_query("SELECT `login`,`IP`,`forwardedFor`,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[logs]` WHERE (`IP` LIKE '$x' OR `forwardedFor` LIKE '$x') AND `area`='hqIP' $sort LIMIT $begin,30");
				      else if($_GET['f'] == "ip")
				        $dbres				= mysql_query("SELECT `login`,`IP`,`forwardedFor`,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[logs]` WHERE `IP` LIKE '$x' AND `area`='hqIP' $sort LIMIT $begin,30");
				      else if($_GET['f'] == "fIP")
				        $dbres				= mysql_query("SELECT `login`,`IP`,`forwardedFor`,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[logs]` WHERE `forwardedFor` LIKE '$x' AND `area`='hqIP' $sort LIMIT $begin,30");
				      else
				        $dbres				= mysql_query("SELECT `login`,`IP`,`forwardedFor`,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `time` FROM `[logs]` WHERE `login` LIKE '$x' AND `area`='hqIP' $sort LIMIT $begin,30");
				      $total				= mysql_num_rows($dbres);
				
				      $x				= preg_replace('/%/','*',$x);
				      print "Aantal resultaten: $total\n";
				      print 				    
					Login
					IP
					Forwarded
					Online:
				ENDHTML;
				
				      for($j=$begin+1; $member = mysql_fetch_object($dbres); $j++) {
				        print 				  $j
					[R] [D] [P] [I]
					{$member->login}
					{$member->IP}
					{$member->forwardedFor}
					{$member->time}
				ENDHTML;
				      }
				
				      print "\n\n\n  ";
				      if($total 				        print "< 1 >\n";
				      else {
				        $x				= preg_replace('/%/','*',$x);
				        if($begin/30 == 0)
				          print "<< ";
				        else
				          print "<< ";
				
				        for($i=0; $i				          print "". ($i+1) ." ";
				        }
				
				        if($begin+30 >= mysql_num_rows($dbres))
				          print ">> ";
				        else
				          print ">>";
				      }
				    }
				    else {
				      print 				  Search - Users
				  
					
					
					
					
					Search at:
					 Username
						 IP
					
				
					Use * as wildcard
					 
					
				  
				  
				
				  Search - HeadQuarter Logs
				  
					
					
					
					
					Search at:
					 Username
						 IP
						 X-Forwarded-For
						 IP & X-Forwarded-For
					
				
					Use * as wildcard
					 
					
				  
				  
				ENDHTML;
				    }
				  }
				   
				/* ------------------------- */ ?>
				
				
				
				
				
							

相关资源