Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 25.06.2005, 08:26   #3
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

Top 100[php:1:9758bd6c0c]<?
include("config.php");

mssql_connect($mssql_server,$mssql_user,$mssql_pas s);
mssql_select_db($mssql_db);

$result=mssql_query("
select
char_name, Lev, builder,
class, use_time,
PK, Duel,gender
from user_data
where char_name not in (".("'".join("','",$exclude_from_top)."'").") and account_id>0
order by Lev desc");

$online_users=array();
for($x=0;($online_users[$x]=mssql_fetch_assoc($result))&&$x<100;$x++){
$online_users[$x]['use_time_h']=round($online_users[$x]['use_time']/3600,1)."h";
**;
unset($online_users[count($online_users)-1]);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jan 01 1900 00:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<META http-equiv="content-language" content="en">
<META name="author" content="">
<META HTTP-EQUIV="Reply-to" CONTENT="@.com">
<META name="generator" content="PHPEd 3.1">
<META NAME="description" CONTENT="">
<META name="keywords" content="">
<META NAME="Creation_Date" CONTENT="08/15/2000">
<META name="revisit-after" content="15 days">
<title>Online</title>
</head>
<body>
<table border="1" align=center>

<tr>
<td>##</td>
<td>Nick</td>
<td>Lvl</td>
<td>Class</td>
<td>Total in game</td>
<td>PvP/PK</td>
</tr>
<?for($x=0;$x<count($online_users);$x++){?>
<tr>
<td><?=$x+1?></td>
<td style="color:<?=$online_users[$x]["gender"]?"#FF8080":"#8080FF"?>"><?=$online_users[$x]["char_name"]?></td>
<td><?=$online_users[$x]["Lev"]?></td>
<td><?=$class_list[$online_users[$x]["class"]]?></td>
<td><?=$online_users[$x]["use_time_h"]?></td>
<td><?=$online_users[$x]["Duel"]?>/<?=$online_users[$x]["PK"]?></td>
</tr>
<?**?>
</table>
</body>
</html> [/php:1:9758bd6c0c]

Refresh in seconds
Code:
<head>
<title>FORT Admin page</title>
<meta http-equiv="REFRESH" content="90;url=home.php"></head>
For writing one file so u decrese the load from sql u can fetch data and write the new file (either log or php file).
BiGBoY is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:24.