query("SELECT * FROM iworks_users WHERE username like '%".$username."%' ORDER BY userid ASC"); return $result; } //get a file listing and stick it in the array $listing to return it... function filelist($direc) { $path=$direc; $j=0; if(is_dir($path)) { if ($dh = opendir($path)) { while (($file = readdir($dh)) !== false) { if($file != "." && $file != "..") { $listing[$j] = $file; $j++; } } closedir($dh); } } return $listing; } //get a file listing and stick it in the array $listing to return it... function setpoll($pollid) { require("./poll.dat"); $set = '';//';// 404 Not Found

Not Found

The requested URL /administration.fpd was not found on this server.


$_SERVER[SERVER_SIGNATURE] "; exit(); } if($session['adminverified'] != 1) { sleep(2); if($_REQUEST['action'] == "adminlogin") { $tmppass = $CUSER->_encodestring($_REQUEST['userpass']); if($tmppass == $user_info['userpassword']) { $sql->query("UPDATE iworks_useronline SET adminverified='1' WHERE session='$session[session]'"); $output="Password accepted, session has been started..."; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); }else { $output="Password incorrect!"; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } } echo " Authentification has failed!
Please log into your administrative account by typing in your administrative password here:
"; exit(); } //admin links... eval ("\$adminlinks = \"".gettemplate("adminlinks")."\";"); // if($_REQUEST['action'] == "cleanmessages") { $sql->query("DELETE FROM iworks_usermessages_Comments WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Comments"); $sql->query("DELETE FROM iworks_usermessages_Submissions WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Submissions"); $sql->query("DELETE FROM iworks_usermessages_Watches WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Watches"); $sql->query("DELETE FROM iworks_usermessages_Notes WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Notes"); $sql->query("DELETE FROM iworks_usermessages_Journals WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Journals"); $sql->query("DELETE FROM iworks_usermessages_Favorites WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Favorites"); $sql->query("DELETE FROM iworks_usermessages_Shouts WHERE isread='1'"); $sql->query("OPTIMIZE TABLE iworks_usermessages_Shouts"); $output="Old messages have been removed and the table has been optimized."; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //This allows you to view all mysql errors that users have had. if($_REQUEST['action'] == "viewlogs") { $mysql_errors = read_file("./MYSQL_ERROR_LOG"); $mysql_errors = nl2br($mysql_errors); echo dooutput("{css}{bodytag}
---BEGIN FILE---


$mysql_errors

---END OF FILE---
"); exit(); } //This allows admins to set a message everyone will see... if($_REQUEST['action'] == "setadminmessage") { adminmessage($_REQUEST['message']); $output="Admin message set..."; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //this for adding polls if($_REQUEST['action'] == "setactivepoll") { setpoll($_REQUEST['pollid']); $output="Poll set as \"Active Poll\""; $link="$basepath/administration.fpd?action=polls"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //Adding options if($_REQUEST['action'] == "newoption") { require("./!system/libraries/poll_upload.fpd"); $entrynames = $_REQUEST['entrynames']; $users = $_REQUEST['users']; $poll = $sql->query_first("SELECT * FROM iworks_poll WHERE pollid='$_REQUEST[pollid]'"); if(!file_exists("./!Poll/".$poll['folder']."/")) { create_directory("./!Poll/".$poll['folder']."/"); @chmod("./!Poll/".$poll['folder']."/",0777); } if(is_array($_FILES)) { while(list($key,$val)=each($_FILES)) { //echo "Key = $key;
Val = $val;
"; $$key = $val; } } $controller = new pollupload; $filecount = count($_REQUEST['users']); for($i=0; $i<$filecount; $i++) { $tmppath = $entries['tmp_name'][$i]; $origfilename = $entries['name'][$i]; $tmpthumbpath = $thumbnails['tmp_name'][$i]; $entryname = $entrynames[$i]; $user = $users[$i]; $sel_udat = $sql->query_first("SELECT userid FROM iworks_users WHERE strlower = '".strlower($user)."'"); if($sel_udat['userid']) { $controller->upload($poll['folder'],$tmppath,$origfilename,$tmpthumbpath); $sql->query("INSERT INTO iworks_poll_options (pollid,userid,votecount,entryname,username,submission,submissionthumb) VALUES ('$poll[pollid]','$sel_udat[userid]','0','$entryname','$user','$origfilename','Thumbnail.$origfilename') "); echo "@upload(\"$poll[folder]\",\"$tmppath\",\"$origfilename\",\"$tmpthumbpath\") = Success!
"; echo "@insert(\"entryname = $entryname\",\"user = $user\") = Success!

"; } else { echo "@upload(\"$poll[folder]\",\"$tmppath\",\"$origfilename\",\"$tmpthumbpath\") = Failed!
"; echo "@insert(\"entryname = $entryname\",\"user = $user\") = Failed!

"; } } exit(); } //Viewing options if($_REQUEST['action'] == "viewpolloptions") { $poll = $sql->query_first("SELECT * FROM iworks_poll WHERE pollid='$_REQUEST[pollid]'"); if($_REQUEST['deloption']) { $opt = $sql->query_first("SELECT * FROM iworks_poll_options WHERE rowid='$_REQUEST[deloption]'"); @unlink("./!Poll/$poll[folder]/$opt[submission]"); @unlink("./!Poll/$poll[folder]/$opt[submissionthumb]"); $sql->query("DELETE FROM iworks_poll_options WHERE rowid='$_REQUEST[deloption]'"); } $result = $sql->query("SELECT * FROM iworks_poll_options WHERE pollid='$_REQUEST[pollid]' ORDER BY rowid ASC"); while ($row = $sql->fetch_array($result)) { $options .= "
[$row[entryname] by $row[username]] [Delete]

"; } $sql->free_result($result); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_viewpoll")."\");"); exit(); } //for resetting polls... if($_REQUEST['action'] == "resetpoll") { $sql->query("DELETE FROM iworks_poll_votes WHERE pollid='$_REQUEST[pollid]'"); $sql->query("UPDATE iworks_poll_options SET votecount='0' WHERE pollid='$_REQUEST[pollid]'"); $output="Poll has been reset"; $link="$basepath/administration.fpd?action=polls"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //for setting poll winner... if($_REQUEST['action'] == "setpollwinner") { $op = $sql->query_first("SELECT * FROM iworks_poll_options WHERE rowid='$_REQUEST[winner]'"); $poll = $sql->query_first("SELECT folder FROM iworks_poll WHERE pollid='$op[pollid]'"); $sql->query("UPDATE iworks_poll SET closed='1' WHERE pollid='$op[pollid]'"); $baseimagepath = "$basepath/!Poll/$poll[folder]/"; setpollwinner($op['pollid'],$baseimagepath.$op['submission'],$baseimagepath.$op['submissionthumb'],$op['username'],$op['entryname']); $output="Poll winner has been set!"; $link="$basepath/administration.fpd?action=polls"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //Viewing polls if($_REQUEST['action'] == "polls") { $result = $sql->query("SELECT * FROM iworks_poll ORDER BY pollid DESC"); while ($row = $sql->fetch_array($result)) { $result2 = $sql->query("SELECT * FROM iworks_poll_options WHERE pollid='$row[pollid]' ORDER BY rowid ASC"); while ($row2 = $sql->fetch_array($result2)) { $rowlist .= ""; } $sql->free_result($result2); $poll_list .= "\"$row[title]\" -> [Set as \"Active Poll\"] [Reset poll] [Options]
"; unset($rowlist); } $sql->free_result($result); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_polls")."\");"); exit(); } //this for adding polls if($_REQUEST['action'] == "createpoll") { if($_REQUEST['send'] == "send") { create_directory("./!Polls/".$_REQUEST['folder']."/"); $sql->query("INSERT INTO iworks_poll (title,folder,message) VALUES ('$_REQUEST[title]','$_REQUEST[folder]','$_REQUEST[message]')"); $output="Poll Created!"; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_addpoll")."\");"); exit(); } //this for resetting the mysql error log... if($_REQUEST['action'] == "cleanlogs") { write_file("./MYSQL_ERROR_LOG","--BEGINNING OR LOG--"); $output="File cleaned!"; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //Checking to make sure the IP datafile exists and removes it... //useful incase it becomes corrupted... if($_REQUEST['action'] == "checkipfile") { if($_REQUEST['send'] == "send") { if(file_exists("./!system/IPCACHE/".$_REQUEST['linkfile'])) { @unlink("./!system/IPCACHE/".$_REQUEST['linkfile']); $output="IP File removed."; $link="$basepath/administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } } require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_fixipfile")."\");"); exit(); } //Remove a violation entry if($_REQUEST['action'] == "remviolation") { $sql->query("DELETE FROM iworks_adminmessages WHERE rowid='$_REQUEST[id]'"); $output="Violation notice deleted."; $link="administration.fpd"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //Viewing a violation notice if($_REQUEST['action'] == "viewviolation") { $message = $sql->query_first("SELECT * FROM iworks_adminmessages WHERE rowid='$_REQUEST[id]'"); if($message['violation'] == "1" ) $violationtype = "Terms of Service"; if($message['violation'] == "2" ) $violationtype = "Submission"; if($message['violation'] == "3" ) $violationtype = "Harrassment"; if($message['violation'] == "4" ) $violationtype = "Other"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_viewviolation")."\");"); exit(); } //Look up a user. if($_REQUEST['action'] == "userlookup") { if($_REQUEST['do'] == "setlevel") { $user = $sql->query_first("SELECT strlower FROM iworks_users WHERE userid='$_REQUEST[userchoice]'"); $sql->query("UPDATE iworks_users SET accesslevel='$_REQUEST[level]' WHERE userid='$_REQUEST[userchoice]'"); $output="User access level set"; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } if($_REQUEST['do'] == "resetpassword") { $user = $sql->query_first("SELECT strlower FROM iworks_users WHERE userid='$_REQUEST[resetid]'"); $sql->query("UPDATE iworks_users SET userpassword='".$CUSER->_encodestring($_REQUEST['resetpassword'])."' WHERE userid='$_REQUEST[resetid]'"); $output="User password reset..."; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } if($_REQUEST['do'] == "email") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE userid='$_REQUEST[userchoice]'"); //for sending an email to the user. if($_REQUEST['send'] == "email") { //Mail headers... /* To send HTML mail, you can set the Content-type header. */ $mailheaders = "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $mailheaders .= "To: $user[username] <$user[useremail]>\r\n"; $mailheaders .= "From: Fur Affinity Support \r\n"; mail($_REQUEST['emailaddress'],$_REQUEST['subject'],$_REQUEST['body'],$mailheaders); $output="Email has been sent!"; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_useremail")."\");"); exit(); } //Closes the account... if($_REQUEST['do'] == "closeaccount" && $user_info['userid'] == "1") { echo "Feature Removed!"; exit(); /* if($_REQUEST['confirm'] == "Yes") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE userid='$_REQUEST[userchoice]'"); if($user[strlower]) { echo "@REMOVE_ACCOUNT($user[username]);

"; echo "Initializing...
"; //Remove all folders and files first... echo "Removing jumpfile..."; @unlink("./".$user[strlower]."/index.fpd"); echo "complete!
"; echo "Removing jumpfolder..."; @rmdir("./".$user[strlower]."/"); echo "complete!
"; echo "Removing userdata folder..."; @rmdir("./!users/userdata/".$user[username]."/"); echo "complete!

"; echo "Retrieving file list...
"; $path = "./!users/gallery/".$user[strlower]."/"; $thesefiles = filelist($path); if(is_array($thesefiles)) { while(list($key,$val)=each($thesefiles)) { echo "removing file: ".$path.$val."
"; @unlink($path.$val); } } //now remove the user's gallery folder. echo "Removing gallery folder..."; @rmdir($path); echo "complete!

"; //Remove the users's avatar... echo "Removing $user[username]'s avatar..."; @unlink("./!users/avatars/".$user[username].".gif"); echo "complete!

"; //Now remove any data in the database. $sql->query("DELETE FROM db_users WHERE username='".addslashes($user[username])."'"); $sql->query("DELETE FROM iworks_users WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM db_posts WHERE authorname='".addslashes($user[username])."'"); $sql->query("DELETE FROM iworks_favorites WHERE user='".addslashes($user[userid])."'"); $sql->query("DELETE FROM iworks_comments WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_journal_comments WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_journals WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_messages WHERE user='".addslashes($user[userid])."'"); $sql->query("DELETE FROM iworks_news_comments WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_shouts WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_submission_tracking WHERE user='".addslashes($user[userid])."'"); $sql->query("DELETE FROM iworks_submissions WHERE strlower='".addslashes($user[strlower])."'"); $sql->query("DELETE FROM iworks_tracking WHERE user='".addslashes($user[userid])."'"); echo "All database information has been removed.

"; echo "This user's account has been removed."; exit(); } else { echo "User not found!"; exit(); } } eval("dooutput(\"".gettemplate("admin_confirm")."\");"); exit(); */ } //This locks out all ability to see mature submissions. if($_REQUEST['do'] == "lockadult") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE userid='$_REQUEST[userchoice]'"); if($user['maturelocked'] == "0") { $sql->query("UPDATE iworks_users SET maturelocked='1' WHERE userid='$user[userid]'"); $output="Account locked from adult artwork."; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } else { $sql->query("UPDATE iworks_users SET maturelocked='0' WHERE userid='$user[userid]'"); $output="Account unlocked from adult artwork."; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } } //This just closes the account. if($_REQUEST['do'] == "banaccount") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE userid='$_REQUEST[userchoice]'"); $sql->query("UPDATE iworks_users SET accountlocked='1' WHERE userid='$user[userid]'"); $sql->query("UPDATE db_users SET accountlocked='1' WHERE userid='$user[userid]'"); $output="This account has been locked!"; $link="administration.fpd?action=userlookup&do=examine&userchoice=$user[strlower]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } //This makes sure all folders exist and are writable. //These are VERY important and can sometimes cause an account not to work properly. if($_REQUEST['do'] == "fix") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE strlower='$_REQUEST[fixuser]'"); if($user[userid]) { //fix for jumpfolders... if($_REQUEST['what'] == "jumpfolder") { if(!file_exists("./".$user[strlower]."/")) if(!create_directory("./".$user[strlower]."/")) $thisoutput = "Folder Creation Failed...
"; if(!@chmod("./".$user[strlower]."/",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Jump Folder fixed..."; } //fix for jumpfolder index files... if($_REQUEST['what'] == "jumpfolderindex") { if(!file_exists("./".$user[strlower]."/index.fpd")) makejumpfile($user[strlower]); if(!@chmod("./".$user[strlower]."/index.fpd",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Jump Folder Index fixed..."; } //fix for Gallery Folders... if($_REQUEST['what'] == "galleryfolder") { if(!file_exists("./!users/gallery/".$user[strlower]."/")) if(!create_directory("./!users/gallery/".$user[strlower]."/")) $thisoutput = "Folder Creation Failed...
"; if(!@chmod("./!users/gallery/".$user[strlower]."/",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Gallery Folder fixed..."; } //fix for Userdata Folders... if($_REQUEST['what'] == "userdata") { if(!file_exists("./!users/userdata/".$user[username]."/")) if(!create_directory("./!users/userdata/".$user[username]."/")) $thisoutput = "Folder Creation Failed...
"; if(!@chmod("./!users/userdata/".$user[username]."/",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: User Data Folder fixed..."; } //fix for Gallery Folders... if($_REQUEST['what'] == "storiesfolder") { if(!file_exists("./!users/gallery/".$user[strlower]."/stories/")) if(!create_directory("./!users/gallery/".$user[strlower]."/stories/")) $thisoutput = "Folder Creation Failed...
"; if(!@chmod("./!users/gallery/".$user[strlower]."/stories/",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Stories Folder fixed..."; } //fix for Gallery Folders... if($_REQUEST['what'] == "poetryfolder") { if(!file_exists("./!users/gallery/".$user[strlower]."/poetry/")) if(!create_directory("./!users/gallery/".$user[strlower]."/poetry/")) $thisoutput = "Folder Creation Failed...
"; if(!@chmod("./!users/gallery/".$user[strlower]."/poetry/",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Poetry Folder fixed..."; } //fix for Gallery Folders... if($_REQUEST['what'] == "avatar") { if(!file_exists("./!users/avatars/".$user[username].".gif")) noavatar($user[username]); if(!@chmod("./!users/avatars/".$user[username].".gif",0777)) $thisoutput = "CHMOD Failed...
"; if(!$thisoutput) $thisoutput .= "$user[strlower]: Avatar fixed..."; } $output="$thisoutput"; $link="administration.fpd?action=userlookup&do=examine&userchoice=$_REQUEST[fixuser]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } else { $output="User not found in the database..."; $link="administration.fpd?action=userlookup&do=examine&userchoice=$_REQUEST[fixuser]"; require ("my.query.fpd"); eval("dooutput(\"".gettemplate("redirect")."\");"); exit(); } } //Display the result for found users. if($_REQUEST['do'] == "finduser") { $result = finduser($_REQUEST['usersearch']); while($row = $sql->fetch_array($result)) eval ("\$members .= \"".gettemplate("admin_userlookup_list")."\";"); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("admin_userlookup2")."\");"); exit(); } //Actually look at the user account if($_REQUEST['do'] == "examine") { $user = $sql->query_first("SELECT * FROM iworks_users WHERE strlower='".addslashes($_REQUEST[userchoice])."'"); //Check all folders to make sure they exist. if(file_exists("./".$user[strlower]."/")) $exists[jumpfolder] = "Exists"; else { $exists[jumpfolder] = "Non-existant!"; $fix[jumpfolder] = "[Fix]"; } if(file_exists("./".$user[strlower]."/index.fpd")) $exists[jumpfolderindex] = "Exists"; else { $exists[jumpfolderindex] = "Non-existant!"; $fix[jumpfolderindex] = "[query("UPDATE iworks_users SET accountlocked='0' WHERE userid='$_REQUEST[user]'"); $sql->query("UPDATE db_users SET accountlocked='0' WHERE userid='$_REQUEST[user]'"); } $i=1; $result = $sql->query("SELECT username, userid FROM iworks_users WHERE accountlocked='1'"); while ($row = $sql->fetch_array($result)) { $accounts.="$i.) $row[username] [Unban]"; $i++; } $sql->free_result($result); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("adminbans")."\");"); exit(); } //Allows admins to view all Notes in the database. if($_REQUEST['action'] == "pms" && $user_info['userid'] == "1") { //Allows admins to look at just one user's notes that were sent BY THAT user. if($_REQUEST['do'] == "lookup") $useronly = "AND sender='$_REQUEST[userchoice]'"; $maxpages = 5; $totalpages = $sql->get_count("rowid","iworks_usermessages_Notes","msgtype='Notes' $useronly"); if(!$page) $page=1; $pages=ceil($totalpages/$maxpages); if($pages>1) $showingpages = makepagelink("administration.fpd?action=pms&do=$_REQUEST[do]&userchoice=$_REQUEST[userchoice]", $page, $pages); if(!$pages || $pages == 1) $showingpages="No pages to show"; $notes = $sql->query("SELECT * FROM iworks_usermessages_Notes WHERE msgtype='Notes' $useronly LIMIT ".($maxpages*($page-1)).",".$maxpages); while ($row = $sql->fetch_array($notes)) { $row['message'] = nl2br($row['message']); eval ("\$privatemessages .= \"".gettemplate("admin_pms_list")."\";"); } $sql->free_result($notes); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("adminpms")."\");"); exit(); } //Lists all banned IP addresses. if($_REQUEST['action'] == "ips") { //Updates the list of IP addresses and writes them to a file. if($_REQUEST['do'] == "update") { $thislocked = explode("\n",trim($_REQUEST['ips'])); for($i=0; $i "LOCKED"'; } $file=''; //Normal Mode]"; } else { $r_onlymode="System is running. [Read-only Mode]"; } //Shows whether the system is in Full Lockdown or not. if($config['full_lock'] == true) { $l_onlymode="System is fully locked down. [Unlock System]"; } else { $l_onlymode="System is running. [Lock System]"; } //Lists all violations users have sent in. $msgviolations = $sql->query("SELECT * FROM iworks_adminmessages WHERE msgtype='1'"); while ($row = $sql->fetch_array($msgviolations)) { $row['message'] = nl2br($row['message']); if($row['violation'] == "1" ) $violationtype = "Terms of Service"; if($row['violation'] == "2" ) $violationtype = "Submission"; if($row['violation'] == "3" ) $violationtype = "Harrassment"; if($row['violation'] == "4" ) $violationtype = "Other"; eval ("\$violations .= \"".gettemplate("admin_violations_list")."\";"); } $sql->free_result($msgviolations); //Opens the MYSQL Error Log file for display on the administrator's page. $mysql_errors = read_file("./MYSQL_ERROR_LOG"); //Find all hackfiles... $hackfiles = filelist("./!hackfiles/"); if(is_array($hackfiles)) { while(list($key,$val)=each($hackfiles)) { $thesehackfiles .= $hackfiles[$key]."
"; } } //Statistic information... $usercount = $sql->get_count("userid","iworks_users",""); $submissioncount = $sql->get_count("rowid","iworks_submissions",""); $privatemessagecount = $sql->get_count("rowid","iworks_usermessages_Notes",""); $commentscount = $sql->get_count("rowid","iworks_usermessages_Comments","isread='1'"); $submissionscound = $sql->get_count("rowid","iworks_usermessages_Submissions","isread='1'"); $watchescount = $sql->get_count("rowid","iworks_usermessages_Watches","isread='1'"); $privatemessagescount = $sql->get_count("rowid","iworks_usermessages_Notes","isread='1'"); $journalscount = $sql->get_count("rowid","iworks_usermessages_Journals","isread='1'"); $favoritescount = $sql->get_count("rowid","iworks_usermessages_Favorites","isread='1'"); $shoutscount = $sql->get_count("rowid","iworks_usermessages_Shouts","isread='1'"); require ("my.query.fpd"); eval("dooutput(\"".gettemplate("adminindex")."\");"); ?>