"; if ($adminaction) { if ($adminaction == "adduser") { $new_name = $_REQUEST['new_name']; $new_pass = $_REQUEST['new_pass']; $new_level = $_REQUEST['new_level']; if (($new_name) && ($new_pass) && ($new_level)) { if ($new_pass == "random") $new_pass = RandomPass(8); $new_mail = $_REQUEST['new_mail']; $message = $_REQUEST['message']; $subject = $_REQUEST['subject']; if (($message) && ($subject) && ($new_email)) { mail($new_email, $subject, $message, "From: $cadmin\nReply-To: $cadmin\nX-pJJ-IP: {$_SERVER['REMOTE_ADDR']}\nX-pJJ-Chat: http://pjj.cc/{$chatpath}/\nX-pJJ-Auth: {$_REQUEST['login']}\n"); echo "Mail sent to $new_email."; } else { $new_faction = $_REQUEST['new_faction']; if ($new_faction == "") $new_faction = "0"; if (AddUser($login, $password, trim($new_name), trim($new_pass), trim($new_faction), trim($new_email), trim($new_level), $chatpath) >= 1) { if ($ruid) { count_mysql_query("UPDATE uo_chat_regapps SET appstat=1 WHERE chat='{$chatpath}' AND id='{$ruid}'", $handler); } if ($new_email) { $subject = "Welcome to $ctitle, $new_name."; $message = "You have been accepted in $ctitle with the login:\n"; $message .= "Name: $new_name\n"; $message .= "Password: $new_pass\n"; $message .= "\n"; $message .= "Please log in at $cpath/register/login.php and edit your profile.\n"; $message .= "Your flag $new_level, which is "; if (CheckFlags("m", $new_level)) $message .= "Chat Master"; elseif (CheckFlags("Z", $new_level)) $message .= "Master"; elseif (CheckFlags("X", $new_level)) $message .= "Administrator"; elseif (CheckFlags("x", $new_level)) $message .= "Moderator"; elseif (CheckFlags("1", $new_level)) $message .= "Member"; elseif (CheckFlags("z", $new_level)) $message .= "OOC Member"; $message .= ".\n"; $message .= "\n"; $message .= ucwords($login)."\nAdministrator of $ctitle."; echo "
Email will be sent to $new_email with the following message:
Subject:
Message: "; } } } } else { echo "
Name:
Password:
Mail info to:
Faction:

Userlevel: "; } } else if ($adminaction == "sendmail") { $subject = $_REQUEST['subject']; $message = $_REQUEST['message']; $new_mail = $_REQUEST['new_mail']; if (($subject) && ($message) && ($new_email)) { mail($new_email, $subject, $message, "From: $cadmin\nReply-To: $cadmin\nX-pJJ-IP: {$_SERVER['REMOTE_ADDR']}\nX-pJJ-Chat: http://pjj.cc/{$chatpath}/\nX-pJJ-Auth: {$_REQUEST['login']}\n"); echo "Email sent to $new_email."; } else { echo "
To:
Subject:
Message body:
"; } } else if ($adminaction == "profile") { $p_data = $_REQUEST['p_data']; $p_delete = $_REQUEST['p_delete']; if (($p_data) || ($p_delete)) { if ((!stristr($p_data, "")) && (!stristr($p_data, ""))) { echo "Raw text detected. Enabling auto-HTML...
"; $cnick = ucwords($login); $p_data = nl2br(htmlentities($p_data)); $p_data = "Profile for $cnick".$p_data.""; } if ($master_zlib == 0) $p_data = addslashes($p_data); else $p_data = addslashes(gzcompress($p_data, 9)); if ($p_delete == "on") { @count_mysql_query("UPDATE uo_chat_database SET profile='' WHERE chat='$chatpath' AND username='$login'", $handler); echo "

Profile for $login was deleted.

"; } else { @count_mysql_query("UPDATE uo_chat_database SET profile='$p_data' WHERE chat='$chatpath' AND username='$login'", $handler); echo "

Profile for $login has been updated.

"; } } else { echo " Profile data.
If you exclude the <html> tag the system will convert it to text.
Remember the <html> if you are using HTML!

Delete profile:
If you don't want the selection menu, place the following script right before </head>:

<script language='JavaScript'> if (window != window.top) top.location.href = location.href; </script>
"; } } else if ($adminaction == "xprofile") { $p_data = $_REQUEST['p_data']; $p_delete = $_REQUEST['p_delete']; if (($p_data) || ($p_delete)) { if ((!stristr($p_data, "")) && (!stristr($p_data, ""))) { echo "Raw text detected. Enabling auto-HTML...
"; $cnick = ucwords($login); $p_data = nl2br(htmlentities($p_data)); $p_data = "Profile for $cnick".$p_data.""; } if ($master_zlib == 0) $p_data = addslashes($p_data); else $p_data = addslashes(gzcompress($p_data, 9)); if ($p_delete == "on") { @count_mysql_query("UPDATE uo_chat_database SET profile='' WHERE chat='$chatpath' AND username='$login'", $handler); echo "

Profile for $login was deleted.

"; } else { @count_mysql_query("UPDATE uo_chat_database SET profile='$p_data' WHERE chat='$chatpath' AND username='$login'", $handler); echo "

Profile for $login has been updated.

"; } } else { echo << _editor_lang = "en"; _editor_url = "http://pjj.cc/common/htmlarea/"; PHPEND; echo "

Delete profile:
"; echo << initEditor();
PHPEND; } } else if ($adminaction == "manageicons") { $selecteduser = $_REQUEST['selecteduser']; if (($selecteduser) && CheckFlags("IXZmM", $userlevel)) { $iconedit = $_REQUEST['iconedit']; if ($iconedit) { $name = $_REQUEST['name']; $file = $_REQUEST['file']; $write_me = array(); for ($cc=0;$cc"; count_mysql_query("UPDATE uo_chat_database SET icon='$write_me' WHERE chat='$chatpath' AND username='$selecteduser'", $handler); echo "

Icons updated.
\n"; } else { unset($iconedit); EnumerateIcons($selecteduser, $chatpath); echo ""; echo ""; } } else { echo ""; ListIconsModify($chatpath); } } else if ($adminaction == "alterflags") { $selecteduser = $_REQUEST['selecteduser']; if (($selecteduser) && CheckFlags("fZmM", $userlevel)) { $nflag = $_REQUEST['nflag']; if ($nflag) { $vflag = ""; if ($fl_mm == "on") $vflag .= "M"; if ($fl_m == "on") $vflag .= "m"; if ($fl_zz == "on") $vflag .= "Z"; if ($fl_xx == "on") $vflag .= "X"; if ($fl_x == "on") $vflag .= "x"; if ($fl_z == "on") $vflag .= "z"; if ($fl_pp == "on") $vflag .= "P"; if ($fl_aa == "on") $vflag .= "A"; if ($fl_dd == "on") $vflag .= "D"; if ($fl_rr == "on") $vflag .= "R"; if ($fl_p == "on") $vflag .= "p"; if ($fl_ff == "on") $vflag .= "F"; if ($fl_f == "on") $vflag .= "f"; if ($fl_s == "on") $vflag .= "s"; if ($fl_o == "on") $vflag .= "o"; if ($fl_i == "on") $vflag .= "i"; if ($fl_ii == "on") $vflag .= "I"; if ($fl_oo == "on") $vflag .= "O"; if ($fl_cc == "on") $vflag .= "C"; if ($fl_bb == "on") $vflag .= "B"; if ($fl_b == "on") $vflag .= "b"; if ($fl_r == "on") $vflag .= "r"; if ($fl_a == "on") $vflag .= "a"; if ($fl_l == "on") $vflag .= "l"; if ($fl_vv == "on") $vflag .= "V"; if ($fl_ll == "on") $vflag .= "L"; if (CheckFlags("M", $vflag)) $vflag = "M"; if (CheckFlags("m", $vflag)) $vflag = "m"; if (CheckFlags("Z", $vflag)) $vflag = "Z"; if (CheckFlags("X", $vflag)) $vflag = ereg_replace("[ADRpFsoiIOCBbra]", "", $vflag); ChangeUser($login, $password, $selecteduser, $vflag, $chatpath); } else { $flags = GetFlags($selecteduser, $chatpath); echo "\n"; echo ""; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
System Master Chat Master Master
Administrator Moderator OOC
Protected Add users Delete users
Rename users Reset passwords Change factions
Alter flags Edit Settings Edit Options
Edit Icons Edit personal icons Edit MotD
/clear /ban & /unban /muban
/rem /raw No JOIN or EXIT
Edit Poll Faction Leader
"; echo ""; echo ""; } } else { echo ""; ListIconsModify($chatpath); } } else if ($adminaction == "manageusers") { $modaction = $_REQUEST['modaction']; $selecteduser = $_REQUEST['selecteduser']; if (($modaction) && ($selecteduser) && CheckFlags("pDRFXZmM", $userlevel)) { $newname = $_REQUEST['newname']; if ($modaction == "resetpass") ResetPass($selecteduser, $login, $password, $chatpath); elseif ($modaction == "delete") DeleteUser($login, $password, $selecteduser, $chatpath); elseif ($modaction == "rename") RenameUser($selecteduser, $login, $password, $newname, $chatpath); elseif ($modaction == "faction") ChangeFaction($selecteduser, $login, $password, $newname, $chatpath); } else { echo ""; ListUsersModify($userlevel, $chatpath); ListFactions($chatpath); } } /* else if ($adminaction == "bulkmanageusers") { if (($modaction) && ($selecteduser) && CheckFlags("pDRFXZmM", $userlevel)) { if ($modaction == "bulkresetpass") BulkResetPass($selecteduser, $login, $password, $chatpath); else if ($modaction == "bulkdelete") BulkDeleteUser($login, $password, $selecteduser, $chatpath); else if ($modaction == "bulkfaction") BulkChangeFaction($selecteduser, $login, $password, $newname, $chatpath); } else { echo ""; BulkListUsersModify($userlevel, $chatpath); } } */ else if (($adminaction == "faction") && CheckFlags("LZmM", $userlevel)) { $fedit = $_REQUEST['fedit']; if (!$fedit && !CheckFlags("ZmM", $userlevel)) $fedit = GetFaction($login, $chatpath); if ($fedit) { $ficon = $_REQUEST['ficon']; if ($ficon) { AlterFaction($fedit, $ficon); } else { $fact = GetFactionDetails($chatpath, $fedit); echo "Editing ".ucwords($fact[2])."
\nFaction icon: "; echo ""; } } else { echo "Edit faction

"; echo ""; } } else if (($adminaction == "addfaction") && CheckFlags("FAZmM", $userlevel)) { $newf = $_REQUEST['newf']; if ($newf) { AddFaction($chatpath, $newf); } else { echo "Create new faction with name:

"; echo ""; } } else if (($adminaction == "renfaction") && CheckFlags("FAZmM", $userlevel)) { $newf = $_REQUEST['newf']; $old_id = $_REQUEST['old_id']; if ($newf) { RenameFaction($chatpath, $old_id, $newf); } else { echo "Rename faction "; echo " to

"; echo ""; } } else if (($adminaction == "delfaction") && CheckFlags("FAZmM", $userlevel)) { $old_id = $_REQUEST['old_id']; if ($old_id) { DeleteFaction($chatpath, $old_id); } else { echo "Delete faction

"; echo ""; } } else if (($adminaction == "poll") && CheckFlags("VZmM", $userlevel)) { $result = @count_mysql_query("SELECT chat,topic,nselect,ta,ca,tb,cb,tc,cc,td,cd,te,ce FROM uo_chat_poll WHERE chat='$chatpath'", $handler); $poll = mysql_fetch_row($result); @mysql_free_result($poll); $ptopic = $_REQUEST['ptopic']; $npoll = $_REQUEST['npoll']; $newpoll = $_REQUEST['newpoll']; $popt = $_REQUEST['popt']; $pcol = $_REQUEST['pcol']; if ($ptopic) { $npoll = round($npoll); if ($npoll < 2) $npoll = 2; if ($npoll > 5) $npoll = 5; if ($newpoll == "on") { @count_mysql_query("DELETE FROM uo_chat_vote WHERE chat='$chatpath'", $handler); echo "
Poll results cleared.
"; } $ptopic = str_replace("\"","´",$ptopic); $ptopic = str_replace("'","´",$ptopic); $result = @count_mysql_query("DELETE FROM uo_chat_poll WHERE chat='$chatpath'", $handler); for ($cc=0;$cc<5;$cc++) { $popt[$cc] = str_replace("'","´",$popt[$cc]); } @count_mysql_query("INSERT INTO uo_chat_poll (chat,topic,nselect,ta,ca,tb,cb,tc,cc,td,cd,te,ce) VALUES ('$chatpath','$ptopic','$npoll','$popt[0]','$pcol[0]','$popt[1]','$pcol[1]','$popt[2]','$pcol[2]','$popt[3]','$pcol[3]','$popt[4]','$pcol[4]')", $handler); } else { echo "Topic:
"; echo "Options:

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
#OptionColor
1
2
3
4
5
"; echo " Clear poll results?

"; echo ""; } } else if ($adminaction == "xmotd") { $motd = $_REQUEST['motd']; if ($motd) { $fw = fopen("motd.dat", "wb"); fwrite($fw, stripslashes($motd)); fclose($fw); @chmod("motd.dat", 0666); } else { echo << _editor_lang = "en"; _editor_url = "http://pjj.cc/common/htmlarea/"; PHPEND; echo ""; echo ""; echo << initEditor();
PHPEND; } } else if ($adminaction == "mmotd") { $motd = $_REQUEST['motd']; if ($motd) { $fw = fopen("motd.dat", "wb"); fwrite($fw, stripslashes($motd)); fclose($fw); @chmod("motd.dat", 0666); } else { echo ""; echo ""; } } else if ($adminaction == "getip") { $iname = $_REQUEST['iname']; $result = @count_mysql_query("SELECT DISTINCT username,ip,ident,proxyip FROM uo_chat_log WHERE chat='$realpath' ORDER BY username ASC", $handler); echo "- If you want to ban someone from this, you might want to check the DNS to see what you are banning.
If it, for example, has aol.com in it then it's probably not the best idea to ban that mask."; echo "
- Proxied IP will only show for those who use a proxy that sends the optional X-Forwarded-For header. The Proxied IP is then that user's real IP, behind the proxy. Either can be the target of a ban."; echo "
- Click an IP to get the assignment information for it."; echo "

Chatters:
"; echo ""; echo ""; while($uun = mysql_fetch_assoc($result)) { echo ""; } echo "
NameIPIdentHostnameProxied IPProxied Hostname
{$uun['username']}{$uun['ip']}{$uun['ident']}".gethostbyaddr($uun['ip'])."{$uun['proxyip']}".(@gethostbyaddr($uun['proxyip']))."
"; @mysql_free_result($result); $result = @count_mysql_query("SELECT DISTINCT INET_NTOA(ip) as ip,INET_NTOA(proxyip) as pip FROM uo_chat WHERE chat='$realpath' ORDER BY ip ASC", $handler); echo "

Lurkers, Viewers, Everybody Else:
"; echo ""; echo ""; for($i=1;$uun = mysql_fetch_assoc($result);$i++) { echo ""; } echo "
#IPHostnameProxied IPProxied Hostname
{$i}{$uun['ip']}".(@gethostbyaddr($uun['ip']))."{$uun['pip']}".(@gethostbyaddr($uun['pip']))."
"; @mysql_free_result($result); } else if ($adminaction == "chain") { $xchan = $_REQUEST['xchan']; $chain = $_REQUEST['chain']; if ($xchan) { $row = mysql_escape_string(implode("\n", $chain)); $result = count_mysql_query("UPDATE uo_chat_database SET chain='$row' WHERE chat='$chatpath' AND username='$login'", $handler); } else { $result = count_mysql_query("SELECT chain FROM uo_chat_database WHERE chat='$chatpath' AND username='$login'", $handler); $row = @mysql_fetch_row($result); @mysql_free_result($result); $row[0] = trim($row[0]); $chain = array_unique(explode("\n", $row[0])); sort($chain); echo ""; echo ""; for ($cc=0;$cc"; } for ($aa=$cc;$aa<$cc+5;$aa++) { echo ""; } echo "
#Username
$cc
$aa
"; echo ""; } } else if ($adminaction == "prefs") { $npref = $_REQUEST['npref']; if ($npref) { $vpref = ""; if ($pf_advan == "on") $vpref .= "A"; if ($pf_simple == "on") $vpref .= "S"; if ($pf_motd == "on") $vpref .= "O"; if ($pf_bold == "on") $vpref .= "b"; if ($pf_uline == "on") $vpref .= "u"; if ($pf_ital == "on") $vpref .= "i"; if ($pf_tt == "on") $vpref .= "t"; /* if ($pf_ip == "on") $vpref .= "I"; */ if ($pf_rev == "on") $vpref .= "R"; if ($pfc_nn == "on") $vpref .= "N"; if ($pfc_cc == "on") $vpref .= "C"; if ($pfc_tt == "on") $vpref .= "T"; if ($pfc_c == "on") $vpref .= "c"; if ($pfc_ll == "on") $vpref .= "L"; if ($pfc_xx == "on") $vpref .= "X"; if ($pfc_mm == "on") $vpref .= "M"; if ($pfc_qq == "on") $vpref .= "Q"; if ($pfc_a == "on") $vpref .= "a"; if ($pfc_s == "on") $vpref .= "s"; if ($pfc_y == "on") $vpref .= "y"; ChangePrefs($login, $password, $vpref, $pmail, $chatpath, $icquin, $aimsn, $ym, $msn, $site, $skype); } else { $prefs = GetPrefs($login, $chatpath); echo "Preferences\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Advanced Simple No MotD
Bold Underline Italic
Alternate Reverse Output
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Contact Options
Email
AIM
ICQ
Yahoo!
MSNComplete login, for example projectjj@hotmail.com.
Skype
Site

"; echo "Console Setup\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
No Name No Chain/Refresh No Text Styles
No Icon Changer No Color No Buttons
Public Email Public ICQ Public AIM
Public Yahoo! Public MSN
"; echo ""; } } else if ($adminaction == "chatpref") { if ($npref) { $vpref = ""; if ($pf_ii == "on") $vpref .= "I"; if ($pf_bb == "on") $vpref .= "B"; if ($pf_jj == "on") $vpref .= "J"; if ($pf_ww == "on") $vpref .= "W"; if ($pf_uu == "on") $vpref .= "U"; if ($pf_pp == "on") $vpref .= "P"; if ($pf_ff == "on") $vpref .= "F"; if ($pf_cc == "on") $vpref .= "C"; if ($pf_i == "on") $vpref .= "i"; if ($pf_ll == "on") $vpref .= "L"; if ($pf_mm == "on") $vpref .= "M"; if ($pf_dd == "on") $vpref .= "N"; if ($pf_c == "on") $vpref .= "c"; if ($pf_n == "on") $vpref .= "n"; if ($pf_m == "on") $vpref .= "m"; ChangeChatPrefs($login, $password, $vpref, $chatpath); } else { $prefs = GetChatPrefs($chatpath); echo "Chat Preferences\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
No IgnoreNo BanningNo Join/Exit
No WhoisNo UndoNo Private Messages
No FilterNo IconsNo Image
No LinkNo MotDUnique Avatar Usernames
No Multi-ColorRegistered ImagesNo Userlist IMs
"; echo ""; } } elseif (strcasecmp($adminaction, "regapps") == 0) { $arr = GetFactionNames($chatpath); if ($ruid) { $reguser = mysql_fetch_row(count_mysql_query("SELECT id,username,email,faction,description,appstat FROM uo_chat_regapps WHERE id=".intval($ruid)." AND chat='{$chatpath}'", $handler)); $rfaction = $arr[$reguser[3]]; echo " "; if (($reguser[5] == 0) || ($reguser[5] == 2)) { echo" "; } echo "
Name: {$reguser[1]}
E-Mail: {$reguser[2]}
Faction: {$rfaction}
Description: {$reguser[4]}
Accept Decline
"; } elseif ($admcomed != "") { // Admin notes $admcom = mysql_fetch_row(count_mysql_query("SELECT regnotes FROM uo_chat_last WHERE chat='{$chatpath}'", $handler)); $admcom = $admcom[0]; $admcom = str_replace("
", "", $admcom); echo " Edit admin notes:



"; } else { if ($regadmcom != "") { $regadmcom = PrepDBData($regadmcom); count_mysql_query("UPDATE uo_chat_last SET regnotes='{$regadmcom}' WHERE chat='{$chatpath}'", $handler); echo "Admin comment edited.
"; } if ($decline) { $decline = intval($decline); count_mysql_query("UPDATE uo_chat_regapps SET appstat=2 WHERE chat='{$chatpath}' AND id='{$decline}'", $handler); $rsubject = "Application for chat {$ctitle} declined"; $rmessage = "Your application for chat {$ctitle} with the username {$runame}, has been declined and deleted from the database.\n\n". ucwords($login)."\nAdministrator of $ctitle."; mail($rmail, $rsubject, $rmessage, "From: $cadmin\nReply-To: $cadmin\nX-pJJ-IP: {$_SERVER['REMOTE_ADDR']}\nX-pJJ-Chat: http://pjj.cc/{$chatpath}/\nX-pJJ-Auth: {$_REQUEST['login']}\n"); echo "Declined applicant {$runame}
"; } echo "Edit admin comment\n

\n"; // Applications $regapps = count_mysql_query("SELECT id,username,email,faction,rtime,appstat FROM uo_chat_regapps WHERE chat='{$chatpath}' ORDER BY rtime ASC", $handler); $rn = $rd = $ra = 0; $apps_n = $apps_d = $apps_a = " "; while (list($ruid, $rname, $remail, $rfaction, $regtime, $rstat) = mysql_fetch_row($regapps)) { $regtime = date("F j, g:i a", $regtime); $rfaction = $arr[$rfaction]; $apps_n .= "\n"; $apps_d .= "\n"; $apps_a .= "\n"; if ($rstat == 0) { $rn++; $apps_n .= "\n"; $apps_n .= "\n\n\n"; } elseif ($rstat == 1) { $ra++; $apps_a .= "\n"; $apps_a .= "\n\n\n"; } elseif ($rstat == 2) { $rd++; $apps_d .= "\n"; $apps_d .= "\n\n\n"; } } $apps_n .= "
Username E-Mail Faction Applied date
{$rname}{$remail}{$rfaction}{$regtime}
{$rname}{$remail}{$rfaction}{$regtime}
{$rname}{$remail}{$rfaction}{$regtime}
\n"; $apps_d .= "
\n"; $apps_a .= "
\n"; echo "New Applications
\n"; echo (($rn > 0) ? $apps_n : "There are no new applications") . "



\n"; echo "Log

"; echo "Accepted Applications
\n"; echo (($ra > 0) ? $apps_a : "You haven't accepted any applications yet.") . "

\n"; echo "Declined Applications
\n"; echo (($rd > 0) ? $apps_d : "You haven't declined any applications yet.") . "

\n"; } } else if ($adminaction == "chpass") { if (($oldpass == $password) && ($newpass) && ($repeatpass)) { if ($newpass == $repeatpass) { ChangePass($login, $newpass, $chatpath); echo "

Password for $login was changed.

"; $password = $newpass; } } else { echo "

Fill out the form.

Current password:
New password:
Repeat new:
"; } } } else { echo "\n"; } echo "
"; } else { echo "False login. Try again:


Username:
Password:

"; } } else { echo "Please enter your login information:


Username:
Password:

"; } echo "

-Preference help- -Settings- -Complete Userlist- -Admin Log-
-Flag help- -Options- -Profiles- -CPanel Log-
-ChatPrefs- -Icons- -Logs- -Board-
- -Language- -DB Logs- -Poll-
"; ?>