Top Online Players /Modules
:: Gamer :: Online Games :: Всичко за MuOnline
Страница 1 от 1
Top Online Players /Modules
Make a document in modules called "mostonline.php" And Place The Codes Bellow
PHP Code:
/**
* @zortex
* @copyright 2009
*/
if( !isset($_GET['op']))
{
require('../includes/denied.php');
denied('Time');
}
require('config.php');
//We get the user
$online = $db->Execute('SELECT DISTINCT
TOP 25
AccountCharacter.ID,
AccountCharacter.GameIDC,
MEMB_STAT.ServerName,
MEMB_STAT.IP,
MEMB_STAT.ConnectTM,
MEMB_STAT.DisConnectTM,
MEMB_STAT.OnlineHours
from
MEMB_STAT
join
AccountCharacter
on
Memb_stat.memb___id = AccountCharacter.ID
ORDER BY
MEMB_STAT.OnlineHours DESC');
while($online_time = $online->fetchrow())
{
//Maybe the statut too
$statut = $db->Execute("Select ConnectStat FROM MEMB_STAT WHERE memb___id='".$online_time[0]."'");
$statut_ok = $statut->fetchrow();
if($statut_ok[0] == 1){$online_stat = 'Online';}
elseif($statut_ok[0] == 0){$online_stat = 'Offline';}
?>
}
?>
PHP Code:
/**
* @zortex
* @copyright 2009
*/
if( !isset($_GET['op']))
{
require('../includes/denied.php');
denied('Time');
}
require('config.php');
//We get the user
$online = $db->Execute('SELECT DISTINCT
TOP 25
AccountCharacter.ID,
AccountCharacter.GameIDC,
MEMB_STAT.ServerName,
MEMB_STAT.IP,
MEMB_STAT.ConnectTM,
MEMB_STAT.DisConnectTM,
MEMB_STAT.OnlineHours
from
MEMB_STAT
join
AccountCharacter
on
Memb_stat.memb___id = AccountCharacter.ID
ORDER BY
MEMB_STAT.OnlineHours DESC');
while($online_time = $online->fetchrow())
{
//Maybe the statut too
$statut = $db->Execute("Select ConnectStat FROM MEMB_STAT WHERE memb___id='".$online_time[0]."'");
$statut_ok = $statut->fetchrow();
if($statut_ok[0] == 1){$online_stat = 'Online';}
elseif($statut_ok[0] == 0){$online_stat = 'Offline';}
?>
}
?>
Players | Online Time | Status |
class="normal_text_white"> href="index.php?op=character&character="> |
Similar topics
» Ban User from web/Modules
» EasyOptilanMu 97d+97i+post-Promo for new players
» PHP connection fix for SQL Server 2005//Modules
» EasyOptilanMu 97d+97i+post-Promo for new players
» PHP connection fix for SQL Server 2005//Modules
:: Gamer :: Online Games :: Всичко за MuOnline
Страница 1 от 1
Права за този форум:
Не Можете да отговаряте на темите
|
|
Пон 19 Ное 2018, 00:01 by paynerr
» LockMU Season 6 Episode 3
Пон 12 Ное 2018, 20:02 by kaleikata
» DawnMu старата школа за старите играчи
Съб 26 Ное 2016, 01:13 by besnia3
» [AD] OPEN MU SEASON 3 EPISODE 1
Съб 09 Апр 2016, 06:29 by xtasy
» [AD] OPEN MU SEASON 3 EPISODE 1
Чет 07 Яну 2016, 10:11 by xtasy
» WarWorldMu 97d99i Exp: 200x Drop: 80%
Нед 16 Авг 2015, 20:20 by StrongHold
» LinkosMU Season 3 episode 1
Чет 14 Май 2015, 23:51 by StrongHold
» HARD MU (99b+)
Чет 16 Апр 2015, 16:23 by roly92
» [AD] OpenMu S3 , EP 1 max xp , fun server
Чет 26 Мар 2015, 16:14 by rogue93