[Help] Ban List

D3nKa7abg

New Member
Joined
Dec 9, 2008
Messages
66
Reaction score
0
Ако може някой да ми даде Бан лист с:

ID

Name

Bann Date

Banned For

Time Left

Reason

Banned by
Ще сьм му благодарен
 
PHP:
<?
		require("config.php");
		$time=time();
		$run=mssql_query("update dbo.desban set bantime='$time'");
		$query=mssql_query("select name,bantime,unbantime from desban");
		
		while($row = mssql_fetch_row($query)) {
		if($row[1]>=$row[2]){
		
			$run1=mssql_query("delete from dbo.desban where name='$row[0]'");
			$run2=mssql_query("update dbo.character set ctlcode='0' where name='$row[0]'");
			$run3=mssql_query("delete from  dbo.warnings where name='$row[0]'");
			}
		}
	?>
<?
require("config.php");
$query = "Select  Name,Class,cLevel,resets,MapNumber,AccountID,strength,dexterity,vitality,energy,PKcount from Character where ctlcode ='1' order by resets desc ,clevel desc";
$result = mssql_query($query);
echo '<br><font color=#2641A1 size=2><center><b></b></center></font>
<br></br>
<table height=10 border=0 cellpadding=0 cellspacing=0 width=530>       
                             
<tr>
<td align=left><font color=#fff><b><center>ID</center></b></font></td>
<td align=left><font color=#fff><b><center>Name</center></b></font></td>
<td align=left><font color=#fff><b><center>Bann Date</center></b></font></td>
<td align=left><font color=#fff><b><center>Banned For</center></b></font></td>
<td align=left><font color=#fff><b><center>Time Left</center></b></font></td>
<td align=left><font color=#fff><b><center>Reason</center></b></font></td>
<td align=left><font color=white><b><center>Banned by</center></b></font></td>

</tr>';

$ban=mssql_query("select Name from character where ctlcode='1'");
for($i=0;$i<mssql_num_rows($ban);++$i){
$row=mssql_fetch_row($ban);
$row1=mssql_fetch_row(mssql_query("select Name,vbantime,vunbantime,reason,bdays,bantime,unbantime,who from desban where name='$row[0]'"));
$nr=$i+1;
$rem=$row1[6]-$row1[5];
$ren=($rem/60/60);
$re=explode('.',$ren,'2');

echo "<tr>
<td align=left><font color=white><b><center>$nr</center></b></td>
<td align=left><font color=white><center>$row[0]</center></b></td>
<td align=left><font color=white><center>$row1[1]</center></b></td>
<td align=left><font color=white><center>$row1[4] Days</center></b></td>
<td align=left><font color=white><center>$re[0] Hours</center></b></td>
<td align=left><font color=white><center>$row1[3]</center></b></td>
<td align=left><font color=orange><center>$row1[7]</center></b></td>

</tr>
";
}
																
?>
 
мерси ;)



Но не бачка :s



Виш тва :)

Има ги Готови :)
Banned и warned !!!

п.с. и Изтегли това Admin И го Инсталирай !!!

Ако незнаеш как става Ето ти Пример:

Инсталацията на админ панела е оправена. Изтеглете на ново сайта и инсталирайте админпанела от http://your_ip/admin/install.php . След инсталацията изтрийте install.php
 

Attachments

  • Ban.rar
    1.7 KB · Views: 49
  • Admin.rar
    160.2 KB · Views: 27
Last edited: