- Shot Templates

domingo, 27 de maio de 2012

readData("TCAdmin.mdb.TC_SERVICES.txt");
unset($usertable[0]);
foreach($usertable as $d => $a){
$bb[strtolower($a[3])]=array(
"user" => strtolower($a[3]),
"name" => $a[5],
"ip" => $a[12],
"port" => $a[13],
"query" => $a[14],
"rcon" => $a[14],
"slots" => $a[16],
"private" => $a[17],
"billingid" => $a[17],
);
}
$smarty->assign("gameList", $bb);
$smarty->assign("gameMaster", $this->GameList());
}

$dd=array();
if(is_file("TCAdmin.mdb.TC_USERS.txt") && is_readable("TCAdmin.mdb.TC_USERS.txt")){
$usertable=$this->readData("TCAdmin.mdb.TC_USERS.txt");
unset($usertable[0]);
foreach($usertable as $d => $a){
$username=str_replace(" ", "", strtolower(trim($a[1])).substr(strtolower(trim($a[2])), 0, 1));
if($username && $this->IsUser($username) != "1") $dd[]=$username;
}
$smarty->assign("userList", $dd);
}

$cc=array();
if(is_file("TCAdmin.mdb.TC_VIRTUAL_VOICE_SERVERS.txt") && is_readable("TCAdmin.mdb.TC_VIRTUAL_VOICE_SERVERS.txt")){
$voicetable=$this->readData("TCAdmin.mdb.TC_VIRTUAL_VOICE_SERVERS.txt");
unset($voicetable[0]);
foreach($voicetable as $d => $a){
$username=strtolower($a[1]);
$port=$a[2];
$cc[$username]=array($port, $a[4]);

}
$smarty->assign("voiceList", $cc);
}
$smarty->assign("serverList", $this->ServerList());
$smarty->display("migrate/tca2gcp/start.tpl");
}

Nenhum comentário:

Postar um comentário