- Joined
- Mar 1, 2011
- Messages
- 140
- Reaction score
- 16
тей като от доста време се мача да подкарам тоя crew.php взех го от blackmu искам да го подкараме тей като и той не помни как го е подкарал да го погледнете и вие да кажете иска ли нещо да се сложи в analyzer ? знам че има хора който могат да помогнат, не разбирам много но мисля че иска скрипт да се въведе в analizer ето го и crew.php
Code:
<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('crew');
}
?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<font size="2" face="Verdana" style="font-size: 10pt">
<?
require("config.php");
$time=time();
$query = "Select Name,adminlevel,color from Character where ctlcode ='8' and name !='GameMaster' order by adminlevel desc,color desc";
$result = mssql_query($query);
echo '<TABLE border=0 cellPadding=2 cellSpacing=2 align=center>
<center><font face=Tahoma><center><b>BlackMu Crew</font></b></center></font><br>
<center><font face=Tahoma color=red><center><blink><b>Offline 48 hours = REMOVE!</font></b></center></font>
<br>
<table height=10 border=1 bordercolor=#000000 height=30 border="1" style="border: 1px dashed silver" bordercolor="#000000" cellpadding=2 cellspacing=1 align=center>
<tr>
<td align=left><font color=#666666><b><center>ID</center></font></td>
<td align=left><font color=#666666><b><center>Name</center></font></td>
<td align=left><font color=#666666><b><center>Rank</center></font></td>
<td align=left><font color=#666666><b><center>Status</center></font></td>
<td align=left><font color=#666666><b><center>Online before</center></font></td>
</tr>';
function char_online($charname){
$account=mssql_fetch_row(mssql_query("select accountid from character where name='$charname'"));
$connected=mssql_num_rows(mssql_query("SELECT * FROM MEMB_STAT WHERE memb___id='$account[0]' AND ConnectStat=1"));
$accountchar = mssql_fetch_row(mssql_query("Select GameIDC From AccountCharacter where Id='$account[0]'"));
if($connected > 0 and strtoupper($accountchar[0]) == strtoupper($charname))return 1;
else return 0;
}
if(!char_online('Endurance')){ $status[0] ='<img src=./images/Offline1.gif width=12 height=12 >';
}
if(char_online('Endurance')){ $status[0] ='<img src=./images/Online1.gif width=12 height=12 >';
}
$rank = 0;
for($i=0;$i < mssql_num_rows($result);++$i)
{
$row = mssql_fetch_row($result);
if($row[1]==0){$row[1]='GameMaster';}
if($row[1]==1){$row[1]='Server Distributor';}
if($row[1]==2){$row[1]='Co-Admin';}
if($row[1]==3){$row[1]='Event Master';}
if($row[1]==4){$row[1]='Game Guard';}
if($row[1]==5){$row[1]='Admin';}
if($row[2]==0){$color="Silver";}
if($row[2]==1){$color="#00FF00";}
if($row[2]==2){$color="#00FFFF";}
if($row[2]==3){$color="#900000";}
if($row[2]==4){$color="#663399";}
if($row[2]==5){$color="Green";}
if($row[2]==6){$color="White";}
if($row[2]==7){$color="Purple";}
if($row[2]==8){$color="gold";}
if($row[2]==9){$color="#88CCFF";}
if($row[2]==10){$color="red";}
$account=mssql_fetch_row(mssql_query("select accountid from character where name='$row[0]'"));
$rank = 1+$rank;
$status_check="Select ConnectStat from MEMB_STAT where memb___id='$account[0]'";
$status_reults = mssql_query($status_check);
$status = mssql_fetch_row($status_reults);
$twitter=mssql_fetch_row(mssql_query("select twitter from memb_info where memb___id='$account[0]'"));
$prava="<font size=1 color=$color><b><center>$row[1]</center></b>";
$b=mssql_fetch_row(mssql_query("update crew set realtm='$time';select dstm,realtm from crew where name='$row[0]'"));
$b=$b[1] - $b[0];
$m=($b/60);
$m=explode('.',$m,'2');
if($m[0]!=1){$p="s";}else{$p="e";}
$c="$m[0] minute$p";
if($b>3600){
$h=$b/60/60;
$h=explode('.',$h,'2');
$m[0]=$m[0] - 60*$h[0];
if($h[0] > 1){$o="s";}
if($m[0]!=1){$p="s";}else{$p="e";}
$c="$h[0] hour$o and $m[0] minute$p";
}
if(!char_online($row[0])){ $status[0] ='<img src=./images/Offline1.gif width=42 height=16 >'; $ontime="$c";
}
if(char_online($row[0])){ $status[0] ='<img src=./images/Online1.gif width=42 height=16 >'; $ontime='Online now!';mssql_query("update crew set dstm='$time' where account='$account[0]'");
}
$a=mssql_num_rows(mssql_query("select * from crew where name='$row[0]'"));
if($a<1){mssql_query("insert into crew (account,name,dstm,realtm) values ('$account[0]','$row[0]','$time','$time')");}
echo "
<tr>
<td align=left><b><font size=1 color=#666666><center>$rank</center></b></font></td>
<td class=link_chars align=left><center><b><font size='1'>$row[0]</center></b></font></a></div></td>
<td align=left>$prava</td>
<td align=left><font size=1 ><b><center>$status[0]</center></b></td>
<td align=left><font size=1 ><b><center>$ontime</center></b></td>
</tr>
";
}
?>
</table>
</td>
</tr>
</table>
</div><br>
<center>
<font color=red>All GM's and Admin's, that have been logged out for more than 48 hours will be removed.