<?php
$title = $name." ".$lang[31];
parth1tr();
parth1('100%',4,'center');
echo 'GM List';
parth2();
parth2tr();
parth1('5%','','center');
echo $lang[0];
parth2();
parth1('15%','','center');
echo $lang[3];
parth2();
parth1('60%','','center');
echo $lang[1];
parth2();
parth1('20%','','center');
echo $lang[42];
parth2();
parth2tr();
$count = 0;
$msconnect=odbc_connect("$dbname","$dbuser","$dbpass");
$results=odbc_exec($msconnect,"SELECT strUserID, Nation FROM USERDATA WHERE Authority=0 ORDER BY Nation DESC");
while (odbc_fetch_row($results)) {
$user = odbc_result($results, 1);
$nation = odbc_result($results, 2);
$count++;
$nation = getNation($nation);
part1tr();
part2();
part1('5%',1,1,'center');
echo $count;
if ($nation=='Karus')
{
part1('15%',1,1,'top');
image($skindir.'karus.gif');
part2();
}
else
{
part1('15%',1,1,'top');
image($skindir.'elmo.gif');
part2();
}
part1('80%',1,1,'center');
echo $user;
part2();
part1('20%',1,1,'center');
$online = 0;
$stat=odbc_exec($msconnect,"SELECT strCharID FROM CURRENTUSER WHERE strCharID ='".$user."'");
while(odbc_fetch_row($stat))
{
$res=odbc_result($stat, 1);
image($skindir.'online.gif');
$online = 1;
}
if ($online == 0) image($skindir.'offline.gif');
part2();
part2tr();
};