include("../config/config.php");
if ($admin == "1" || $admin=="1"){
$user = explode ('/', $HTTP_USER_AGENT);
$ip = ($REMOTE_ADDR);
//wipe boot log
if ($viesti == "wipebootlog"){
$peke = fopen('../text/bootnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped boot log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//hacker dodge this
if ($viesti == "dodgethis!"){
$peke = fopen('../text/blahnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/bannames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/ownernames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/adminnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/modnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*hackers DODGE THIS!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe blah log
if ($viesti == "wipeblahlog"){
$peke = fopen('../text/blahnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped blah log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe ban log
if ($viesti == "wipebanlog"){
$peke = fopen('../text/bannames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped ban log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe trash log
if ($viesti == "wipetrashlog"){
$peke = fopen('../text/trashnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped trash log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//boot
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="boot"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' tried to boot a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiednim= fopen('../text/bootnames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' booted '.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//wipe all owners but you
if ($viesti == "wipeowner"){
$peke = fopen('../text/ownernames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$tiednim= fopen('../text/ownernames.txt', 'a');
fputs($tiednim, "ghost", "deviance");
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped all owners!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe all mod
if ($viesti == "wipemod"){
$peke = fopen('../text/modnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped all mods!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe all admin
if ($viesti == "wipeadmin"){
$peke = fopen('../text/adminnames.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' wiped all admin!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//unban
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="unban"){
$kuka=$hmmm[1];
$tiedosto = fopen('../text/bannames.txt', 'r+');
$ko=file_get_contents ('../text/bannames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_UNBANNED
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to=''.$kuka.' got unban by ©'.$nimi.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//ban
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="ban"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' tried to ban a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiednim= fopen('../text/bannames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to=''.$kuka.'is banned by ©'.$nimi.'
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//unblah
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="unblah"){
$kuka=$hmmm[1];
$tiedosto = fopen('../text/blahnames.txt', 'r+');
$ko=file_get_contents ('../text/blahnames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_UNBLAHD
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to=''.$kuka.' got unblah by ©'.$nimi.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//blah
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="blah"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='©'.$nimi.' tried to blah a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiednim= fopen('../text/blahnames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*'.$kuka.' is blahed by ©'.$nimi.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//take mod
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="takemod"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' tried to demote a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiedosto = fopen('../text/modnames.txt', 'r+');
$ko=file_get_contents ('../text/modnames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_DEMOTED
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' demoted ²'.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//create mod
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="makemod"){
$kuka=$hmmm[1];
$tiednim= fopen('../text/modnames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' made '.$kuka.' mod!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//take admin
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="takeadmin"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' tried to demote a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiedosto = fopen('../text/adminnames.txt', 'r+');
$ko=file_get_contents ('../text/adminnames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_DEMOTED
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' demoted ¹'.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//create admin
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="makeadmin"){
$kuka=$hmmm[1];
$tiednim= fopen('../text/adminnames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' made '.$kuka.' admin!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//take owner
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="takeowner"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' tried to demote a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiedosto = fopen('../text/ownernames.txt', 'r+');
$ko=file_get_contents ('../text/ownernames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_DEMOTED
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' demoted ©'.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//create owner
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="makeowner"){
$kuka=$hmmm[1];
$tiednim= fopen('../text/ownernames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' made '.$kuka.' owner!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//untrash
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="untrash"){
$kuka=$hmmm[1];
$tiedosto = fopen('../text/trashnames.txt', 'r+');
$ko=file_get_contents ('../text/trashnames.txt');
$ko = str_replace ($kuka.'
', $kuka.'_UNTRASHD
', $ko);
fputs($tiedosto, $ko);
fclose($tiedosto);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' untrashd '.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//trash
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="trash"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){
$kuka="blahblahblah";}
if ($kuka=="blahblahblah" || $kuka=="blahblahblah"){$viesti="";$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' tried to trash a protected person!
'. $ko;
fputs($tie, $to);
fclose($tie);}else{
$tiednim= fopen('../text/trashnames.txt', 'a');
$lisnim=$kuka.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' trashed '.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}}
//wipe privates
if ($viesti == "wipeprivate"){
$peke = fopen('../text/privnea.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped privates!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe chat log
if ($viesti == "wipechatlog"){
$peke = fopen('../text/room1.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/room2.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/room3.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped chat log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe ip log
if ($viesti == "wipeiplog"){
$peke = fopen('../text/iplog.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped ip log!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe hit counter
if ($viesti == "wipehits"){
$peke = fopen('../text/count.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped hit counter!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//clear ALL users
if ($viesti == "wipeusers"){
$peke = fopen('../text/nims.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/sals.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$peke = fopen('../text/profidate.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$tiedsal = fopen('../text/sals.txt', 'a');
$salasana = crypt($salasana,'password');
$lissal=$salasana.'
';
fputs($tiedsal, $lissal);
fclose($tiedsal);
$tiednim= fopen('../text/nims.txt', 'a');
$lisnim=$nimi.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$tiednim= fopen('../text/profidate.txt', 'a');
$lisnim=$nimi.'
';
fputs($tiednim, $lisnim);
fclose($tiednim);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped all users!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe login list
if ($viesti == "wipelogin"){
$peke = fopen('../text/paikalla.txt', 'r+');
ftruncate ($peke,0);
fclose($peke);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped login list!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//wipe public messages
if ($viesti == "wipepublic"){
$pek = fopen('../text/room1.txt', 'r+');
$kolmanee=file_get_contents ('../text/room1.txt');
$uusiriv="
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n";
$toinent="$uusiriv $kolmanee";
fputs($pek, $toinent);
fclose($pek);
$viesti="";
$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' wiped public messages!
'. $ko;
fputs($tie, $to);
fclose($tie);}
//kill user
$hmmm=explode('/',$viesti);
if ($hmmm[0]=="kill"){
$kuka=$hmmm[1];
if ($hmmm[1]=="$protect1" || $hmmm[1]=="$protect2"){$tie = fopen('../text/room1.txt', 'r+');
$ko=file_get_contents ('../text/room1.txt');
$to='*©'.$nimi.' tried to kill '.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);
$kuka="blahblahblah";}
for ($pp=0; $pp*©'.$nimi.' killed '.$kuka.'!
'. $ko;
fputs($tie, $to);
fclose($tie);}
}
}
?>