This commit has been accessed 581 times via Git panel.
commit e2ab6c5f30b176cdebc4004824749d46eae7bb8a
tree 5935b42ac40f029b5d6bcd0b7be0cceccde51b07
parent f5cd6cfe5f21bfa500d85718b65fa27ba6ffc72b
author Engels Antonio <engels@majcms.org> 1277314194 +0800
committer Engels Antonio <engels@majcms.org> 1277314194 +0800
maj-0.14-20080124-bb.zip
diff --git a/add.php b/add.php
index 962e0cd..6ee193b 100644
--- a/add.php
+++ b/add.php
@@ -17,10 +17,10 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
-if (isset($_REQUEST['title_input']) and isset($_REQUEST['body_input']) and !empty($_REQUEST['title_input']) and !empty($_REQUEST['body_input'])) {
+if (isset($_POST['title_input']) and isset($_POST['body_input']) and !empty($_POST['title_input']) and !empty($_POST['body_input'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
@@ -404,12 +404,12 @@ if ($_SESSION['logged_in'] == file_get_contents("data/username.txt")) {
<?php
-if (!isset($_REQUEST['title_input']) or !isset($_REQUEST['body_input']) or empty($_REQUEST['title_input']) or empty($_REQUEST['body_input'])) {
+if (!isset($_POST['title_input']) or !isset($_POST['body_input']) or empty($_POST['title_input']) or empty($_POST['body_input'])) {
// echo "<p>no input!</p>";
exit();
}
-if (!isset($_REQUEST['select_year']) or !isset($_REQUEST['select_month']) or !isset($_REQUEST['select_day']) or !isset($_REQUEST['select_hour']) or !isset($_REQUEST['select_min']) or empty($_REQUEST['select_year']) or empty($_REQUEST['select_month']) or empty($_REQUEST['select_day']) or empty($_REQUEST['select_hour']) or empty($_REQUEST['select_min'])) {
+if (!isset($_POST['select_year']) or !isset($_POST['select_month']) or !isset($_POST['select_day']) or !isset($_POST['select_hour']) or !isset($_POST['select_min']) or empty($_POST['select_year']) or empty($_POST['select_month']) or empty($_POST['select_day']) or empty($_POST['select_hour']) or empty($_POST['select_min'])) {
$entry = date("YmdHis", time() + $offset);
@@ -424,13 +424,13 @@ echo '<p>' . $entry . '<br>' . $timestamp . '<br>' . date("l, M j, Y, g:i A") .
}
else {
-$entry = $_REQUEST['select_year'] . $_REQUEST['select_month'] . $_REQUEST['select_day'] . $_REQUEST['select_hour'] . $_REQUEST['select_min'] . $entry_sec;
+$entry = $_POST['select_year'] . $_POST['select_month'] . $_POST['select_day'] . $_POST['select_hour'] . $_POST['select_min'] . $entry_sec;
// GNU date format
-//$timestamp = date("D M j H:i:s \P\H\T Y", mktime($_REQUEST['select_hour'], $_REQUEST['select_min'], $entry_sec, $_REQUEST['select_month'], $_REQUEST['select_day'], $_REQUEST['select_year']));
+//$timestamp = date("D M j H:i:s \P\H\T Y", mktime($_POST['select_hour'], $_POST['select_min'], $entry_sec, $_POST['select_month'], $_POST['select_day'], $_POST['select_year']));
// Simple PHP Blog format
-$timestamp = date("l, M j, Y, g:i A", mktime($_REQUEST['select_hour'], $_REQUEST['select_min'], $entry_sec, $_REQUEST['select_month'], $_REQUEST['select_day'], $_REQUEST['select_year']));
+$timestamp = date("l, M j, Y, g:i A", mktime($_POST['select_hour'], $_POST['select_min'], $entry_sec, $_POST['select_month'], $_POST['select_day'], $_POST['select_year']));
echo '<p>' . $entry . '<br>' . $timestamp . '<br>' . date("l, M j, Y, g:i A") . '</p>';
@@ -496,7 +496,7 @@ function reformat_code($defang_code) {
return $defang_code;
}
-$body_write_content = ucfirst($_REQUEST['body_input']);
+$body_write_content = ucfirst($_POST['body_input']);
$body_write_content = str_replace("[html]", '<html>', $body_write_content);
$body_write_content = str_replace("[/html]", '</html>', $body_write_content);
$body_write_content = reformat_html($body_write_content);
@@ -534,7 +534,7 @@ $body_write_content = preg_replace("/<([_\.0-9a-z-]+)@([0-9a-z][0-9a-z-]+)\.([_
mkdir($item_dir);
-$title_write_content = ucfirst($_REQUEST['title_input']);
+$title_write_content = ucfirst($_POST['title_input']);
$title_write_content = str_replace('<','<',$title_write_content);
$title_write_content = str_replace('>','>',$title_write_content);
$title_file = $item_dir . '/title.txt';
@@ -659,7 +659,7 @@ fwrite($fp_body_txt,$body_write_content);
fclose($fp_body_txt);
$sticky_sem = 'data/sticky/' . $entry;
-if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['sticky'] == "on")) {
+if (isset($_POST['sticky']) and !empty($_POST['sticky']) and ($_POST['sticky'] == "on")) {
if (!file_exists("data/sticky")) {
mkdir("data/sticky");
}
@@ -669,20 +669,20 @@ if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['s
}
$display_sem = "data/items/$entry/cat.txt";
-if (isset($_REQUEST['display']) and !empty($_REQUEST['display']) and ($_REQUEST['display'] == "on")) {
+if (isset($_POST['display']) and !empty($_POST['display']) and ($_POST['display'] == "on")) {
if (!file_exists($display_sem)) {
touch($display_sem);
}
}
$private_sem = "data/items/$entry/private.txt";
-if (isset($_REQUEST['private']) and !empty($_REQUEST['private']) and ($_REQUEST['private'] == "on")) {
+if (isset($_POST['private']) and !empty($_POST['private']) and ($_POST['private'] == "on")) {
if (!file_exists($private_sem)) {
touch($private_sem);
}
}
-if (file_exists("data/bb.txt") and file_exists("data/member.txt") and (($_SESSION['logged_in'] != file_get_contents("data/username.txt")) or (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on")))) {
+if (file_exists("data/bb.txt") and file_exists("data/member.txt") and (($_SESSION['logged_in'] != file_get_contents("data/username.txt")) or (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on")))) {
touch("data/items/$entry/member.txt");
}
@@ -707,13 +707,13 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
}
- $ml_subject = ucfirst($_REQUEST['title_input']);
+ $ml_subject = ucfirst($_POST['title_input']);
if (file_exists("data/ml-prepend.txt")) {
$ml_subject = file_get_contents("data/ml-prepend.txt") . " " . $ml_subject;
}
$ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
- $ml_body = ucfirst($_REQUEST['body_input']);
+ $ml_body = ucfirst($_POST['body_input']);
//$ml_body = htmlentities($ml_body,ENT_NOQUOTES);
$ml_body = str_replace('<br />', "\n", $ml_body);
$ml_body = str_replace('<img src=images/smileys/crying.png border=0>', ':((', $ml_body);
@@ -786,7 +786,7 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
}
-if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] == "on")) {
+if (isset($_POST['pdf']) and !empty($_POST['pdf']) and ($_POST['pdf'] == "on")) {
if (!file_exists("data/items/$entry/pdf")) {
mkdir("data/items/$entry/pdf");
}
@@ -927,13 +927,13 @@ if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] =
$pdf->Output($filename);
}
-if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
+if (isset($_POST['category']) and !empty($_POST['category'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- if (file_exists("data/categories/{$_REQUEST['category']}")) {
+ if (file_exists("data/categories/{$_POST['category']}")) {
$fp_category_txt = fopen("data/items/$entry/category.txt","w");
- fwrite($fp_category_txt, $_REQUEST['category']);
+ fwrite($fp_category_txt, $_POST['category']);
fclose($fp_category_txt);
}
}
@@ -946,13 +946,13 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt") and
}
}
-if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
- if (($_REQUEST['passwd'] == "password") or empty($_REQUEST['passwd'])) {
+if (isset($_POST['passwd']) and !empty($_POST['passwd'])) {
+ if (($_POST['passwd'] == "password") or empty($_POST['passwd'])) {
unlink("data/items/$entry/passwd.txt");
}
else {
$fp_passwd_txt = fopen("data/items/$entry/passwd.txt","w");
- $passwd_crypt = sha1($_REQUEST['passwd']);
+ $passwd_crypt = sha1($_POST['passwd']);
$passwd_crypt = md5($passwd_crypt);
$passwd_crypt = crypt($passwd_crypt, $passwd_crypt);
fwrite($fp_passwd_txt, $passwd_crypt);
diff --git a/album.php b/album.php
index be28c90..3f389cd 100644
--- a/album.php
+++ b/album.php
@@ -39,7 +39,7 @@ $login_username = file_get_contents("data/username.txt");
// exit();
//}
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "delete")) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "delete")) {
unlink("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}");
@@ -52,9 +52,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-if (isset($_REQUEST['filename']) and !empty($_REQUEST['filename']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "rename") and !file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['filename']}")) {
+if (isset($_POST['filename']) and !empty($_POST['filename']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "rename") and !file_exists("images/{$_REQUEST['entry']}/album/{$_POST['filename']}")) {
- $filename = strtolower($_REQUEST['filename']);
+ $filename = strtolower($_POST['filename']);
$filename = str_replace(" ","_",$filename);
$filename = trim($filename);
@@ -69,15 +69,15 @@ if (isset($_REQUEST['filename']) and !empty($_REQUEST['filename']) and isset($_S
}
}
-if ((!isset($_REQUEST['caption']) or empty($_REQUEST['caption'])) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "caption")) {
+if ((!isset($_POST['caption']) or empty($_POST['caption'])) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "caption")) {
if (file_exists("data/items/{$_REQUEST['entry']}/album/captions/{$_REQUEST['show']}.txt")) {
unlink("data/items/{$_REQUEST['entry']}/album/captions/{$_REQUEST['show']}.txt");
}
}
-if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "caption")) {
- $caption_put = ucfirst($_REQUEST['caption']);
+if (isset($_POST['caption']) and !empty($_POST['caption']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "caption")) {
+ $caption_put = ucfirst($_POST['caption']);
$caption_put = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $caption_put);
$caption_put = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $caption_put);
$caption_put = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $caption_put);
@@ -229,7 +229,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "<input type=hidden name=entry value={$_REQUEST['entry']}>";
echo "<input type=hidden name=show value={$_REQUEST['show']}>";
echo "<input type=hidden name=edit value=rename>";
- echo "<tr bgcolor=#ffffff><td colspan=4><input type=text class=input name=filename value={$_REQUEST['show']}></td></tr>";
+ echo "<tr bgcolor=#ffffff><td colspan=4><input type=text autocomplete=off class=input name=filename value={$_REQUEST['show']}></td></tr>";
echo "<tr bgcolor=#ffffff><td colspan=4><input type=submit class=input value=\"click here to rename image\"></td></tr>";
echo "</form>";
echo "<form enctype=\"multipart\/form-data\" action=\"{$_SERVER['PHP_SELF']}\" method=\"post\">";
diff --git a/cat.php b/cat.php
index ee2bc8a..ffd52b2 100644
--- a/cat.php
+++ b/cat.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -52,67 +52,67 @@ function rmdirr($recurse_dirname)
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['new_id']) and !empty($_REQUEST['new_id'])) {
+if (isset($_POST['new_id']) and !empty($_POST['new_id'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_REQUEST['new_id']))));
+ $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_POST['new_id']))));
if (!file_exists("data/categories/$new_id")) {
mkdir("data/categories/$new_id");
}
- if (isset($_REQUEST['new_title']) and !empty($_REQUEST['new_title'])) {
- $new_title = ucfirst(strip_tags(trim($_REQUEST['new_title'])));
+ if (isset($_POST['new_title']) and !empty($_POST['new_title'])) {
+ $new_title = ucfirst(strip_tags(trim($_POST['new_title'])));
$open_title_file = fopen("data/categories/$new_id/title.txt","w");
fwrite($open_title_file,$new_title);
fclose($open_title_file);
}
}
-if (isset($_REQUEST['cat_del']) and !empty($_REQUEST['cat_del']) and ($_REQUEST['cat_del'] == "on")) {
- rmdirr("data/categories/{$_REQUEST['cat_id']}");
+if (isset($_POST['cat_del']) and !empty($_POST['cat_del']) and ($_POST['cat_del'] == "on")) {
+ rmdirr("data/categories/{$_POST['cat_id']}");
}
-if ((!isset($_REQUEST['cat_hide']) or !empty($_REQUEST['cat_hide'])) and ($_REQUEST['cat_edit'] == "on")) {
- if (file_exists("data/categories/{$_REQUEST['cat_id']}/private.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/private.txt");
+if ((!isset($_POST['cat_hide']) or !empty($_POST['cat_hide'])) and ($_POST['cat_edit'] == "on")) {
+ if (file_exists("data/categories/{$_POST['cat_id']}/private.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/private.txt");
}
}
-if (isset($_REQUEST['cat_hide']) and !empty($_REQUEST['cat_hide']) and ($_REQUEST['cat_hide'] == "on")) {
- if (!file_exists("data/categories/{$_REQUEST['cat_id']}/private.txt")) {
- touch("data/categories/{$_REQUEST['cat_id']}/private.txt");
+if (isset($_POST['cat_hide']) and !empty($_POST['cat_hide']) and ($_POST['cat_hide'] == "on")) {
+ if (!file_exists("data/categories/{$_POST['cat_id']}/private.txt")) {
+ touch("data/categories/{$_POST['cat_id']}/private.txt");
}
}
-if ((!isset($_REQUEST['cat_book']) or !empty($_REQUEST['cat_book'])) and ($_REQUEST['cat_edit'] == "on")) {
- if (file_exists("data/categories/{$_REQUEST['cat_id']}/book.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/book.txt");
+if ((!isset($_POST['cat_book']) or !empty($_POST['cat_book'])) and ($_POST['cat_edit'] == "on")) {
+ if (file_exists("data/categories/{$_POST['cat_id']}/book.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/book.txt");
}
}
-if (isset($_REQUEST['cat_book']) and !empty($_REQUEST['cat_book']) and ($_REQUEST['cat_book'] == "on")) {
- if (!file_exists("data/categories/{$_REQUEST['cat_id']}/book.txt")) {
- touch("data/categories/{$_REQUEST['cat_id']}/book.txt");
+if (isset($_POST['cat_book']) and !empty($_POST['cat_book']) and ($_POST['cat_book'] == "on")) {
+ if (!file_exists("data/categories/{$_POST['cat_id']}/book.txt")) {
+ touch("data/categories/{$_POST['cat_id']}/book.txt");
}
}
-if (isset($_REQUEST['cat_title']) and !empty($_REQUEST['cat_title'])) {
+if (isset($_POST['cat_title']) and !empty($_POST['cat_title'])) {
- $cat_title = ucfirst(strip_tags(trim($_REQUEST['cat_title'])));
+ $cat_title = ucfirst(strip_tags(trim($_POST['cat_title'])));
- if ($cat_title != file_get_contents("data/categories/{$_REQUEST['cat_id']}/title.txt")) {
- $edit_title_file = fopen("data/categories/{$_REQUEST['cat_id']}/title.txt","w");
+ if ($cat_title != file_get_contents("data/categories/{$_POST['cat_id']}/title.txt")) {
+ $edit_title_file = fopen("data/categories/{$_POST['cat_id']}/title.txt","w");
fwrite($edit_title_file,$cat_title);
fclose($edit_title_file);
}
}
-if (empty($_REQUEST['cat_title']) and file_exists("data/categories/{$_REQUEST['cat_id']}/title.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/title.txt");
+if (empty($_POST['cat_title']) and file_exists("data/categories/{$_POST['cat_id']}/title.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/title.txt");
}
?>
diff --git a/colors.php b/colors.php
index 22271e7..d09bb8b 100644
--- a/colors.php
+++ b/colors.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -27,11 +27,11 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-if (!isset($_REQUEST['target']) or empty($_REQUEST['target'])) {
+if (!isset($_POST['target']) or empty($_POST['target'])) {
$target = font;
}
else {
- $target = $_REQUEST['target'];
+ $target = $_POST['target'];
}
if (!file_exists("data/colors")) {
@@ -71,7 +71,7 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+if (isset($_POST['reset']) and ($_POST['reset'] == "go")) {
rmdirr("data/colors");
@@ -81,23 +81,23 @@ if (isset($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
}
-if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and (!isset($_REQUEST['color']) or empty($_REQUEST['color']))) {
+if (isset($_POST['target']) and !empty($_POST['target']) and (!isset($_POST['color']) or empty($_POST['color']))) {
- $color_file = str_replace("_", "-", $_REQUEST['target']);
+ $color_file = str_replace("_", "-", $_POST['target']);
$color_file = "data/colors/{$color_file}.txt";
unlink($color_file);
}
-if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and isset($_REQUEST['color']) and !empty($_REQUEST['color'])) {
+if (isset($_POST['target']) and !empty($_POST['target']) and isset($_POST['color']) and !empty($_POST['color'])) {
- $color_value = str_replace("%23", "#", $_REQUEST['color']);
+ $color_value = str_replace("%23", "#", $_POST['color']);
$color_value = strtolower($color_value);
$valid_colors = array("aqua","black","blue","fuchsia","gray","green","lime","maroon","navy","olive","purple","red","silver","teal","white","yellow","transparent");
if (in_array($color_value, $valid_colors) or ((strlen($color_value) == 7) and strstr($color_value,"#"))) {
- $color_file = str_replace("_", "-", $_REQUEST['target']);
+ $color_file = str_replace("_", "-", $_POST['target']);
$color_file = "data/colors/{$color_file}.txt";
$color_txt = fopen($color_file,"w");
fwrite($color_txt,$color_value);
@@ -105,8 +105,8 @@ if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and isset($_REQUE
}
}
-if (isset($_REQUEST['id']) and !empty($_REQUEST['id']) and !file_exists("data/schemes/colors/{$_REQUEST['id']}")) {
- $id = strtolower($_REQUEST['id']);
+if (isset($_POST['id']) and !empty($_POST['id']) and !file_exists("data/schemes/colors/{$_POST['id']}")) {
+ $id = strtolower($_POST['id']);
$id = trim($id);
$id = str_replace(" ","_",$id);
@@ -169,15 +169,15 @@ if (isset($_REQUEST['id']) and !empty($_REQUEST['id']) and !file_exists("data/sc
}
}
-if (isset($_REQUEST['scheme']) and !empty($_REQUEST['scheme'])) {
+if (isset($_POST['scheme']) and !empty($_POST['scheme'])) {
- $scheme = strtolower($_REQUEST['scheme']);
+ $scheme = strtolower($_POST['scheme']);
$scheme = trim($scheme);
$scheme = str_replace(" ","_",$scheme);
if (file_exists("data/schemes/colors/$scheme")) {
- switch ($_REQUEST['scheme_axn']) {
+ switch ($_POST['scheme_axn']) {
case 'click here to apply selected scheme':
diff --git a/del.php b/del.php
index 01ef973..9b3ca74 100644
--- a/del.php
+++ b/del.php
@@ -93,7 +93,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
}
- if ($_REQUEST['action'] == delete) {
+ if ($_POST['action'] == delete) {
$entry_dir = 'data/items/' . $_REQUEST['entry'];
$image_dir = 'images/' . $_REQUEST['entry'];
$album_sem_dir = 'data/albums/' . $_REQUEST['entry'];
@@ -117,13 +117,13 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
- if ($_REQUEST['action'] == edit) {
+ if ($_POST['action'] == edit) {
$edit_url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/edit.php?entry=" . $_REQUEST['entry'];
$edit_url = str_replace("//edit.php", "/edit.php", $edit_url);
header("Location: $edit_url");
}
- if ($_REQUEST['action'] == home) {
+ if ($_POST['action'] == home) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
}
diff --git a/dig.php b/dig.php
index adf1b93..71045c8 100644
--- a/dig.php
+++ b/dig.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
?>
@@ -69,16 +69,16 @@ $open_username_file = fopen($username_file,"r");
$login_username = fread($open_username_file,filesize($username_file));
fclose($open_username_file);
-if (!isset($_REQUEST['search'])) {
+if (!isset($_POST['search'])) {
exit();
}
-if (empty($_REQUEST['search'])) {
+if (empty($_POST['search'])) {
echo "<p>Search string required. Click <a href=index.php>here</a> to go to the index page.</p>";
exit();
}
-$search = trim(strip_tags(strtolower($_REQUEST['search'])));
+$search = trim(strip_tags(strtolower($_POST['search'])));
$google = str_replace(" ", "+", $search);
diff --git a/edit.php b/edit.php
index ded4662..b6e300f 100644
--- a/edit.php
+++ b/edit.php
@@ -22,7 +22,7 @@ if (get_magic_quotes_gpc()) {
$login_username = file_get_contents("data/username.txt");
-if (isset($_REQUEST['title_input']) and isset($_REQUEST['body_input'])) {
+if (isset($_POST['title_input']) and isset($_POST['body_input'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?entry=" . $_REQUEST['entry']);
}
@@ -216,9 +216,9 @@ a:active {
<?php
-if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['comment_txt']) and !empty($_REQUEST['comment_txt']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
+if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_POST['comment_txt']) and !empty($_POST['comment_txt']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
- $comment_txt = ucfirst($_REQUEST['comment_txt']);
+ $comment_txt = ucfirst($_POST['comment_txt']);
//$comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
// $comment_txt = str_replace('href=', 'target=_maj href=', $comment_txt);
$comment_txt = str_replace("\n", '<br />', $comment_txt);
@@ -537,11 +537,11 @@ echo $body_read_content;
<?php
-if (!isset($_REQUEST['title_input']) or !isset($_REQUEST['body_input']) or empty($_REQUEST['title_input']) or empty($_REQUEST['body_input'])) {
+if (!isset($_POST['title_input']) or !isset($_POST['body_input']) or empty($_POST['title_input']) or empty($_POST['body_input'])) {
exit();
}
-$title_write_content = ucfirst($_REQUEST['title_input']);
+$title_write_content = ucfirst($_POST['title_input']);
$title_write_content = str_replace('<','<',$title_write_content);
$title_write_content = str_replace('>','>',$title_write_content);
$open_title_file = fopen($title_file,"w");
@@ -594,7 +594,7 @@ function reformat_code($defang_code) {
return $defang_code;
}
-$body_write_content = ucfirst($_REQUEST['body_input']);
+$body_write_content = ucfirst($_POST['body_input']);
$body_write_content = str_replace("[html]", '<html>', $body_write_content);
$body_write_content = str_replace("[/html]", '</html>', $body_write_content);
$body_write_content = reformat_html($body_write_content);
@@ -663,7 +663,7 @@ if (isset($_FILES['album_image_input']) and !empty($_FILES['album_image_input'])
if (!file_exists($album_sem)) {
mkdir($album_sem);
}
- if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption'])) {
+ if (isset($_POST['caption']) and !empty($_POST['caption'])) {
$album_data_dir = 'data/items/' . $_REQUEST['entry'] . '/album';
if (!file_exists($album_data_dir)) {
mkdir($album_data_dir);
@@ -674,7 +674,7 @@ if (isset($_FILES['album_image_input']) and !empty($_FILES['album_image_input'])
}
$caption_file = 'data/items/' . $_REQUEST['entry'] . '/album/captions/' . $_FILES['album_image_input']['name'] . '.txt';
if (!file_exists($caption_file)) {
- $caption_txt = ucfirst($_REQUEST['caption']);
+ $caption_txt = ucfirst($_POST['caption']);
$caption_txt = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $caption_txt);
$caption_txt = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $caption_txt);
$caption_txt = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $caption_txt);
@@ -821,7 +821,7 @@ if (isset($_FILES['file_input']) and !empty($_FILES['file_input'])) {
// start of wiki mod (20071130)
-$title_get_content = ucfirst($_REQUEST['title_input']);
+$title_get_content = ucfirst($_POST['title_input']);
$title_get_content = str_replace('<','<',$title_get_content);
$title_get_content = str_replace('>','>',$title_get_content);
@@ -886,7 +886,7 @@ if (file_exists("data/wiki.txt") and (file_exists("data/items/{$_REQUEST['entry'
if ($_SESSION['logged_in'] == $login_username) {
$sticky_sem = 'data/sticky/' . $_REQUEST['entry'];
- if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['sticky'] == "on")) {
+ if (isset($_POST['sticky']) and !empty($_POST['sticky']) and ($_POST['sticky'] == "on")) {
if (!file_exists("data/sticky")) {
mkdir("data/sticky");
}
@@ -894,73 +894,73 @@ if ($_SESSION['logged_in'] == $login_username) {
touch($sticky_sem);
}
}
- if (!isset($_REQUEST['sticky']) or empty($_REQUEST['sticky'])) {
+ if (!isset($_POST['sticky']) or empty($_POST['sticky'])) {
if (file_exists($sticky_sem)) {
unlink($sticky_sem);
}
}
$display_sem = "data/items/{$_REQUEST['entry']}/cat.txt";
- if (isset($_REQUEST['display']) and !empty($_REQUEST['display']) and ($_REQUEST['display'] == "on")) {
+ if (isset($_POST['display']) and !empty($_POST['display']) and ($_POST['display'] == "on")) {
if (!file_exists($display_sem)) {
touch($display_sem);
}
}
- if (!isset($_REQUEST['display']) or empty($_REQUEST['display'])) {
+ if (!isset($_POST['display']) or empty($_POST['display'])) {
if (file_exists($display_sem)) {
unlink($display_sem);
}
}
$private_sem = "data/items/{$_REQUEST['entry']}/private.txt";
- if (isset($_REQUEST['private']) and !empty($_REQUEST['private']) and ($_REQUEST['private'] == "on")) {
+ if (isset($_POST['private']) and !empty($_POST['private']) and ($_POST['private'] == "on")) {
if (!file_exists($private_sem)) {
touch($private_sem);
}
}
- if (!isset($_REQUEST['private']) or empty($_REQUEST['private'])) {
+ if (!isset($_POST['private']) or empty($_POST['private'])) {
if (file_exists($private_sem)) {
unlink($private_sem);
}
}
$member_sem = "data/items/{$_REQUEST['entry']}/member.txt";
- if (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on")) {
+ if (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on")) {
if (!file_exists($member_sem)) {
touch($member_sem);
}
}
- if (!isset($_REQUEST['member']) or empty($_REQUEST['member'])) {
+ if (!isset($_POST['member']) or empty($_POST['member'])) {
if (file_exists($member_sem)) {
unlink($member_sem);
}
}
$edit_sem = "data/items/{$_REQUEST['entry']}/edit.txt";
- if (isset($_REQUEST['edit']) and !empty($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (isset($_POST['edit']) and !empty($_POST['edit']) and ($_POST['edit'] == "on")) {
if (!file_exists($edit_sem)) {
touch($edit_sem);
}
}
- if (!isset($_REQUEST['edit']) or empty($_REQUEST['edit'])) {
+ if (!isset($_POST['edit']) or empty($_POST['edit'])) {
if (file_exists($edit_sem)) {
unlink($edit_sem);
}
}
$lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
- if (isset($_REQUEST['lastmod']) and !empty($_REQUEST['lastmod']) and ($_REQUEST['lastmod'] == "on")) {
+ if (isset($_POST['lastmod']) and !empty($_POST['lastmod']) and ($_POST['lastmod'] == "on")) {
if (!file_exists($lastmod_sem)) {
touch($lastmod_sem);
}
}
- if (!isset($_REQUEST['lastmod']) or empty($_REQUEST['lastmod'])) {
+ if (!isset($_POST['lastmod']) or empty($_POST['lastmod'])) {
if (file_exists($lastmod_sem)) {
unlink($lastmod_sem);
}
}
- if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] == "on")) {
+ if (isset($_POST['pdf']) and !empty($_POST['pdf']) and ($_POST['pdf'] == "on")) {
if (!file_exists("data/items/{$_REQUEST['entry']}/pdf")) {
mkdir("data/items/{$_REQUEST['entry']}/pdf");
}
@@ -1102,36 +1102,36 @@ if ($_SESSION['logged_in'] == $login_username) {
$pdf->Output($filename);
}
- if (!isset($_REQUEST['pdf']) or empty($_REQUEST['pdf'])) {
+ if (!isset($_POST['pdf']) or empty($_POST['pdf'])) {
if (file_exists("data/items/{$_REQUEST['entry']}/pdf/file")) {
rmdirr("data/items/{$_REQUEST['entry']}/pdf/file");
}
}
- if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
+ if (isset($_POST['category']) and !empty($_POST['category'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- if ($_REQUEST['category'] == "unfiled") {
+ if ($_POST['category'] == "unfiled") {
unlink("data/items/{$_REQUEST['entry']}/category.txt");
}
- if (file_exists("data/categories/{$_REQUEST['category']}")) {
+ if (file_exists("data/categories/{$_POST['category']}")) {
$fp_category_txt = fopen("data/items/{$_REQUEST['entry']}/category.txt","w");
- fwrite($fp_category_txt, $_REQUEST['category']);
+ fwrite($fp_category_txt, $_POST['category']);
fclose($fp_category_txt);
}
}
$passwd_file = "data/items/{$_REQUEST['entry']}/passwd.txt";
- if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd']) and ($_REQUEST['passwd'] != "password")) {
+ if (isset($_POST['passwd']) and !empty($_POST['passwd']) and ($_POST['passwd'] != "password")) {
$fp_passwd_txt = fopen("$passwd_file","w");
- $passwd_crypt = sha1($_REQUEST['passwd']);
+ $passwd_crypt = sha1($_POST['passwd']);
$passwd_crypt = md5($passwd_crypt);
$passwd_crypt = crypt($passwd_crypt, $passwd_crypt);
fwrite($fp_passwd_txt, $passwd_crypt);
fclose($fp_passwd_txt);
}
- if (!isset($_REQUEST['passwd']) or empty($_REQUEST['passwd'])) {
+ if (!isset($_POST['passwd']) or empty($_POST['passwd'])) {
if (file_exists($passwd_file)) {
unlink($passwd_file);
}
diff --git a/fonts.php b/fonts.php
index e97cf3b..00cd309 100644
--- a/fonts.php
+++ b/fonts.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -56,12 +56,12 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+if (isset($_POST['reset']) and !empty($_POST['reset']) and ($_POST['reset'] == "go")) {
rmdirr("data/fonts");
}
-if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_contents("data/fonts/body.txt") != $_REQUEST['body'])) {
- $body_write_content = strtolower($_REQUEST['body']);
+if (isset($_POST['body']) and !empty($_POST['body']) and (file_get_contents("data/fonts/body.txt") != $_POST['body'])) {
+ $body_write_content = strtolower($_POST['body']);
$body_write_content = trim($body_write_content);
$body_write_content = str_replace(", ",",",$body_write_content);
$body_write_content = str_replace(" ,",",",$body_write_content);
@@ -75,16 +75,16 @@ if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_content
fclose($fp_body_txt);
}
-if (!isset($_REQUEST['body']) or empty($_REQUEST['body'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['body']) or empty($_POST['body'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/body.txt")) {
unlink("data/fonts/body.txt");
}
}
}
-if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_contents("data/fonts/input.txt") != $_REQUEST['input'])) {
- $input_write_content = strtolower($_REQUEST['input']);
+if (isset($_POST['input']) and !empty($_POST['input']) and (file_get_contents("data/fonts/input.txt") != $_POST['input'])) {
+ $input_write_content = strtolower($_POST['input']);
$input_write_content = trim($input_write_content);
$input_write_content = str_replace(", ",",",$input_write_content);
$input_write_content = str_replace(" ,",",",$input_write_content);
@@ -98,16 +98,16 @@ if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_conte
fclose($fp_input_txt);
}
-if (!isset($_REQUEST['input']) or empty($_REQUEST['input'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['input']) or empty($_POST['input'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/input.txt")) {
unlink("data/fonts/input.txt");
}
}
}
-if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_REQUEST['panel_title'])) {
- $panel_title_write_content = strtolower($_REQUEST['panel_title']);
+if (isset($_POST['panel_title']) and !empty($_POST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_POST['panel_title'])) {
+ $panel_title_write_content = strtolower($_POST['panel_title']);
$panel_title_write_content = trim($panel_title_write_content);
$panel_title_write_content = str_replace(", ",",",$panel_title_write_content);
$panel_title_write_content = str_replace(" ,",",",$panel_title_write_content);
@@ -121,16 +121,16 @@ if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (fi
fclose($fp_panel_title_txt);
}
-if (!isset($_REQUEST['panel_title']) or empty($_REQUEST['panel_title'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_title']) or empty($_POST['panel_title'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-title.txt")) {
unlink("data/fonts/panel-title.txt");
}
}
}
-if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_REQUEST['panel_body'])) {
- $panel_body_write_content = strtolower($_REQUEST['panel_body']);
+if (isset($_POST['panel_body']) and !empty($_POST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_POST['panel_body'])) {
+ $panel_body_write_content = strtolower($_POST['panel_body']);
$panel_body_write_content = trim($panel_body_write_content);
$panel_body_write_content = str_replace(", ",",",$panel_body_write_content);
$panel_body_write_content = str_replace(" ,",",",$panel_body_write_content);
@@ -144,16 +144,16 @@ if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file
fclose($fp_panel_body_txt);
}
-if (!isset($_REQUEST['panel_body']) or empty($_REQUEST['panel_body'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_body']) or empty($_POST['panel_body'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-body.txt")) {
unlink("data/fonts/panel-body.txt");
}
}
}
-if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_REQUEST['panel_footer'])) {
- $panel_footer_write_content = strtolower($_REQUEST['panel_footer']);
+if (isset($_POST['panel_footer']) and !empty($_POST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_POST['panel_footer'])) {
+ $panel_footer_write_content = strtolower($_POST['panel_footer']);
$panel_footer_write_content = trim($panel_footer_write_content);
$panel_footer_write_content = str_replace(", ",",",$panel_footer_write_content);
$panel_footer_write_content = str_replace(" ,",",",$panel_footer_write_content);
@@ -167,8 +167,8 @@ if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (
fclose($fp_panel_footer_txt);
}
-if (!isset($_REQUEST['panel_footer']) or empty($_REQUEST['panel_footer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_footer']) or empty($_POST['panel_footer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-footer.txt")) {
unlink("data/fonts/panel-footer.txt");
}
diff --git a/login.php b/login.php
index 99fe3e4..19a4ff4 100644
--- a/login.php
+++ b/login.php
@@ -21,7 +21,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
?>
@@ -85,28 +85,28 @@ a:active {
<?php
-if ($_REQUEST['username'] == file_get_contents("data/username.txt")) {
+if ($_POST['username'] == file_get_contents("data/username.txt")) {
$login_username = file_get_contents("data/username.txt");
$login_password = file_get_contents("data/password.txt");
$last_login = "data/lastlog.txt";
$logins = "data/logins.txt";
}
-if ($_REQUEST['username'] != file_get_contents("data/username.txt")) {
- if (file_exists("data/members/active/{$_REQUEST['username']}") and file_exists("data/bb.txt")) {
- $login_username = $_REQUEST['username'];
- $login_password = file_get_contents("data/members/active/{$_REQUEST['username']}/password.txt");
- $last_login = "data/members/active/{$_REQUEST['username']}/bb-last.txt";
- $logins = "data/members/active/{$_REQUEST['username']}/bb-logins.txt";
+if ($_POST['username'] != file_get_contents("data/username.txt")) {
+ if (file_exists("data/members/active/{$_POST['username']}") and file_exists("data/bb.txt")) {
+ $login_username = $_POST['username'];
+ $login_password = file_get_contents("data/members/active/{$_POST['username']}/password.txt");
+ $last_login = "data/members/active/{$_POST['username']}/bb-last.txt";
+ $logins = "data/members/active/{$_POST['username']}/bb-logins.txt";
}
}
/* Fun with crypt! */
-$crypt_password = sha1($_REQUEST['password']);
+$crypt_password = sha1($_POST['password']);
$crypt_password = md5($crypt_password);
$crypt_password = crypt($crypt_password, $crypt_password);
-if ($login_username != $_REQUEST['username'] || $login_password != $crypt_password) {
+if ($login_username != $_POST['username'] || $login_password != $crypt_password) {
$_SESSION = array();
session_destroy();
echo "<p>Enter your login credentials above or click <a href=index.php>here</a> to go to the index page.";
@@ -119,7 +119,7 @@ if ($login_username != $_REQUEST['username'] || $login_password != $crypt_passwo
exit();
}
-$_SESSION['logged_in'] = $_REQUEST['username'];
+$_SESSION['logged_in'] = $_POST['username'];
$_SESSION['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
$lastlog = date("YmdHis", time() + $offset);
diff --git a/move.php b/move.php
index 346ad21..c8d937a 100644
--- a/move.php
+++ b/move.php
@@ -142,12 +142,12 @@ a:active {
<?php
-if (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']) or !isset($_REQUEST['target']) or empty($_REQUEST['target'])) {
+if (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']) or !isset($_POST['target']) or empty($_POST['target'])) {
exit();
}
$entry = trim($_REQUEST['entry']);
-$target = trim($_REQUEST['target']);
+$target = trim($_POST['target']);
if (!file_exists("data/items/$entry") or !file_exists("data/items/$target")) {
exit();
diff --git a/options.php b/options.php
index efa5f91..8c59e65 100644
--- a/options.php
+++ b/options.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
if (file_exists("data/lite.txt")) {
@@ -106,11 +106,11 @@ a:active {
<?php
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_REQUEST['key']) and !empty($_REQUEST['key'])) {
+if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['key']) and !empty($_POST['key'])) {
- $username = $_REQUEST['username'];
+ $username = $_POST['username'];
- if (file_exists("data/members/active/$username") and ($_REQUEST['key'] == file_get_contents("data/members/active/$username/key.txt"))) {
+ if (file_exists("data/members/active/$username") and ($_POST['key'] == file_get_contents("data/members/active/$username/key.txt"))) {
unlink("data/members/active/$username/key.txt");
unlink("data/members/active/$username/vacation.txt");
unlink("data/members/active/$username/email.txt");
@@ -132,8 +132,8 @@ if (!file_exists("data/members/active/{$_SESSION['logged_in']}")) {
exit();
}
-if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt") != $_REQUEST['email']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
- $email_write_content = strtolower($_REQUEST['email']);
+if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt") != $_POST['email']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email']))) {
+ $email_write_content = strtolower($_POST['email']);
$email_write_content = trim($email_write_content);
$email_write_content = htmlentities($email_write_content, ENT_NOQUOTES);
$fp_email_txt = fopen("data/members/active/{$_SESSION['logged_in']}/new-email.txt","w");
@@ -190,12 +190,12 @@ if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_conte
echo "<p>Confirmation request sent. Check your $email_write_content inbox for details.</p>";
}
-if ((!isset($_REQUEST['url']) or empty($_REQUEST['url'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['url']) or empty($_POST['url'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/members/active/{$_SESSION['logged_in']}/url.txt");
}
-if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
- $url = str_replace('http://', '', $_REQUEST['url']);
+if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.", $_POST['url']))) {
+ $url = str_replace('http://', '', $_POST['url']);
$url = strtolower($url);
$url = trim($url);
$url = 'http://' . $url;
@@ -205,12 +205,12 @@ if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUE
fclose($fp_url_txt);
}
-if ((!isset($_REQUEST['sig']) or empty($_REQUEST['sig'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/members/active/{$_SESSION['logged_in']}/sig.txt");
}
-if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
- $sig = strip_tags($_REQUEST['sig']);
+if (isset($_POST['sig']) and !empty($_POST['sig'])) {
+ $sig = strip_tags($_POST['sig']);
$sig = str_replace("[b]","<b>",$sig);
$sig = str_replace("[/b]","</b>",$sig);
$sig = str_replace("[i]","<i>",$sig);
@@ -231,7 +231,7 @@ if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
fclose($fp_sig_txt);
}
-if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_REQUEST['del_avatar'] == "on")) {
+if (isset($_POST['del_avatar']) and !empty($_POST['del_avatar']) and ($_POST['del_avatar'] == "on")) {
if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.gif")) {
unlink("images/members/{$_SESSION['logged_in']}/avatar.gif");
}
@@ -303,12 +303,12 @@ $max_image_size = 1000000;
}
}
-if (isset($_REQUEST['vacation']) and !empty($_REQUEST['vacation']) and ($_REQUEST['vacation'] == "on") and !file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
+if (isset($_POST['vacation']) and !empty($_POST['vacation']) and ($_POST['vacation'] == "on") and !file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
touch("data/members/active/{$_SESSION['logged_in']}/vacation.txt");
}
-if (!isset($_REQUEST['vacation']) or empty($_REQUEST['vacation'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['vacation']) or empty($_POST['vacation'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
unlink("data/members/active/{$_SESSION['logged_in']}/vacation.txt");
}
@@ -320,15 +320,15 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/key.txt") and !fil
}
-if (isset($_REQUEST['bday']) and !empty($_REQUEST['bday']) and (strlen($_REQUEST['bday']) == "8") and is_numeric($_REQUEST['bday']) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) <= $maxage)) {
+if (isset($_POST['bday']) and !empty($_POST['bday']) and (strlen($_POST['bday']) == "8") and is_numeric($_POST['bday']) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) <= $maxage)) {
$fp_bday_txt = fopen("data/members/active/{$_SESSION['logged_in']}/bday.txt","w");
- fwrite($fp_bday_txt,$_REQUEST['bday']);
+ fwrite($fp_bday_txt,$_POST['bday']);
fclose($fp_bday_txt);
}
-if (isset($_REQUEST['current_passwd']) and !empty($_REQUEST['current_passwd']) and isset($_REQUEST['new_passwd']) and !empty($_REQUEST['new_passwd']) and isset($_REQUEST['confirm_passwd']) and !empty($_REQUEST['confirm_passwd'])) {
+if (isset($_POST['current_passwd']) and !empty($_POST['current_passwd']) and isset($_POST['new_passwd']) and !empty($_POST['new_passwd']) and isset($_POST['confirm_passwd']) and !empty($_POST['confirm_passwd'])) {
if (file_exists("data/bb-passlen.txt")) {
$pass_len = file_get_contents("data/bb-passlen.txt");
@@ -337,9 +337,9 @@ if (isset($_REQUEST['current_passwd']) and !empty($_REQUEST['current_passwd']) a
$pass_len = 8;
}
- $current_passwd = trim($_REQUEST['current_passwd']);
- $new_passwd = trim($_REQUEST['new_passwd']);
- $confirm_passwd = trim($_REQUEST['confirm_passwd']);
+ $current_passwd = trim($_POST['current_passwd']);
+ $new_passwd = trim($_POST['new_passwd']);
+ $confirm_passwd = trim($_POST['confirm_passwd']);
if ((strlen($new_passwd) < $pass_len) or (strlen($confirm_passwd) < $pass_len)) {
echo "<p>Passwords must be composed of at least $pass_len characters.</p>";
diff --git a/panels.php b/panels.php
index d9d0235..37f03d4 100644
--- a/panels.php
+++ b/panels.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -51,138 +51,138 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['new_id']) and !empty($_REQUEST['new_id']) and isset($_REQUEST['new_title']) and !empty($_REQUEST['new_title']) and isset($_REQUEST['new_content']) and !empty($_REQUEST['new_content']) and !file_exists("data/panels/{$_REQUEST['new_id']}")) {
+if (isset($_POST['new_id']) and !empty($_POST['new_id']) and isset($_POST['new_title']) and !empty($_POST['new_title']) and isset($_POST['new_content']) and !empty($_POST['new_content']) and !file_exists("data/panels/{$_POST['new_id']}")) {
if (!file_exists("data/panels")) {
mkdir("data/panels");
}
- $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_REQUEST['new_id']))));
+ $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_POST['new_id']))));
if (!file_exists("data/panels/$new_id")) {
mkdir("data/panels/$new_id");
}
- $new_title = ucfirst(strip_tags(trim($_REQUEST['new_title'])));
+ $new_title = ucfirst(strip_tags(trim($_POST['new_title'])));
$open_title_file = fopen("data/panels/$new_id/title.txt","w");
fwrite($open_title_file,$new_title);
fclose($open_title_file);
- $panel_content = ucfirst(trim($_REQUEST['new_content']));
+ $panel_content = ucfirst(trim($_POST['new_content']));
$new_content_file = fopen("data/panels/$new_id/panel.php","w");
fwrite($new_content_file,$panel_content);
fclose($new_content_file);
}
-if (isset($_REQUEST['panel_del']) and !empty($_REQUEST['panel_del']) and ($_REQUEST['panel_del'] == "on")) {
- rmdirr("data/panels/{$_REQUEST['panel_id']}");
+if (isset($_POST['panel_del']) and !empty($_POST['panel_del']) and ($_POST['panel_del'] == "on")) {
+ rmdirr("data/panels/{$_POST['panel_id']}");
}
-if ((!isset($_REQUEST['panel_hide']) or !empty($_REQUEST['panel_hide'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/private.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/private.txt");
+if ((!isset($_POST['panel_hide']) or !empty($_POST['panel_hide'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/private.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/private.txt");
}
}
-if (isset($_REQUEST['panel_hide']) and !empty($_REQUEST['panel_hide']) and ($_REQUEST['panel_hide'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/private.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/private.txt");
+if (isset($_POST['panel_hide']) and !empty($_POST['panel_hide']) and ($_POST['panel_hide'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/private.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/private.txt");
}
}
-if ((!isset($_REQUEST['panel_free']) or !empty($_REQUEST['panel_free'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/free.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/free.txt");
+if ((!isset($_POST['panel_free']) or !empty($_POST['panel_free'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/free.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/free.txt");
}
}
-if (isset($_REQUEST['panel_free']) and !empty($_REQUEST['panel_free']) and ($_REQUEST['panel_free'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/free.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/free.txt");
+if (isset($_POST['panel_free']) and !empty($_POST['panel_free']) and ($_POST['panel_free'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/free.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/free.txt");
}
}
-if ((!isset($_REQUEST['panel_right']) or !empty($_REQUEST['panel_right'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+if ((!isset($_POST['panel_right']) or !empty($_POST['panel_right'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if (isset($_REQUEST['panel_right']) and !empty($_REQUEST['panel_right']) and ($_REQUEST['panel_right'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/right.txt");
+if (isset($_POST['panel_right']) and !empty($_POST['panel_right']) and ($_POST['panel_right'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if ((!isset($_REQUEST['panel_center']) or !empty($_REQUEST['panel_center'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+if ((!isset($_POST['panel_center']) or !empty($_POST['panel_center'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if (isset($_REQUEST['panel_center']) and !empty($_REQUEST['panel_center']) and ($_REQUEST['panel_center'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/center.txt");
+if (isset($_POST['panel_center']) and !empty($_POST['panel_center']) and ($_POST['panel_center'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/center.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if ((!isset($_REQUEST['panel_top']) or !empty($_REQUEST['panel_top'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/top.txt");
+if ((!isset($_POST['panel_top']) or !empty($_POST['panel_top'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/top.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/top.txt");
}
}
-if (isset($_REQUEST['panel_top']) and !empty($_REQUEST['panel_top']) and ($_REQUEST['panel_top'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/top.txt");
+if (isset($_POST['panel_top']) and !empty($_POST['panel_top']) and ($_POST['panel_top'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/top.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/top.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if ((!isset($_REQUEST['panel_entry']) or !empty($_REQUEST['panel_entry'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+if ((!isset($_POST['panel_entry']) or !empty($_POST['panel_entry'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/entry.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/entry.txt");
}
}
-if (isset($_REQUEST['panel_entry']) and !empty($_REQUEST['panel_entry']) and ($_REQUEST['panel_entry'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+if (isset($_POST['panel_entry']) and !empty($_POST['panel_entry']) and ($_POST['panel_entry'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/entry.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/entry.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title'])) {
+if (isset($_POST['panel_title']) and !empty($_POST['panel_title'])) {
- $panel_title = ucfirst(strip_tags(trim($_REQUEST['panel_title'])));
+ $panel_title = ucfirst(strip_tags(trim($_POST['panel_title'])));
- if ($panel_title != file_get_contents("data/panels/{$_REQUEST['panel_id']}/title.txt")) {
- $edit_title_file = fopen("data/panels/{$_REQUEST['panel_id']}/title.txt","w");
+ if ($panel_title != file_get_contents("data/panels/{$_POST['panel_id']}/title.txt")) {
+ $edit_title_file = fopen("data/panels/{$_POST['panel_id']}/title.txt","w");
fwrite($edit_title_file,$panel_title);
fclose($edit_title_file);
}
}
-if (isset($_REQUEST['panel_content']) and !empty($_REQUEST['panel_content'])) {
+if (isset($_POST['panel_content']) and !empty($_POST['panel_content'])) {
- $panel_content = ucfirst(trim($_REQUEST['panel_content']));
+ $panel_content = ucfirst(trim($_POST['panel_content']));
- if ($panel_content != file_get_contents("data/panels/{$_REQUEST['panel_id']}/panel.php")) {
- $edit_content_file = fopen("data/panels/{$_REQUEST['panel_id']}/panel.php","w");
+ if ($panel_content != file_get_contents("data/panels/{$_POST['panel_id']}/panel.php")) {
+ $edit_content_file = fopen("data/panels/{$_POST['panel_id']}/panel.php","w");
fwrite($edit_content_file,$panel_content);
fclose($edit_content_file);
}
diff --git a/reg.php b/reg.php
index b01d391..4db8a50 100644
--- a/reg.php
+++ b/reg.php
@@ -361,24 +361,24 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
exit();
}
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_get']) and isset($_REQUEST['firstname']) and !empty($_REQUEST['firstname']) and isset($_REQUEST['lastname']) and !empty($_REQUEST['lastname']) and isset($_REQUEST['email']) and !empty($_REQUEST['email']) and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_put']) and ($_REQUEST['captcha_get'] == $_REQUEST['captcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_REQUEST['bd_year']) and !empty($_REQUEST['bd_year']) and isset($_REQUEST['bd_month']) and !empty($_REQUEST['bd_month']) and isset($_REQUEST['bd_day']) and !empty($_REQUEST['bd_day']) and (strlen($_REQUEST['bd_year']) == "4") and (strlen($_REQUEST['bd_month']) == "2") and (strlen($_REQUEST['bd_day']) == "2") and is_numeric($_REQUEST['bd_year']) and is_numeric($_REQUEST['bd_month']) and is_numeric($_REQUEST['bd_day']) and ((date("Y", time() + $offset) - $_REQUEST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_REQUEST['bd_year']) >= $minage) and ($_REQUEST['bd_month'] >= 1) and ($_REQUEST['bd_month'] <= 12) and ($_REQUEST['bd_day'] >= 1) and ($_REQUEST['bd_day'] <= 31)) {
+if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_POST['captcha_put']) and !empty($_POST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_POST['captcha_get'] == $_POST['captcha_put']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_POST['bd_year']) and !empty($_POST['bd_year']) and isset($_POST['bd_month']) and !empty($_POST['bd_month']) and isset($_POST['bd_day']) and !empty($_POST['bd_day']) and (strlen($_POST['bd_year']) == "4") and (strlen($_POST['bd_month']) == "2") and (strlen($_POST['bd_day']) == "2") and is_numeric($_POST['bd_year']) and is_numeric($_POST['bd_month']) and is_numeric($_POST['bd_day']) and ((date("Y", time() + $offset) - $_POST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_POST['bd_year']) >= $minage) and ($_POST['bd_month'] >= 1) and ($_POST['bd_month'] <= 12) and ($_POST['bd_day'] >= 1) and ($_POST['bd_day'] <= 31)) {
$username = strtolower($_REQUEST['username']);
$username = str_replace(" ","_",$username);
$username = trim($username);
$username = htmlentities($username, ENT_NOQUOTES);
- $firstname = strtolower($_REQUEST['firstname']);
+ $firstname = strtolower($_POST['firstname']);
$firstname = ucwords($firstname);
$firstname = trim($firstname);
$firstname = htmlentities($firstname, ENT_NOQUOTES);
- $lastname = strtolower($_REQUEST['lastname']);
+ $lastname = strtolower($_POST['lastname']);
$lastname = ucwords($lastname);
$lastname = trim($lastname);
$lastname = htmlentities($lastname, ENT_NOQUOTES);
- $email = strtolower($_REQUEST['email']);
+ $email = strtolower($_POST['email']);
$email = trim($email);
$email = htmlentities($email, ENT_NOQUOTES);
@@ -405,13 +405,13 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUES
fwrite($fp_email_txt,$email);
fclose($fp_email_txt);
- $bday = $_REQUEST['bd_year'] . $_REQUEST['bd_month'] . $_REQUEST['bd_day'];
+ $bday = $_POST['bd_year'] . $_POST['bd_month'] . $_POST['bd_day'];
$fp_bday_txt = fopen("data/members/pending/$username/bday.txt","w");
fwrite($fp_bday_txt,$bday);
fclose($fp_bday_txt);
- if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
- $url = str_replace('http://', '', $_REQUEST['url']);
+ if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.", $_POST['url']))) {
+ $url = str_replace('http://', '', $_POST['url']);
$url = strtolower($url);
$url = trim($url);
$url = 'http://' . $url;
diff --git a/reset.php b/reset.php
index 71143b2..c2fc68c 100644
--- a/reset.php
+++ b/reset.php
@@ -29,7 +29,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
if (file_exists("data/offset.txt")) {
@@ -115,9 +115,9 @@ a:active {
<?php
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_REQUEST['addr']) and !empty($_REQUEST['addr']) and file_exists("data/members/active/{$_REQUEST['username']}") and file_exists("data/bb.txt") and (trim(strtolower($_REQUEST['addr'])) == file_get_contents("data/members/active/{$_REQUEST['username']}/email.txt")) and isset($_REQUEST['bday']) and !empty($_REQUEST['bday']) and file_exists("data/members/active/{$_REQUEST['username']}/bday.txt") and (strlen($_REQUEST['bday']) == "8") and is_numeric($_REQUEST['bday']) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) <= $maxage) and ($_REQUEST['bday'] == file_get_contents("data/members/active/{$_REQUEST['username']}/bday.txt"))) {
+if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['addr']) and !empty($_POST['addr']) and file_exists("data/members/active/{$_POST['username']}") and file_exists("data/bb.txt") and (trim(strtolower($_POST['addr'])) == file_get_contents("data/members/active/{$_POST['username']}/email.txt")) and isset($_POST['bday']) and !empty($_POST['bday']) and file_exists("data/members/active/{$_POST['username']}/bday.txt") and (strlen($_POST['bday']) == "8") and is_numeric($_POST['bday']) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) <= $maxage) and ($_POST['bday'] == file_get_contents("data/members/active/{$_POST['username']}/bday.txt"))) {
- $username = $_REQUEST['username'];
+ $username = $_POST['username'];
function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
$str = '';
diff --git a/settings.php b/settings.php
index 551841c..6d5380d 100644
--- a/settings.php
+++ b/settings.php
@@ -17,7 +17,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -26,22 +26,22 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-if (isset($_REQUEST['title']) and !empty($_REQUEST['title']) and (file_get_contents("data/title.txt") != $_REQUEST['title'])) {
- $title_write_content = ucfirst($_REQUEST['title']);
+if (isset($_POST['title']) and !empty($_POST['title']) and (file_get_contents("data/title.txt") != $_POST['title'])) {
+ $title_write_content = ucfirst($_POST['title']);
$fp_title_txt = fopen("data/title.txt","w");
fwrite($fp_title_txt,$title_write_content);
fclose($fp_title_txt);
}
-if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and (file_get_contents("data/author.txt") != $_REQUEST['author'])) {
- $author_write_content = ucfirst($_REQUEST['author']);
+if (isset($_POST['author']) and !empty($_POST['author']) and (file_get_contents("data/author.txt") != $_POST['author'])) {
+ $author_write_content = ucfirst($_POST['author']);
$fp_author_txt = fopen("data/author.txt","w");
fwrite($fp_author_txt,$author_write_content);
fclose($fp_author_txt);
}
-if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_contents("data/email.txt") != $_REQUEST['email']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
- $email_write_content = strtolower($_REQUEST['email']);
+if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("data/email.txt") != $_POST['email']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email']))) {
+ $email_write_content = strtolower($_POST['email']);
$email_write_content = trim($email_write_content);
$email_write_content = htmlentities($email_write_content, ENT_NOQUOTES);
$fp_email_txt = fopen("data/email.txt","w");
@@ -49,59 +49,59 @@ if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_conte
fclose($fp_email_txt);
}
-if (!isset($_REQUEST['email']) or empty($_REQUEST['email'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['email']) or empty($_POST['email'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/email.txt")) {
unlink("data/email.txt");
}
}
}
-if (isset($_REQUEST['increase']) and !empty($_REQUEST['increase']) and is_numeric($_REQUEST['increase']) and ($_REQUEST['increase'] > 0) and (file_get_contents("data/increase.txt") != $_REQUEST['increase'])) {
- $increase_write_content = number_format($_REQUEST['increase'],0,'.','');
+if (isset($_POST['increase']) and !empty($_POST['increase']) and is_numeric($_POST['increase']) and ($_POST['increase'] > 0) and (file_get_contents("data/increase.txt") != $_POST['increase'])) {
+ $increase_write_content = number_format($_POST['increase'],0,'.','');
$fp_increase_txt = fopen("data/increase.txt","w");
fwrite($fp_increase_txt,$increase_write_content);
fclose($fp_increase_txt);
}
-if (!isset($_REQUEST['increase']) or empty($_REQUEST['increase']) or !is_numeric($_REQUEST['increase']) or ($_REQUEST['increase'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['increase']) or empty($_POST['increase']) or !is_numeric($_POST['increase']) or ($_POST['increase'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/increase.txt")) {
unlink("data/increase.txt");
}
}
}
-if (isset($_REQUEST['offset']) and !empty($_REQUEST['offset']) and is_numeric($_REQUEST['offset']) and (file_get_contents("data/offset.txt") != $_REQUEST['offset'])) {
+if (isset($_POST['offset']) and !empty($_POST['offset']) and is_numeric($_POST['offset']) and (file_get_contents("data/offset.txt") != $_POST['offset'])) {
$fp_offset_txt = fopen("data/offset.txt","w");
- fwrite($fp_offset_txt,$_REQUEST['offset']);
+ fwrite($fp_offset_txt,$_POST['offset']);
fclose($fp_offset_txt);
}
-if (!isset($_REQUEST['offset']) or empty($_REQUEST['offset']) or !is_numeric($_REQUEST['offset'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['offset']) or empty($_POST['offset']) or !is_numeric($_POST['offset'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/offset.txt")) {
unlink("data/offset.txt");
}
}
}
-if (isset($_REQUEST['sfx']) and !empty($_REQUEST['sfx']) and is_numeric($_REQUEST['sfx']) and (file_get_contents("data/sfx.txt") != $_REQUEST['sfx'])) {
+if (isset($_POST['sfx']) and !empty($_POST['sfx']) and is_numeric($_POST['sfx']) and (file_get_contents("data/sfx.txt") != $_POST['sfx'])) {
$fp_sfx_txt = fopen("data/sfx.txt","w");
- fwrite($fp_sfx_txt,$_REQUEST['sfx']);
+ fwrite($fp_sfx_txt,$_POST['sfx']);
fclose($fp_sfx_txt);
}
-if (!isset($_REQUEST['sfx']) or empty($_REQUEST['sfx']) or !is_numeric($_REQUEST['sfx'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['sfx']) or empty($_POST['sfx']) or !is_numeric($_POST['sfx'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/sfx.txt")) {
unlink("data/sfx.txt");
}
}
}
-if (isset($_REQUEST['ping']) and !empty($_REQUEST['ping']) and (file_get_contents("data/ping.txt") != $_REQUEST['ping']) and (ereg("\.", $_REQUEST['ping'])) and (ereg("http://", $_REQUEST['ping']))) {
- $ping_write_content = strtolower($_REQUEST['ping']);
+if (isset($_POST['ping']) and !empty($_POST['ping']) and (file_get_contents("data/ping.txt") != $_POST['ping']) and (ereg("\.", $_POST['ping'])) and (ereg("http://", $_POST['ping']))) {
+ $ping_write_content = strtolower($_POST['ping']);
$ping_write_content = trim($ping_write_content);
$ping_write_content = htmlentities($ping_write_content, ENT_NOQUOTES);
$fp_ping_txt = fopen("data/ping.txt","w");
@@ -109,128 +109,128 @@ if (isset($_REQUEST['ping']) and !empty($_REQUEST['ping']) and (file_get_content
fclose($fp_ping_txt);
}
-if (!isset($_REQUEST['ping']) or empty($_REQUEST['ping'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ping']) or empty($_POST['ping'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ping.txt")) {
unlink("data/ping.txt");
}
}
}
-if (isset($_REQUEST['nocomment']) and !empty($_REQUEST['nocomment']) and ($_REQUEST['nocomment'] == "on") and !file_exists("data/nocomment.txt")) {
+if (isset($_POST['nocomment']) and !empty($_POST['nocomment']) and ($_POST['nocomment'] == "on") and !file_exists("data/nocomment.txt")) {
touch("data/nocomment.txt");
}
-if (!isset($_REQUEST['nocomment']) or empty($_REQUEST['nocomment'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nocomment']) or empty($_POST['nocomment'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nocomment.txt")) {
unlink("data/nocomment.txt");
}
}
}
-if (isset($_REQUEST['nak']) and !empty($_REQUEST['nak']) and ($_REQUEST['nak'] == "on") and !file_exists("data/nak.txt")) {
+if (isset($_POST['nak']) and !empty($_POST['nak']) and ($_POST['nak'] == "on") and !file_exists("data/nak.txt")) {
touch("data/nak.txt");
}
-if (!isset($_REQUEST['nak']) or empty($_REQUEST['nak'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nak']) or empty($_POST['nak'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nak.txt")) {
unlink("data/nak.txt");
}
}
}
-if (isset($_REQUEST['nopdf']) and !empty($_REQUEST['nopdf']) and ($_REQUEST['nopdf'] == "on") and !file_exists("data/nopdf.txt")) {
+if (isset($_POST['nopdf']) and !empty($_POST['nopdf']) and ($_POST['nopdf'] == "on") and !file_exists("data/nopdf.txt")) {
touch("data/nopdf.txt");
}
-if (!isset($_REQUEST['nopdf']) or empty($_REQUEST['nopdf'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nopdf']) or empty($_POST['nopdf'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nopdf.txt")) {
unlink("data/nopdf.txt");
}
}
}
-if (isset($_REQUEST['xrand']) and !empty($_REQUEST['xrand']) and ($_REQUEST['xrand'] == "on") and !file_exists("data/xrand.txt")) {
+if (isset($_POST['xrand']) and !empty($_POST['xrand']) and ($_POST['xrand'] == "on") and !file_exists("data/xrand.txt")) {
touch("data/xrand.txt");
}
-if (!isset($_REQUEST['xrand']) or empty($_REQUEST['xrand'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xrand']) or empty($_POST['xrand'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xrand.txt")) {
unlink("data/xrand.txt");
}
}
}
-if (isset($_REQUEST['xarc']) and !empty($_REQUEST['xarc']) and ($_REQUEST['xarc'] == "on") and !file_exists("data/xarc.txt")) {
+if (isset($_POST['xarc']) and !empty($_POST['xarc']) and ($_POST['xarc'] == "on") and !file_exists("data/xarc.txt")) {
touch("data/xarc.txt");
}
-if (!isset($_REQUEST['xarc']) or empty($_REQUEST['xarc'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xarc']) or empty($_POST['xarc'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xarc.txt")) {
unlink("data/xarc.txt");
}
}
}
-if (isset($_REQUEST['xcat']) and !empty($_REQUEST['xcat']) and ($_REQUEST['xcat'] == "on") and !file_exists("data/xcat.txt")) {
+if (isset($_POST['xcat']) and !empty($_POST['xcat']) and ($_POST['xcat'] == "on") and !file_exists("data/xcat.txt")) {
touch("data/xcat.txt");
}
-if (!isset($_REQUEST['xcat']) or empty($_REQUEST['xcat'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xcat']) or empty($_POST['xcat'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xcat.txt")) {
unlink("data/xcat.txt");
}
}
}
-if (isset($_REQUEST['nocat']) and !empty($_REQUEST['nocat']) and ($_REQUEST['nocat'] == "on") and !file_exists("data/nocat.txt")) {
+if (isset($_POST['nocat']) and !empty($_POST['nocat']) and ($_POST['nocat'] == "on") and !file_exists("data/nocat.txt")) {
touch("data/nocat.txt");
}
-if (!isset($_REQUEST['nocat']) or empty($_REQUEST['nocat'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nocat']) or empty($_POST['nocat'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nocat.txt")) {
unlink("data/nocat.txt");
}
}
}
-if (isset($_REQUEST['round']) and !empty($_REQUEST['round']) and ($_REQUEST['round'] == "on") and !file_exists("data/round.txt")) {
+if (isset($_POST['round']) and !empty($_POST['round']) and ($_POST['round'] == "on") and !file_exists("data/round.txt")) {
touch("data/round.txt");
}
-if (!isset($_REQUEST['round']) or empty($_REQUEST['round'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['round']) or empty($_POST['round'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/round.txt")) {
unlink("data/round.txt");
}
}
}
-if (isset($_REQUEST['center']) and !empty($_REQUEST['center']) and ($_REQUEST['center'] == "on") and !file_exists("data/center.txt")) {
+if (isset($_POST['center']) and !empty($_POST['center']) and ($_POST['center'] == "on") and !file_exists("data/center.txt")) {
touch("data/center.txt");
}
-if (!isset($_REQUEST['center']) or empty($_REQUEST['center'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['center']) or empty($_POST['center'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/center.txt")) {
unlink("data/center.txt");
}
}
}
-if (isset($_REQUEST['old']) and !empty($_REQUEST['old']) and ($_REQUEST['old'] == "on") and !file_exists("data/old.txt")) {
+if (isset($_POST['old']) and !empty($_POST['old']) and ($_POST['old'] == "on") and !file_exists("data/old.txt")) {
touch("data/old.txt");
}
-if (!isset($_REQUEST['old']) or empty($_REQUEST['old'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['old']) or empty($_POST['old'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/old.txt")) {
unlink("data/old.txt");
}
@@ -239,12 +239,12 @@ if (!isset($_REQUEST['old']) or empty($_REQUEST['old'])) {
// start of wiki mod (20071130)
-if (isset($_REQUEST['wiki']) and !empty($_REQUEST['wiki']) and ($_REQUEST['wiki'] == "on") and !file_exists("data/wiki.txt")) {
+if (isset($_POST['wiki']) and !empty($_POST['wiki']) and ($_POST['wiki'] == "on") and !file_exists("data/wiki.txt")) {
touch("data/wiki.txt");
}
-if (!isset($_REQUEST['wiki']) or empty($_REQUEST['wiki'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['wiki']) or empty($_POST['wiki'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/wiki.txt")) {
unlink("data/wiki.txt");
}
@@ -253,20 +253,20 @@ if (!isset($_REQUEST['wiki']) or empty($_REQUEST['wiki'])) {
// end of wiki mod (20071130)
-if (isset($_REQUEST['pf']) and !empty($_REQUEST['pf']) and ($_REQUEST['pf'] == "on") and !file_exists("data/pf.txt")) {
+if (isset($_POST['pf']) and !empty($_POST['pf']) and ($_POST['pf'] == "on") and !file_exists("data/pf.txt")) {
touch("data/pf.txt");
}
-if (!isset($_REQUEST['pf']) or empty($_REQUEST['pf'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf']) or empty($_POST['pf'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf.txt")) {
unlink("data/pf.txt");
}
}
}
-if (isset($_REQUEST['pf_badwords']) and !empty($_REQUEST['pf_badwords']) and (file_get_contents("data/pf-badwords.txt") != $_REQUEST['pf_badwords'])) {
- $pf_badwords_write_content = strtolower($_REQUEST['pf_badwords']);
+if (isset($_POST['pf_badwords']) and !empty($_POST['pf_badwords']) and (file_get_contents("data/pf-badwords.txt") != $_POST['pf_badwords'])) {
+ $pf_badwords_write_content = strtolower($_POST['pf_badwords']);
$pf_badwords_write_content = str_replace("\n","|",$pf_badwords_write_content);
$pf_badwords_write_content = str_replace("\r","|",$pf_badwords_write_content);
$pf_badwords_write_content = str_replace("||","|",$pf_badwords_write_content);
@@ -276,168 +276,168 @@ if (isset($_REQUEST['pf_badwords']) and !empty($_REQUEST['pf_badwords']) and (fi
fclose($fp_pf_badwords_txt);
}
-if (!isset($_REQUEST['pf_badwords']) or empty($_REQUEST['pf_badwords'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf_badwords']) or empty($_POST['pf_badwords'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf-badwords.txt")) {
unlink("data/pf-badwords.txt");
}
}
}
-if (isset($_REQUEST['pf_censor']) and !empty($_REQUEST['pf_censor']) and (file_get_contents("data/pf-censor.txt") != $_REQUEST['pf_censor'])) {
- $pf_censor_write_content = strtolower($_REQUEST['pf_censor']);
+if (isset($_POST['pf_censor']) and !empty($_POST['pf_censor']) and (file_get_contents("data/pf-censor.txt") != $_POST['pf_censor'])) {
+ $pf_censor_write_content = strtolower($_POST['pf_censor']);
$pf_censor_write_content = trim($pf_censor_write_content);
$fp_pf_censor_txt = fopen("data/pf-censor.txt","w");
fwrite($fp_pf_censor_txt,$pf_censor_write_content);
fclose($fp_pf_censor_txt);
}
-if (!isset($_REQUEST['pf_censor']) or empty($_REQUEST['pf_censor'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf_censor']) or empty($_POST['pf_censor'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf-censor.txt")) {
unlink("data/pf-censor.txt");
}
}
}
-if (isset($_REQUEST['bb']) and !empty($_REQUEST['bb']) and ($_REQUEST['bb'] == "on") and !file_exists("data/bb.txt")) {
+if (isset($_POST['bb']) and !empty($_POST['bb']) and ($_POST['bb'] == "on") and !file_exists("data/bb.txt")) {
touch("data/bb.txt");
}
-if (!isset($_REQUEST['bb']) or empty($_REQUEST['bb'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb']) or empty($_POST['bb'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb.txt")) {
unlink("data/bb.txt");
}
}
}
-if (isset($_REQUEST['reg']) and !empty($_REQUEST['reg']) and ($_REQUEST['reg'] == "on") and !file_exists("data/reg.txt")) {
+if (isset($_POST['reg']) and !empty($_POST['reg']) and ($_POST['reg'] == "on") and !file_exists("data/reg.txt")) {
touch("data/reg.txt");
}
-if (!isset($_REQUEST['reg']) or empty($_REQUEST['reg'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['reg']) or empty($_POST['reg'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/reg.txt")) {
unlink("data/reg.txt");
}
}
}
-if (isset($_REQUEST['xapp']) and !empty($_REQUEST['xapp']) and ($_REQUEST['xapp'] == "on") and !file_exists("data/xapp.txt")) {
+if (isset($_POST['xapp']) and !empty($_POST['xapp']) and ($_POST['xapp'] == "on") and !file_exists("data/xapp.txt")) {
touch("data/xapp.txt");
}
-if (!isset($_REQUEST['xapp']) or empty($_REQUEST['xapp'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xapp']) or empty($_POST['xapp'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xapp.txt")) {
unlink("data/xapp.txt");
}
}
}
-if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "on") and !file_exists("data/reset.txt")) {
+if (isset($_POST['reset']) and !empty($_POST['reset']) and ($_POST['reset'] == "on") and !file_exists("data/reset.txt")) {
touch("data/reset.txt");
}
-if (!isset($_REQUEST['reset']) or empty($_REQUEST['reset'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['reset']) or empty($_POST['reset'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/reset.txt")) {
unlink("data/reset.txt");
}
}
}
-if (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on") and !file_exists("data/member.txt")) {
+if (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on") and !file_exists("data/member.txt")) {
touch("data/member.txt");
}
-if (!isset($_REQUEST['member']) or empty($_REQUEST['member'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['member']) or empty($_POST['member'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/member.txt")) {
unlink("data/member.txt");
}
}
}
-if (isset($_REQUEST['ml']) and !empty($_REQUEST['ml']) and ($_REQUEST['ml'] == "on") and !file_exists("data/ml.txt")) {
+if (isset($_POST['ml']) and !empty($_POST['ml']) and ($_POST['ml'] == "on") and !file_exists("data/ml.txt")) {
touch("data/ml.txt");
}
-if (!isset($_REQUEST['ml']) or empty($_REQUEST['ml'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml']) or empty($_POST['ml'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml.txt")) {
unlink("data/ml.txt");
}
}
}
-if (isset($_REQUEST['stats']) and !empty($_REQUEST['stats']) and ($_REQUEST['stats'] == "on") and !file_exists("data/bb-stats.txt")) {
+if (isset($_POST['stats']) and !empty($_POST['stats']) and ($_POST['stats'] == "on") and !file_exists("data/bb-stats.txt")) {
touch("data/bb-stats.txt");
}
-if (!isset($_REQUEST['stats']) or empty($_REQUEST['stats'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['stats']) or empty($_POST['stats'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-stats.txt")) {
unlink("data/bb-stats.txt");
}
}
}
-if (isset($_REQUEST['summary']) and !empty($_REQUEST['summary']) and ($_REQUEST['summary'] == "on") and !file_exists("data/bb-summary.txt")) {
+if (isset($_POST['summary']) and !empty($_POST['summary']) and ($_POST['summary'] == "on") and !file_exists("data/bb-summary.txt")) {
touch("data/bb-summary.txt");
}
-if (!isset($_REQUEST['summary']) or empty($_REQUEST['summary'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['summary']) or empty($_POST['summary'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-summary.txt")) {
unlink("data/bb-summary.txt");
}
}
}
-if (isset($_REQUEST['rank']) and !empty($_REQUEST['rank']) and ($_REQUEST['rank'] == "on") and !file_exists("data/rank.txt")) {
+if (isset($_POST['rank']) and !empty($_POST['rank']) and ($_POST['rank'] == "on") and !file_exists("data/rank.txt")) {
touch("data/rank.txt");
}
-if (!isset($_REQUEST['rank']) or empty($_REQUEST['rank'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['rank']) or empty($_POST['rank'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/rank.txt")) {
unlink("data/rank.txt");
}
}
}
-if (isset($_REQUEST['sigs']) and !empty($_REQUEST['sigs']) and ($_REQUEST['sigs'] == "on") and !file_exists("data/bb-sig.txt")) {
+if (isset($_POST['sigs']) and !empty($_POST['sigs']) and ($_POST['sigs'] == "on") and !file_exists("data/bb-sig.txt")) {
touch("data/bb-sig.txt");
}
-if (!isset($_REQUEST['sigs']) or empty($_REQUEST['sigs'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['sigs']) or empty($_POST['sigs'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-sig.txt")) {
unlink("data/bb-sig.txt");
}
}
}
-if (isset($_REQUEST['avatars']) and !empty($_REQUEST['avatars']) and ($_REQUEST['avatars'] == "on") and !file_exists("data/avatar.txt")) {
+if (isset($_POST['avatars']) and !empty($_POST['avatars']) and ($_POST['avatars'] == "on") and !file_exists("data/avatar.txt")) {
touch("data/avatar.txt");
}
-if (!isset($_REQUEST['avatars']) or empty($_REQUEST['avatars'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['avatars']) or empty($_POST['avatars'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/avatar.txt")) {
unlink("data/avatar.txt");
}
}
}
-if ((!isset($_REQUEST['sig']) or empty($_REQUEST['sig'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/sig.txt");
}
-if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
- $sig = str_replace("[b]","<b>",$_REQUEST['sig']);
+if (isset($_POST['sig']) and !empty($_POST['sig'])) {
+ $sig = str_replace("[b]","<b>",$_POST['sig']);
$sig = str_replace("[/b]","</b>",$sig);
$sig = str_replace("[i]","<i>",$sig);
$sig = str_replace("[/i]","</i>",$sig);
@@ -457,84 +457,84 @@ if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
fclose($fp_sig_txt);
}
-if (isset($_REQUEST['pass_len']) and !empty($_REQUEST['pass_len']) and is_numeric($_REQUEST['pass_len']) and ($_REQUEST['pass_len'] > 0) and (file_get_contents("data/bb-passlen.txt") != $_REQUEST['pass_len'])) {
- $pass_len_write_content = number_format($_REQUEST['pass_len'],0,'.','');
+if (isset($_POST['pass_len']) and !empty($_POST['pass_len']) and is_numeric($_POST['pass_len']) and ($_POST['pass_len'] > 0) and (file_get_contents("data/bb-passlen.txt") != $_POST['pass_len'])) {
+ $pass_len_write_content = number_format($_POST['pass_len'],0,'.','');
$fp_pass_len_txt = fopen("data/bb-passlen.txt","w");
fwrite($fp_pass_len_txt,$pass_len_write_content);
fclose($fp_pass_len_txt);
}
-if (!isset($_REQUEST['pass_len']) or empty($_REQUEST['pass_len']) or !is_numeric($_REQUEST['pass_len']) or ($_REQUEST['pass_len'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pass_len']) or empty($_POST['pass_len']) or !is_numeric($_POST['pass_len']) or ($_POST['pass_len'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-passlen.txt")) {
unlink("data/bb-passlen.txt");
}
}
}
-if (isset($_REQUEST['min_age']) and !empty($_REQUEST['min_age']) and is_numeric($_REQUEST['min_age']) and ($_REQUEST['min_age'] > 0) and (file_get_contents("data/bb-min-age.txt") != $_REQUEST['min_age'])) {
- $min_age_write_content = number_format($_REQUEST['min_age'],0,'.','');
+if (isset($_POST['min_age']) and !empty($_POST['min_age']) and is_numeric($_POST['min_age']) and ($_POST['min_age'] > 0) and (file_get_contents("data/bb-min-age.txt") != $_POST['min_age'])) {
+ $min_age_write_content = number_format($_POST['min_age'],0,'.','');
$fp_min_age_txt = fopen("data/bb-min-age.txt","w");
fwrite($fp_min_age_txt,$min_age_write_content);
fclose($fp_min_age_txt);
}
-if (!isset($_REQUEST['min_age']) or empty($_REQUEST['min_age']) or !is_numeric($_REQUEST['min_age']) or ($_REQUEST['min_age'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['min_age']) or empty($_POST['min_age']) or !is_numeric($_POST['min_age']) or ($_POST['min_age'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-min-age.txt")) {
unlink("data/bb-min-age.txt");
}
}
}
-if (isset($_REQUEST['max_age']) and !empty($_REQUEST['max_age']) and is_numeric($_REQUEST['max_age']) and ($_REQUEST['max_age'] > 0) and (file_get_contents("data/bb-max-age.txt") != $_REQUEST['max_age'])) {
- $max_age_write_content = number_format($_REQUEST['max_age'],0,'.','');
+if (isset($_POST['max_age']) and !empty($_POST['max_age']) and is_numeric($_POST['max_age']) and ($_POST['max_age'] > 0) and (file_get_contents("data/bb-max-age.txt") != $_POST['max_age'])) {
+ $max_age_write_content = number_format($_POST['max_age'],0,'.','');
$fp_max_age_txt = fopen("data/bb-max-age.txt","w");
fwrite($fp_max_age_txt,$max_age_write_content);
fclose($fp_max_age_txt);
}
-if (!isset($_REQUEST['max_age']) or empty($_REQUEST['max_age']) or !is_numeric($_REQUEST['max_age']) or ($_REQUEST['max_age'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['max_age']) or empty($_POST['max_age']) or !is_numeric($_POST['max_age']) or ($_POST['max_age'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-max-age.txt")) {
unlink("data/bb-max-age.txt");
}
}
}
-if (isset($_REQUEST['bb_idle']) and !empty($_REQUEST['bb_idle']) and is_numeric($_REQUEST['bb_idle']) and ($_REQUEST['bb_idle'] > 0) and (file_get_contents("data/bb-idle.txt") != $_REQUEST['bb_idle'])) {
- $bb_idle_write_content = number_format($_REQUEST['bb_idle'],0,'.','');
+if (isset($_POST['bb_idle']) and !empty($_POST['bb_idle']) and is_numeric($_POST['bb_idle']) and ($_POST['bb_idle'] > 0) and (file_get_contents("data/bb-idle.txt") != $_POST['bb_idle'])) {
+ $bb_idle_write_content = number_format($_POST['bb_idle'],0,'.','');
$fp_bb_idle_txt = fopen("data/bb-idle.txt","w");
fwrite($fp_bb_idle_txt,$bb_idle_write_content);
fclose($fp_bb_idle_txt);
}
-if (!isset($_REQUEST['bb_idle']) or empty($_REQUEST['bb_idle']) or !is_numeric($_REQUEST['bb_idle']) or ($_REQUEST['bb_idle'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_idle']) or empty($_POST['bb_idle']) or !is_numeric($_POST['bb_idle']) or ($_POST['bb_idle'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-idle.txt")) {
unlink("data/bb-idle.txt");
}
}
}
-if (isset($_REQUEST['bb_reserved']) and !empty($_REQUEST['bb_reserved']) and (file_get_contents("data/bb-reserved.txt") != $_REQUEST['bb_reserved'])) {
- $bb_reserved_write_content = strtolower($_REQUEST['bb_reserved']);
+if (isset($_POST['bb_reserved']) and !empty($_POST['bb_reserved']) and (file_get_contents("data/bb-reserved.txt") != $_POST['bb_reserved'])) {
+ $bb_reserved_write_content = strtolower($_POST['bb_reserved']);
$bb_reserved_write_content = trim($bb_reserved_write_content);
$fp_bb_reserved_txt = fopen("data/bb-reserved.txt","w");
fwrite($fp_bb_reserved_txt,$bb_reserved_write_content);
fclose($fp_bb_reserved_txt);
}
-if (!isset($_REQUEST['bb_reserved']) or empty($_REQUEST['bb_reserved'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_reserved']) or empty($_POST['bb_reserved'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-reserved.txt")) {
unlink("data/bb-reserved.txt");
}
}
}
-if (isset($_REQUEST['bb_disclaimer']) and !empty($_REQUEST['bb_disclaimer']) and (file_get_contents("data/bb-disclaimer.txt") != $_REQUEST['bb_disclaimer'])) {
- $bb_disclaimer_write_content = ucfirst($_REQUEST['bb_disclaimer']);
+if (isset($_POST['bb_disclaimer']) and !empty($_POST['bb_disclaimer']) and (file_get_contents("data/bb-disclaimer.txt") != $_POST['bb_disclaimer'])) {
+ $bb_disclaimer_write_content = ucfirst($_POST['bb_disclaimer']);
$bb_disclaimer_write_content = str_replace("\n","<br>",$bb_disclaimer_write_content);
$bb_disclaimer_write_content = trim($bb_disclaimer_write_content);
$fp_bb_disclaimer_txt = fopen("data/bb-disclaimer.txt","w");
@@ -542,16 +542,16 @@ if (isset($_REQUEST['bb_disclaimer']) and !empty($_REQUEST['bb_disclaimer']) and
fclose($fp_bb_disclaimer_txt);
}
-if (!isset($_REQUEST['bb_disclaimer']) or empty($_REQUEST['bb_disclaimer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_disclaimer']) or empty($_POST['bb_disclaimer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-disclaimer.txt")) {
unlink("data/bb-disclaimer.txt");
}
}
}
-if (isset($_REQUEST['ml_reply2']) and !empty($_REQUEST['ml_reply2']) and (file_get_contents("data/ml-reply2.txt") != $_REQUEST['ml_reply2']) and (ereg("@", $_REQUEST['ml_reply2'])) and (ereg("\.", $_REQUEST['ml_reply2']))) {
- $ml_reply2_write_content = strtolower($_REQUEST['ml_reply2']);
+if (isset($_POST['ml_reply2']) and !empty($_POST['ml_reply2']) and (file_get_contents("data/ml-reply2.txt") != $_POST['ml_reply2']) and (ereg("@", $_POST['ml_reply2'])) and (ereg("\.", $_POST['ml_reply2']))) {
+ $ml_reply2_write_content = strtolower($_POST['ml_reply2']);
$ml_reply2_write_content = trim($ml_reply2_write_content);
$ml_reply2_write_content = htmlentities($ml_reply2_write_content, ENT_NOQUOTES);
$fp_ml_reply2_txt = fopen("data/ml-reply2.txt","w");
@@ -559,69 +559,69 @@ if (isset($_REQUEST['ml_reply2']) and !empty($_REQUEST['ml_reply2']) and (file_g
fclose($fp_ml_reply2_txt);
}
-if (!isset($_REQUEST['ml_reply2']) or empty($_REQUEST['ml_reply2'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_reply2']) or empty($_POST['ml_reply2'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-reply2.txt")) {
unlink("data/ml-reply2.txt");
}
}
}
-if (isset($_REQUEST['ml_prepend']) and !empty($_REQUEST['ml_prepend']) and (file_get_contents("data/ml-prepend.txt") != $_REQUEST['ml_prepend'])) {
- $ml_prepend_write_content = ucfirst($_REQUEST['ml_prepend']);
+if (isset($_POST['ml_prepend']) and !empty($_POST['ml_prepend']) and (file_get_contents("data/ml-prepend.txt") != $_POST['ml_prepend'])) {
+ $ml_prepend_write_content = ucfirst($_POST['ml_prepend']);
$ml_prepend_write_content = trim($ml_prepend_write_content);
$fp_ml_prepend_txt = fopen("data/ml-prepend.txt","w");
fwrite($fp_ml_prepend_txt,$ml_prepend_write_content);
fclose($fp_ml_prepend_txt);
}
-if (!isset($_REQUEST['ml_prepend']) or empty($_REQUEST['ml_prepend'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_prepend']) or empty($_POST['ml_prepend'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-prepend.txt")) {
unlink("data/ml-prepend.txt");
}
}
}
-if (isset($_REQUEST['ml_header']) and !empty($_REQUEST['ml_header']) and (file_get_contents("data/ml-header.txt") != $_REQUEST['ml_header'])) {
- $ml_header_write_content = ucfirst($_REQUEST['ml_header']);
+if (isset($_POST['ml_header']) and !empty($_POST['ml_header']) and (file_get_contents("data/ml-header.txt") != $_POST['ml_header'])) {
+ $ml_header_write_content = ucfirst($_POST['ml_header']);
$ml_header_write_content = trim($ml_header_write_content);
$fp_ml_header_txt = fopen("data/ml-header.txt","w");
fwrite($fp_ml_header_txt,$ml_header_write_content);
fclose($fp_ml_header_txt);
}
-if (!isset($_REQUEST['ml_header']) or empty($_REQUEST['ml_header'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_header']) or empty($_POST['ml_header'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-header.txt")) {
unlink("data/ml-header.txt");
}
}
}
-if (isset($_REQUEST['ml_footer']) and !empty($_REQUEST['ml_footer']) and (file_get_contents("data/ml-footer.txt") != $_REQUEST['ml_footer'])) {
- $ml_footer_write_content = ucfirst($_REQUEST['ml_footer']);
+if (isset($_POST['ml_footer']) and !empty($_POST['ml_footer']) and (file_get_contents("data/ml-footer.txt") != $_POST['ml_footer'])) {
+ $ml_footer_write_content = ucfirst($_POST['ml_footer']);
$ml_footer_write_content = trim($ml_footer_write_content);
$fp_ml_footer_txt = fopen("data/ml-footer.txt","w");
fwrite($fp_ml_footer_txt,$ml_footer_write_content);
fclose($fp_ml_footer_txt);
}
-if (!isset($_REQUEST['ml_footer']) or empty($_REQUEST['ml_footer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_footer']) or empty($_POST['ml_footer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-footer.txt")) {
unlink("data/ml-footer.txt");
}
}
}
-if (isset($_REQUEST['del_favicon']) and !empty($_REQUEST['del_favicon']) and ($_REQUEST['del_favicon'] == "on")) {
+if (isset($_POST['del_favicon']) and !empty($_POST['del_favicon']) and ($_POST['del_favicon'] == "on")) {
if (file_exists("favicon.ico")) {
unlink("favicon.ico");
}
}
-if (isset($_REQUEST['del_picture']) and !empty($_REQUEST['del_picture']) and ($_REQUEST['del_picture'] == "on")) {
+if (isset($_POST['del_picture']) and !empty($_POST['del_picture']) and ($_POST['del_picture'] == "on")) {
if (file_exists("images/profile.gif")) {
unlink("images/profile.gif");
}
@@ -635,7 +635,7 @@ if (isset($_REQUEST['del_picture']) and !empty($_REQUEST['del_picture']) and ($_
}
}
-if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_REQUEST['del_avatar'] == "on")) {
+if (isset($_POST['del_avatar']) and !empty($_POST['del_avatar']) and ($_POST['del_avatar'] == "on")) {
if (file_exists("images/avatar.gif")) {
unlink("images/avatar.gif");
}
@@ -649,39 +649,39 @@ if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_RE
}
}
-if (isset($_REQUEST['bg_scroll']) and !empty($_REQUEST['bg_scroll']) and ($_REQUEST['bg_scroll'] == "on") and !file_exists("data/bg-scroll.txt")) {
+if (isset($_POST['bg_scroll']) and !empty($_POST['bg_scroll']) and ($_POST['bg_scroll'] == "on") and !file_exists("data/bg-scroll.txt")) {
touch("data/bg-scroll.txt");
}
-if (!isset($_REQUEST['bg_scroll']) or empty($_REQUEST['bg_scroll'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bg_scroll']) or empty($_POST['bg_scroll'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bg-scroll.txt")) {
unlink("data/bg-scroll.txt");
}
}
}
-if (isset($_REQUEST['bg_repeat']) and !empty($_REQUEST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_REQUEST['bg_repeat']) and ($_REQUEST['bg_repeat'] != "repeat")) {
+if (isset($_POST['bg_repeat']) and !empty($_POST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_POST['bg_repeat']) and ($_POST['bg_repeat'] != "repeat")) {
$fp_bg_repeat_txt = fopen("data/bg-repeat.txt","w");
- fwrite($fp_bg_repeat_txt,$_REQUEST['bg_repeat']);
+ fwrite($fp_bg_repeat_txt,$_POST['bg_repeat']);
fclose($fp_bg_repeat_txt);
}
-if (isset($_REQUEST['bg_repeat']) and !empty($_REQUEST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_REQUEST['bg_repeat']) and ($_REQUEST['bg_repeat'] == "repeat") and file_exists("data/bg-repeat.txt")) {
+if (isset($_POST['bg_repeat']) and !empty($_POST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_POST['bg_repeat']) and ($_POST['bg_repeat'] == "repeat") and file_exists("data/bg-repeat.txt")) {
unlink("data/bg-repeat.txt");
}
-if (isset($_REQUEST['bg_position']) and !empty($_REQUEST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_REQUEST['bg_position']) and ($_REQUEST['bg_position'] != "top left")) {
+if (isset($_POST['bg_position']) and !empty($_POST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_POST['bg_position']) and ($_POST['bg_position'] != "top left")) {
$fp_bg_position_txt = fopen("data/bg-position.txt","w");
- fwrite($fp_bg_position_txt,$_REQUEST['bg_position']);
+ fwrite($fp_bg_position_txt,$_POST['bg_position']);
fclose($fp_bg_position_txt);
}
-if (isset($_REQUEST['bg_position']) and !empty($_REQUEST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_REQUEST['bg_position']) and ($_REQUEST['bg_position'] == "top left") and file_exists("data/bg-position.txt")) {
+if (isset($_POST['bg_position']) and !empty($_POST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_POST['bg_position']) and ($_POST['bg_position'] == "top left") and file_exists("data/bg-position.txt")) {
unlink("data/bg-position.txt");
}
-if (isset($_REQUEST['del_background']) and !empty($_REQUEST['del_background']) and ($_REQUEST['del_background'] == "on")) {
+if (isset($_POST['del_background']) and !empty($_POST['del_background']) and ($_POST['del_background'] == "on")) {
if (file_exists("images/background.gif")) {
unlink("images/background.gif");
}
@@ -893,16 +893,16 @@ if (isset($_FILES['background']) and !empty($_FILES['background'])) {
}
}
-if (isset($_REQUEST['profile']) and !empty($_REQUEST['profile']) and (file_get_contents("data/profile.txt") != $_REQUEST['profile'])) {
- $profile_write_content = ucfirst($_REQUEST['profile']);
+if (isset($_POST['profile']) and !empty($_POST['profile']) and (file_get_contents("data/profile.txt") != $_POST['profile'])) {
+ $profile_write_content = ucfirst($_POST['profile']);
$fp_profile_txt = fopen("data/profile.php","w");
fwrite($fp_profile_txt,$profile_write_content);
fclose($fp_profile_txt);
}
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and (file_get_contents("data/username.txt") != $_REQUEST['username'])) {
+if (isset($_POST['username']) and !empty($_POST['username']) and (file_get_contents("data/username.txt") != $_POST['username'])) {
$fp_username_txt = fopen("data/username.txt","w");
- fwrite($fp_username_txt,$_REQUEST['username']);
+ fwrite($fp_username_txt,$_POST['username']);
fclose($fp_username_txt);
$login_url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/login.php";
$login_url = str_replace("//login.php", "/login.php", $login_url);
@@ -1227,11 +1227,11 @@ if (file_exists("data/bb-idle.txt")) {
<tr><td></td><td><input class=input type=submit value="click here to activate new settings"></td></tr>
<?php
-if (isset($_REQUEST['passwd_new']) and !empty($_REQUEST['passwd_new']) and isset($_REQUEST['passwd_cur']) and !empty($_REQUEST['passwd_cur']) and isset($_REQUEST['passwd_conf']) and !empty($_REQUEST['passwd_conf']) and ($_REQUEST['passwd_new'] == $_REQUEST['passwd_conf'])) {
- $passwd_new_crypt = sha1($_REQUEST['passwd_new']);
+if (isset($_POST['passwd_new']) and !empty($_POST['passwd_new']) and isset($_POST['passwd_cur']) and !empty($_POST['passwd_cur']) and isset($_POST['passwd_conf']) and !empty($_POST['passwd_conf']) and ($_POST['passwd_new'] == $_POST['passwd_conf'])) {
+ $passwd_new_crypt = sha1($_POST['passwd_new']);
$passwd_new_crypt = md5($passwd_new_crypt);
$passwd_new_crypt = crypt($passwd_new_crypt, $passwd_new_crypt);
- $passwd_cur_crypt = sha1($_REQUEST['passwd_cur']);
+ $passwd_cur_crypt = sha1($_POST['passwd_cur']);
$passwd_cur_crypt = md5($passwd_cur_crypt);
$passwd_cur_crypt = crypt($passwd_cur_crypt, $passwd_cur_crypt);
diff --git a/sitemap.php b/sitemap.php
index 483017e..160448a 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -2,20 +2,6 @@
error_reporting(E_ERROR);
-function stripslashes_array($data) {
- if (is_array($data)){
- foreach ($data as $key => $value){
- $data[$key] = stripslashes_array($value);
- }
- return $data;
- }
- else{
- return stripslashes($data);
- }
-}
-
-$_REQUEST = stripslashes_array($_REQUEST);
-
$dir = "data/items";
if ($dh_sitemap_items = opendir($dir)) {
tree 5935b42ac40f029b5d6bcd0b7be0cceccde51b07
parent f5cd6cfe5f21bfa500d85718b65fa27ba6ffc72b
author Engels Antonio <engels@majcms.org> 1277314194 +0800
committer Engels Antonio <engels@majcms.org> 1277314194 +0800
maj-0.14-20080124-bb.zip
diff --git a/add.php b/add.php
index 962e0cd..6ee193b 100644
--- a/add.php
+++ b/add.php
@@ -17,10 +17,10 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
-if (isset($_REQUEST['title_input']) and isset($_REQUEST['body_input']) and !empty($_REQUEST['title_input']) and !empty($_REQUEST['body_input'])) {
+if (isset($_POST['title_input']) and isset($_POST['body_input']) and !empty($_POST['title_input']) and !empty($_POST['body_input'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
@@ -404,12 +404,12 @@ if ($_SESSION['logged_in'] == file_get_contents("data/username.txt")) {
<?php
-if (!isset($_REQUEST['title_input']) or !isset($_REQUEST['body_input']) or empty($_REQUEST['title_input']) or empty($_REQUEST['body_input'])) {
+if (!isset($_POST['title_input']) or !isset($_POST['body_input']) or empty($_POST['title_input']) or empty($_POST['body_input'])) {
// echo "<p>no input!</p>";
exit();
}
-if (!isset($_REQUEST['select_year']) or !isset($_REQUEST['select_month']) or !isset($_REQUEST['select_day']) or !isset($_REQUEST['select_hour']) or !isset($_REQUEST['select_min']) or empty($_REQUEST['select_year']) or empty($_REQUEST['select_month']) or empty($_REQUEST['select_day']) or empty($_REQUEST['select_hour']) or empty($_REQUEST['select_min'])) {
+if (!isset($_POST['select_year']) or !isset($_POST['select_month']) or !isset($_POST['select_day']) or !isset($_POST['select_hour']) or !isset($_POST['select_min']) or empty($_POST['select_year']) or empty($_POST['select_month']) or empty($_POST['select_day']) or empty($_POST['select_hour']) or empty($_POST['select_min'])) {
$entry = date("YmdHis", time() + $offset);
@@ -424,13 +424,13 @@ echo '<p>' . $entry . '<br>' . $timestamp . '<br>' . date("l, M j, Y, g:i A") .
}
else {
-$entry = $_REQUEST['select_year'] . $_REQUEST['select_month'] . $_REQUEST['select_day'] . $_REQUEST['select_hour'] . $_REQUEST['select_min'] . $entry_sec;
+$entry = $_POST['select_year'] . $_POST['select_month'] . $_POST['select_day'] . $_POST['select_hour'] . $_POST['select_min'] . $entry_sec;
// GNU date format
-//$timestamp = date("D M j H:i:s \P\H\T Y", mktime($_REQUEST['select_hour'], $_REQUEST['select_min'], $entry_sec, $_REQUEST['select_month'], $_REQUEST['select_day'], $_REQUEST['select_year']));
+//$timestamp = date("D M j H:i:s \P\H\T Y", mktime($_POST['select_hour'], $_POST['select_min'], $entry_sec, $_POST['select_month'], $_POST['select_day'], $_POST['select_year']));
// Simple PHP Blog format
-$timestamp = date("l, M j, Y, g:i A", mktime($_REQUEST['select_hour'], $_REQUEST['select_min'], $entry_sec, $_REQUEST['select_month'], $_REQUEST['select_day'], $_REQUEST['select_year']));
+$timestamp = date("l, M j, Y, g:i A", mktime($_POST['select_hour'], $_POST['select_min'], $entry_sec, $_POST['select_month'], $_POST['select_day'], $_POST['select_year']));
echo '<p>' . $entry . '<br>' . $timestamp . '<br>' . date("l, M j, Y, g:i A") . '</p>';
@@ -496,7 +496,7 @@ function reformat_code($defang_code) {
return $defang_code;
}
-$body_write_content = ucfirst($_REQUEST['body_input']);
+$body_write_content = ucfirst($_POST['body_input']);
$body_write_content = str_replace("[html]", '<html>', $body_write_content);
$body_write_content = str_replace("[/html]", '</html>', $body_write_content);
$body_write_content = reformat_html($body_write_content);
@@ -534,7 +534,7 @@ $body_write_content = preg_replace("/<([_\.0-9a-z-]+)@([0-9a-z][0-9a-z-]+)\.([_
mkdir($item_dir);
-$title_write_content = ucfirst($_REQUEST['title_input']);
+$title_write_content = ucfirst($_POST['title_input']);
$title_write_content = str_replace('<','<',$title_write_content);
$title_write_content = str_replace('>','>',$title_write_content);
$title_file = $item_dir . '/title.txt';
@@ -659,7 +659,7 @@ fwrite($fp_body_txt,$body_write_content);
fclose($fp_body_txt);
$sticky_sem = 'data/sticky/' . $entry;
-if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['sticky'] == "on")) {
+if (isset($_POST['sticky']) and !empty($_POST['sticky']) and ($_POST['sticky'] == "on")) {
if (!file_exists("data/sticky")) {
mkdir("data/sticky");
}
@@ -669,20 +669,20 @@ if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['s
}
$display_sem = "data/items/$entry/cat.txt";
-if (isset($_REQUEST['display']) and !empty($_REQUEST['display']) and ($_REQUEST['display'] == "on")) {
+if (isset($_POST['display']) and !empty($_POST['display']) and ($_POST['display'] == "on")) {
if (!file_exists($display_sem)) {
touch($display_sem);
}
}
$private_sem = "data/items/$entry/private.txt";
-if (isset($_REQUEST['private']) and !empty($_REQUEST['private']) and ($_REQUEST['private'] == "on")) {
+if (isset($_POST['private']) and !empty($_POST['private']) and ($_POST['private'] == "on")) {
if (!file_exists($private_sem)) {
touch($private_sem);
}
}
-if (file_exists("data/bb.txt") and file_exists("data/member.txt") and (($_SESSION['logged_in'] != file_get_contents("data/username.txt")) or (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on")))) {
+if (file_exists("data/bb.txt") and file_exists("data/member.txt") and (($_SESSION['logged_in'] != file_get_contents("data/username.txt")) or (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on")))) {
touch("data/items/$entry/member.txt");
}
@@ -707,13 +707,13 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
}
- $ml_subject = ucfirst($_REQUEST['title_input']);
+ $ml_subject = ucfirst($_POST['title_input']);
if (file_exists("data/ml-prepend.txt")) {
$ml_subject = file_get_contents("data/ml-prepend.txt") . " " . $ml_subject;
}
$ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
- $ml_body = ucfirst($_REQUEST['body_input']);
+ $ml_body = ucfirst($_POST['body_input']);
//$ml_body = htmlentities($ml_body,ENT_NOQUOTES);
$ml_body = str_replace('<br />', "\n", $ml_body);
$ml_body = str_replace('<img src=images/smileys/crying.png border=0>', ':((', $ml_body);
@@ -786,7 +786,7 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
}
-if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] == "on")) {
+if (isset($_POST['pdf']) and !empty($_POST['pdf']) and ($_POST['pdf'] == "on")) {
if (!file_exists("data/items/$entry/pdf")) {
mkdir("data/items/$entry/pdf");
}
@@ -927,13 +927,13 @@ if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] =
$pdf->Output($filename);
}
-if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
+if (isset($_POST['category']) and !empty($_POST['category'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- if (file_exists("data/categories/{$_REQUEST['category']}")) {
+ if (file_exists("data/categories/{$_POST['category']}")) {
$fp_category_txt = fopen("data/items/$entry/category.txt","w");
- fwrite($fp_category_txt, $_REQUEST['category']);
+ fwrite($fp_category_txt, $_POST['category']);
fclose($fp_category_txt);
}
}
@@ -946,13 +946,13 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt") and
}
}
-if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
- if (($_REQUEST['passwd'] == "password") or empty($_REQUEST['passwd'])) {
+if (isset($_POST['passwd']) and !empty($_POST['passwd'])) {
+ if (($_POST['passwd'] == "password") or empty($_POST['passwd'])) {
unlink("data/items/$entry/passwd.txt");
}
else {
$fp_passwd_txt = fopen("data/items/$entry/passwd.txt","w");
- $passwd_crypt = sha1($_REQUEST['passwd']);
+ $passwd_crypt = sha1($_POST['passwd']);
$passwd_crypt = md5($passwd_crypt);
$passwd_crypt = crypt($passwd_crypt, $passwd_crypt);
fwrite($fp_passwd_txt, $passwd_crypt);
diff --git a/album.php b/album.php
index be28c90..3f389cd 100644
--- a/album.php
+++ b/album.php
@@ -39,7 +39,7 @@ $login_username = file_get_contents("data/username.txt");
// exit();
//}
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "delete")) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "delete")) {
unlink("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}");
@@ -52,9 +52,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-if (isset($_REQUEST['filename']) and !empty($_REQUEST['filename']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "rename") and !file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['filename']}")) {
+if (isset($_POST['filename']) and !empty($_POST['filename']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "rename") and !file_exists("images/{$_REQUEST['entry']}/album/{$_POST['filename']}")) {
- $filename = strtolower($_REQUEST['filename']);
+ $filename = strtolower($_POST['filename']);
$filename = str_replace(" ","_",$filename);
$filename = trim($filename);
@@ -69,15 +69,15 @@ if (isset($_REQUEST['filename']) and !empty($_REQUEST['filename']) and isset($_S
}
}
-if ((!isset($_REQUEST['caption']) or empty($_REQUEST['caption'])) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "caption")) {
+if ((!isset($_POST['caption']) or empty($_POST['caption'])) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "caption")) {
if (file_exists("data/items/{$_REQUEST['entry']}/album/captions/{$_REQUEST['show']}.txt")) {
unlink("data/items/{$_REQUEST['entry']}/album/captions/{$_REQUEST['show']}.txt");
}
}
-if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "caption")) {
- $caption_put = ucfirst($_REQUEST['caption']);
+if (isset($_POST['caption']) and !empty($_POST['caption']) and isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_POST['edit']) and ($_POST['edit'] == "caption")) {
+ $caption_put = ucfirst($_POST['caption']);
$caption_put = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $caption_put);
$caption_put = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $caption_put);
$caption_put = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $caption_put);
@@ -229,7 +229,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "<input type=hidden name=entry value={$_REQUEST['entry']}>";
echo "<input type=hidden name=show value={$_REQUEST['show']}>";
echo "<input type=hidden name=edit value=rename>";
- echo "<tr bgcolor=#ffffff><td colspan=4><input type=text class=input name=filename value={$_REQUEST['show']}></td></tr>";
+ echo "<tr bgcolor=#ffffff><td colspan=4><input type=text autocomplete=off class=input name=filename value={$_REQUEST['show']}></td></tr>";
echo "<tr bgcolor=#ffffff><td colspan=4><input type=submit class=input value=\"click here to rename image\"></td></tr>";
echo "</form>";
echo "<form enctype=\"multipart\/form-data\" action=\"{$_SERVER['PHP_SELF']}\" method=\"post\">";
diff --git a/cat.php b/cat.php
index ee2bc8a..ffd52b2 100644
--- a/cat.php
+++ b/cat.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -52,67 +52,67 @@ function rmdirr($recurse_dirname)
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['new_id']) and !empty($_REQUEST['new_id'])) {
+if (isset($_POST['new_id']) and !empty($_POST['new_id'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_REQUEST['new_id']))));
+ $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_POST['new_id']))));
if (!file_exists("data/categories/$new_id")) {
mkdir("data/categories/$new_id");
}
- if (isset($_REQUEST['new_title']) and !empty($_REQUEST['new_title'])) {
- $new_title = ucfirst(strip_tags(trim($_REQUEST['new_title'])));
+ if (isset($_POST['new_title']) and !empty($_POST['new_title'])) {
+ $new_title = ucfirst(strip_tags(trim($_POST['new_title'])));
$open_title_file = fopen("data/categories/$new_id/title.txt","w");
fwrite($open_title_file,$new_title);
fclose($open_title_file);
}
}
-if (isset($_REQUEST['cat_del']) and !empty($_REQUEST['cat_del']) and ($_REQUEST['cat_del'] == "on")) {
- rmdirr("data/categories/{$_REQUEST['cat_id']}");
+if (isset($_POST['cat_del']) and !empty($_POST['cat_del']) and ($_POST['cat_del'] == "on")) {
+ rmdirr("data/categories/{$_POST['cat_id']}");
}
-if ((!isset($_REQUEST['cat_hide']) or !empty($_REQUEST['cat_hide'])) and ($_REQUEST['cat_edit'] == "on")) {
- if (file_exists("data/categories/{$_REQUEST['cat_id']}/private.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/private.txt");
+if ((!isset($_POST['cat_hide']) or !empty($_POST['cat_hide'])) and ($_POST['cat_edit'] == "on")) {
+ if (file_exists("data/categories/{$_POST['cat_id']}/private.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/private.txt");
}
}
-if (isset($_REQUEST['cat_hide']) and !empty($_REQUEST['cat_hide']) and ($_REQUEST['cat_hide'] == "on")) {
- if (!file_exists("data/categories/{$_REQUEST['cat_id']}/private.txt")) {
- touch("data/categories/{$_REQUEST['cat_id']}/private.txt");
+if (isset($_POST['cat_hide']) and !empty($_POST['cat_hide']) and ($_POST['cat_hide'] == "on")) {
+ if (!file_exists("data/categories/{$_POST['cat_id']}/private.txt")) {
+ touch("data/categories/{$_POST['cat_id']}/private.txt");
}
}
-if ((!isset($_REQUEST['cat_book']) or !empty($_REQUEST['cat_book'])) and ($_REQUEST['cat_edit'] == "on")) {
- if (file_exists("data/categories/{$_REQUEST['cat_id']}/book.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/book.txt");
+if ((!isset($_POST['cat_book']) or !empty($_POST['cat_book'])) and ($_POST['cat_edit'] == "on")) {
+ if (file_exists("data/categories/{$_POST['cat_id']}/book.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/book.txt");
}
}
-if (isset($_REQUEST['cat_book']) and !empty($_REQUEST['cat_book']) and ($_REQUEST['cat_book'] == "on")) {
- if (!file_exists("data/categories/{$_REQUEST['cat_id']}/book.txt")) {
- touch("data/categories/{$_REQUEST['cat_id']}/book.txt");
+if (isset($_POST['cat_book']) and !empty($_POST['cat_book']) and ($_POST['cat_book'] == "on")) {
+ if (!file_exists("data/categories/{$_POST['cat_id']}/book.txt")) {
+ touch("data/categories/{$_POST['cat_id']}/book.txt");
}
}
-if (isset($_REQUEST['cat_title']) and !empty($_REQUEST['cat_title'])) {
+if (isset($_POST['cat_title']) and !empty($_POST['cat_title'])) {
- $cat_title = ucfirst(strip_tags(trim($_REQUEST['cat_title'])));
+ $cat_title = ucfirst(strip_tags(trim($_POST['cat_title'])));
- if ($cat_title != file_get_contents("data/categories/{$_REQUEST['cat_id']}/title.txt")) {
- $edit_title_file = fopen("data/categories/{$_REQUEST['cat_id']}/title.txt","w");
+ if ($cat_title != file_get_contents("data/categories/{$_POST['cat_id']}/title.txt")) {
+ $edit_title_file = fopen("data/categories/{$_POST['cat_id']}/title.txt","w");
fwrite($edit_title_file,$cat_title);
fclose($edit_title_file);
}
}
-if (empty($_REQUEST['cat_title']) and file_exists("data/categories/{$_REQUEST['cat_id']}/title.txt")) {
- unlink("data/categories/{$_REQUEST['cat_id']}/title.txt");
+if (empty($_POST['cat_title']) and file_exists("data/categories/{$_POST['cat_id']}/title.txt")) {
+ unlink("data/categories/{$_POST['cat_id']}/title.txt");
}
?>
diff --git a/colors.php b/colors.php
index 22271e7..d09bb8b 100644
--- a/colors.php
+++ b/colors.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -27,11 +27,11 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-if (!isset($_REQUEST['target']) or empty($_REQUEST['target'])) {
+if (!isset($_POST['target']) or empty($_POST['target'])) {
$target = font;
}
else {
- $target = $_REQUEST['target'];
+ $target = $_POST['target'];
}
if (!file_exists("data/colors")) {
@@ -71,7 +71,7 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+if (isset($_POST['reset']) and ($_POST['reset'] == "go")) {
rmdirr("data/colors");
@@ -81,23 +81,23 @@ if (isset($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
}
-if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and (!isset($_REQUEST['color']) or empty($_REQUEST['color']))) {
+if (isset($_POST['target']) and !empty($_POST['target']) and (!isset($_POST['color']) or empty($_POST['color']))) {
- $color_file = str_replace("_", "-", $_REQUEST['target']);
+ $color_file = str_replace("_", "-", $_POST['target']);
$color_file = "data/colors/{$color_file}.txt";
unlink($color_file);
}
-if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and isset($_REQUEST['color']) and !empty($_REQUEST['color'])) {
+if (isset($_POST['target']) and !empty($_POST['target']) and isset($_POST['color']) and !empty($_POST['color'])) {
- $color_value = str_replace("%23", "#", $_REQUEST['color']);
+ $color_value = str_replace("%23", "#", $_POST['color']);
$color_value = strtolower($color_value);
$valid_colors = array("aqua","black","blue","fuchsia","gray","green","lime","maroon","navy","olive","purple","red","silver","teal","white","yellow","transparent");
if (in_array($color_value, $valid_colors) or ((strlen($color_value) == 7) and strstr($color_value,"#"))) {
- $color_file = str_replace("_", "-", $_REQUEST['target']);
+ $color_file = str_replace("_", "-", $_POST['target']);
$color_file = "data/colors/{$color_file}.txt";
$color_txt = fopen($color_file,"w");
fwrite($color_txt,$color_value);
@@ -105,8 +105,8 @@ if (isset($_REQUEST['target']) and !empty($_REQUEST['target']) and isset($_REQUE
}
}
-if (isset($_REQUEST['id']) and !empty($_REQUEST['id']) and !file_exists("data/schemes/colors/{$_REQUEST['id']}")) {
- $id = strtolower($_REQUEST['id']);
+if (isset($_POST['id']) and !empty($_POST['id']) and !file_exists("data/schemes/colors/{$_POST['id']}")) {
+ $id = strtolower($_POST['id']);
$id = trim($id);
$id = str_replace(" ","_",$id);
@@ -169,15 +169,15 @@ if (isset($_REQUEST['id']) and !empty($_REQUEST['id']) and !file_exists("data/sc
}
}
-if (isset($_REQUEST['scheme']) and !empty($_REQUEST['scheme'])) {
+if (isset($_POST['scheme']) and !empty($_POST['scheme'])) {
- $scheme = strtolower($_REQUEST['scheme']);
+ $scheme = strtolower($_POST['scheme']);
$scheme = trim($scheme);
$scheme = str_replace(" ","_",$scheme);
if (file_exists("data/schemes/colors/$scheme")) {
- switch ($_REQUEST['scheme_axn']) {
+ switch ($_POST['scheme_axn']) {
case 'click here to apply selected scheme':
diff --git a/del.php b/del.php
index 01ef973..9b3ca74 100644
--- a/del.php
+++ b/del.php
@@ -93,7 +93,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
}
- if ($_REQUEST['action'] == delete) {
+ if ($_POST['action'] == delete) {
$entry_dir = 'data/items/' . $_REQUEST['entry'];
$image_dir = 'images/' . $_REQUEST['entry'];
$album_sem_dir = 'data/albums/' . $_REQUEST['entry'];
@@ -117,13 +117,13 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
- if ($_REQUEST['action'] == edit) {
+ if ($_POST['action'] == edit) {
$edit_url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/edit.php?entry=" . $_REQUEST['entry'];
$edit_url = str_replace("//edit.php", "/edit.php", $edit_url);
header("Location: $edit_url");
}
- if ($_REQUEST['action'] == home) {
+ if ($_POST['action'] == home) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']));
}
}
diff --git a/dig.php b/dig.php
index adf1b93..71045c8 100644
--- a/dig.php
+++ b/dig.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
?>
@@ -69,16 +69,16 @@ $open_username_file = fopen($username_file,"r");
$login_username = fread($open_username_file,filesize($username_file));
fclose($open_username_file);
-if (!isset($_REQUEST['search'])) {
+if (!isset($_POST['search'])) {
exit();
}
-if (empty($_REQUEST['search'])) {
+if (empty($_POST['search'])) {
echo "<p>Search string required. Click <a href=index.php>here</a> to go to the index page.</p>";
exit();
}
-$search = trim(strip_tags(strtolower($_REQUEST['search'])));
+$search = trim(strip_tags(strtolower($_POST['search'])));
$google = str_replace(" ", "+", $search);
diff --git a/edit.php b/edit.php
index ded4662..b6e300f 100644
--- a/edit.php
+++ b/edit.php
@@ -22,7 +22,7 @@ if (get_magic_quotes_gpc()) {
$login_username = file_get_contents("data/username.txt");
-if (isset($_REQUEST['title_input']) and isset($_REQUEST['body_input'])) {
+if (isset($_POST['title_input']) and isset($_POST['body_input'])) {
header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?entry=" . $_REQUEST['entry']);
}
@@ -216,9 +216,9 @@ a:active {
<?php
-if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['comment_txt']) and !empty($_REQUEST['comment_txt']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
+if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_POST['comment_txt']) and !empty($_POST['comment_txt']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
- $comment_txt = ucfirst($_REQUEST['comment_txt']);
+ $comment_txt = ucfirst($_POST['comment_txt']);
//$comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
// $comment_txt = str_replace('href=', 'target=_maj href=', $comment_txt);
$comment_txt = str_replace("\n", '<br />', $comment_txt);
@@ -537,11 +537,11 @@ echo $body_read_content;
<?php
-if (!isset($_REQUEST['title_input']) or !isset($_REQUEST['body_input']) or empty($_REQUEST['title_input']) or empty($_REQUEST['body_input'])) {
+if (!isset($_POST['title_input']) or !isset($_POST['body_input']) or empty($_POST['title_input']) or empty($_POST['body_input'])) {
exit();
}
-$title_write_content = ucfirst($_REQUEST['title_input']);
+$title_write_content = ucfirst($_POST['title_input']);
$title_write_content = str_replace('<','<',$title_write_content);
$title_write_content = str_replace('>','>',$title_write_content);
$open_title_file = fopen($title_file,"w");
@@ -594,7 +594,7 @@ function reformat_code($defang_code) {
return $defang_code;
}
-$body_write_content = ucfirst($_REQUEST['body_input']);
+$body_write_content = ucfirst($_POST['body_input']);
$body_write_content = str_replace("[html]", '<html>', $body_write_content);
$body_write_content = str_replace("[/html]", '</html>', $body_write_content);
$body_write_content = reformat_html($body_write_content);
@@ -663,7 +663,7 @@ if (isset($_FILES['album_image_input']) and !empty($_FILES['album_image_input'])
if (!file_exists($album_sem)) {
mkdir($album_sem);
}
- if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption'])) {
+ if (isset($_POST['caption']) and !empty($_POST['caption'])) {
$album_data_dir = 'data/items/' . $_REQUEST['entry'] . '/album';
if (!file_exists($album_data_dir)) {
mkdir($album_data_dir);
@@ -674,7 +674,7 @@ if (isset($_FILES['album_image_input']) and !empty($_FILES['album_image_input'])
}
$caption_file = 'data/items/' . $_REQUEST['entry'] . '/album/captions/' . $_FILES['album_image_input']['name'] . '.txt';
if (!file_exists($caption_file)) {
- $caption_txt = ucfirst($_REQUEST['caption']);
+ $caption_txt = ucfirst($_POST['caption']);
$caption_txt = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $caption_txt);
$caption_txt = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $caption_txt);
$caption_txt = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $caption_txt);
@@ -821,7 +821,7 @@ if (isset($_FILES['file_input']) and !empty($_FILES['file_input'])) {
// start of wiki mod (20071130)
-$title_get_content = ucfirst($_REQUEST['title_input']);
+$title_get_content = ucfirst($_POST['title_input']);
$title_get_content = str_replace('<','<',$title_get_content);
$title_get_content = str_replace('>','>',$title_get_content);
@@ -886,7 +886,7 @@ if (file_exists("data/wiki.txt") and (file_exists("data/items/{$_REQUEST['entry'
if ($_SESSION['logged_in'] == $login_username) {
$sticky_sem = 'data/sticky/' . $_REQUEST['entry'];
- if (isset($_REQUEST['sticky']) and !empty($_REQUEST['sticky']) and ($_REQUEST['sticky'] == "on")) {
+ if (isset($_POST['sticky']) and !empty($_POST['sticky']) and ($_POST['sticky'] == "on")) {
if (!file_exists("data/sticky")) {
mkdir("data/sticky");
}
@@ -894,73 +894,73 @@ if ($_SESSION['logged_in'] == $login_username) {
touch($sticky_sem);
}
}
- if (!isset($_REQUEST['sticky']) or empty($_REQUEST['sticky'])) {
+ if (!isset($_POST['sticky']) or empty($_POST['sticky'])) {
if (file_exists($sticky_sem)) {
unlink($sticky_sem);
}
}
$display_sem = "data/items/{$_REQUEST['entry']}/cat.txt";
- if (isset($_REQUEST['display']) and !empty($_REQUEST['display']) and ($_REQUEST['display'] == "on")) {
+ if (isset($_POST['display']) and !empty($_POST['display']) and ($_POST['display'] == "on")) {
if (!file_exists($display_sem)) {
touch($display_sem);
}
}
- if (!isset($_REQUEST['display']) or empty($_REQUEST['display'])) {
+ if (!isset($_POST['display']) or empty($_POST['display'])) {
if (file_exists($display_sem)) {
unlink($display_sem);
}
}
$private_sem = "data/items/{$_REQUEST['entry']}/private.txt";
- if (isset($_REQUEST['private']) and !empty($_REQUEST['private']) and ($_REQUEST['private'] == "on")) {
+ if (isset($_POST['private']) and !empty($_POST['private']) and ($_POST['private'] == "on")) {
if (!file_exists($private_sem)) {
touch($private_sem);
}
}
- if (!isset($_REQUEST['private']) or empty($_REQUEST['private'])) {
+ if (!isset($_POST['private']) or empty($_POST['private'])) {
if (file_exists($private_sem)) {
unlink($private_sem);
}
}
$member_sem = "data/items/{$_REQUEST['entry']}/member.txt";
- if (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on")) {
+ if (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on")) {
if (!file_exists($member_sem)) {
touch($member_sem);
}
}
- if (!isset($_REQUEST['member']) or empty($_REQUEST['member'])) {
+ if (!isset($_POST['member']) or empty($_POST['member'])) {
if (file_exists($member_sem)) {
unlink($member_sem);
}
}
$edit_sem = "data/items/{$_REQUEST['entry']}/edit.txt";
- if (isset($_REQUEST['edit']) and !empty($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (isset($_POST['edit']) and !empty($_POST['edit']) and ($_POST['edit'] == "on")) {
if (!file_exists($edit_sem)) {
touch($edit_sem);
}
}
- if (!isset($_REQUEST['edit']) or empty($_REQUEST['edit'])) {
+ if (!isset($_POST['edit']) or empty($_POST['edit'])) {
if (file_exists($edit_sem)) {
unlink($edit_sem);
}
}
$lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
- if (isset($_REQUEST['lastmod']) and !empty($_REQUEST['lastmod']) and ($_REQUEST['lastmod'] == "on")) {
+ if (isset($_POST['lastmod']) and !empty($_POST['lastmod']) and ($_POST['lastmod'] == "on")) {
if (!file_exists($lastmod_sem)) {
touch($lastmod_sem);
}
}
- if (!isset($_REQUEST['lastmod']) or empty($_REQUEST['lastmod'])) {
+ if (!isset($_POST['lastmod']) or empty($_POST['lastmod'])) {
if (file_exists($lastmod_sem)) {
unlink($lastmod_sem);
}
}
- if (isset($_REQUEST['pdf']) and !empty($_REQUEST['pdf']) and ($_REQUEST['pdf'] == "on")) {
+ if (isset($_POST['pdf']) and !empty($_POST['pdf']) and ($_POST['pdf'] == "on")) {
if (!file_exists("data/items/{$_REQUEST['entry']}/pdf")) {
mkdir("data/items/{$_REQUEST['entry']}/pdf");
}
@@ -1102,36 +1102,36 @@ if ($_SESSION['logged_in'] == $login_username) {
$pdf->Output($filename);
}
- if (!isset($_REQUEST['pdf']) or empty($_REQUEST['pdf'])) {
+ if (!isset($_POST['pdf']) or empty($_POST['pdf'])) {
if (file_exists("data/items/{$_REQUEST['entry']}/pdf/file")) {
rmdirr("data/items/{$_REQUEST['entry']}/pdf/file");
}
}
- if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
+ if (isset($_POST['category']) and !empty($_POST['category'])) {
if (!file_exists("data/categories")) {
mkdir("data/categories");
}
- if ($_REQUEST['category'] == "unfiled") {
+ if ($_POST['category'] == "unfiled") {
unlink("data/items/{$_REQUEST['entry']}/category.txt");
}
- if (file_exists("data/categories/{$_REQUEST['category']}")) {
+ if (file_exists("data/categories/{$_POST['category']}")) {
$fp_category_txt = fopen("data/items/{$_REQUEST['entry']}/category.txt","w");
- fwrite($fp_category_txt, $_REQUEST['category']);
+ fwrite($fp_category_txt, $_POST['category']);
fclose($fp_category_txt);
}
}
$passwd_file = "data/items/{$_REQUEST['entry']}/passwd.txt";
- if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd']) and ($_REQUEST['passwd'] != "password")) {
+ if (isset($_POST['passwd']) and !empty($_POST['passwd']) and ($_POST['passwd'] != "password")) {
$fp_passwd_txt = fopen("$passwd_file","w");
- $passwd_crypt = sha1($_REQUEST['passwd']);
+ $passwd_crypt = sha1($_POST['passwd']);
$passwd_crypt = md5($passwd_crypt);
$passwd_crypt = crypt($passwd_crypt, $passwd_crypt);
fwrite($fp_passwd_txt, $passwd_crypt);
fclose($fp_passwd_txt);
}
- if (!isset($_REQUEST['passwd']) or empty($_REQUEST['passwd'])) {
+ if (!isset($_POST['passwd']) or empty($_POST['passwd'])) {
if (file_exists($passwd_file)) {
unlink($passwd_file);
}
diff --git a/fonts.php b/fonts.php
index e97cf3b..00cd309 100644
--- a/fonts.php
+++ b/fonts.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -56,12 +56,12 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+if (isset($_POST['reset']) and !empty($_POST['reset']) and ($_POST['reset'] == "go")) {
rmdirr("data/fonts");
}
-if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_contents("data/fonts/body.txt") != $_REQUEST['body'])) {
- $body_write_content = strtolower($_REQUEST['body']);
+if (isset($_POST['body']) and !empty($_POST['body']) and (file_get_contents("data/fonts/body.txt") != $_POST['body'])) {
+ $body_write_content = strtolower($_POST['body']);
$body_write_content = trim($body_write_content);
$body_write_content = str_replace(", ",",",$body_write_content);
$body_write_content = str_replace(" ,",",",$body_write_content);
@@ -75,16 +75,16 @@ if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_content
fclose($fp_body_txt);
}
-if (!isset($_REQUEST['body']) or empty($_REQUEST['body'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['body']) or empty($_POST['body'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/body.txt")) {
unlink("data/fonts/body.txt");
}
}
}
-if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_contents("data/fonts/input.txt") != $_REQUEST['input'])) {
- $input_write_content = strtolower($_REQUEST['input']);
+if (isset($_POST['input']) and !empty($_POST['input']) and (file_get_contents("data/fonts/input.txt") != $_POST['input'])) {
+ $input_write_content = strtolower($_POST['input']);
$input_write_content = trim($input_write_content);
$input_write_content = str_replace(", ",",",$input_write_content);
$input_write_content = str_replace(" ,",",",$input_write_content);
@@ -98,16 +98,16 @@ if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_conte
fclose($fp_input_txt);
}
-if (!isset($_REQUEST['input']) or empty($_REQUEST['input'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['input']) or empty($_POST['input'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/input.txt")) {
unlink("data/fonts/input.txt");
}
}
}
-if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_REQUEST['panel_title'])) {
- $panel_title_write_content = strtolower($_REQUEST['panel_title']);
+if (isset($_POST['panel_title']) and !empty($_POST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_POST['panel_title'])) {
+ $panel_title_write_content = strtolower($_POST['panel_title']);
$panel_title_write_content = trim($panel_title_write_content);
$panel_title_write_content = str_replace(", ",",",$panel_title_write_content);
$panel_title_write_content = str_replace(" ,",",",$panel_title_write_content);
@@ -121,16 +121,16 @@ if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (fi
fclose($fp_panel_title_txt);
}
-if (!isset($_REQUEST['panel_title']) or empty($_REQUEST['panel_title'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_title']) or empty($_POST['panel_title'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-title.txt")) {
unlink("data/fonts/panel-title.txt");
}
}
}
-if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_REQUEST['panel_body'])) {
- $panel_body_write_content = strtolower($_REQUEST['panel_body']);
+if (isset($_POST['panel_body']) and !empty($_POST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_POST['panel_body'])) {
+ $panel_body_write_content = strtolower($_POST['panel_body']);
$panel_body_write_content = trim($panel_body_write_content);
$panel_body_write_content = str_replace(", ",",",$panel_body_write_content);
$panel_body_write_content = str_replace(" ,",",",$panel_body_write_content);
@@ -144,16 +144,16 @@ if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file
fclose($fp_panel_body_txt);
}
-if (!isset($_REQUEST['panel_body']) or empty($_REQUEST['panel_body'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_body']) or empty($_POST['panel_body'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-body.txt")) {
unlink("data/fonts/panel-body.txt");
}
}
}
-if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_REQUEST['panel_footer'])) {
- $panel_footer_write_content = strtolower($_REQUEST['panel_footer']);
+if (isset($_POST['panel_footer']) and !empty($_POST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_POST['panel_footer'])) {
+ $panel_footer_write_content = strtolower($_POST['panel_footer']);
$panel_footer_write_content = trim($panel_footer_write_content);
$panel_footer_write_content = str_replace(", ",",",$panel_footer_write_content);
$panel_footer_write_content = str_replace(" ,",",",$panel_footer_write_content);
@@ -167,8 +167,8 @@ if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (
fclose($fp_panel_footer_txt);
}
-if (!isset($_REQUEST['panel_footer']) or empty($_REQUEST['panel_footer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['panel_footer']) or empty($_POST['panel_footer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/fonts/panel-footer.txt")) {
unlink("data/fonts/panel-footer.txt");
}
diff --git a/login.php b/login.php
index 99fe3e4..19a4ff4 100644
--- a/login.php
+++ b/login.php
@@ -21,7 +21,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
?>
@@ -85,28 +85,28 @@ a:active {
<?php
-if ($_REQUEST['username'] == file_get_contents("data/username.txt")) {
+if ($_POST['username'] == file_get_contents("data/username.txt")) {
$login_username = file_get_contents("data/username.txt");
$login_password = file_get_contents("data/password.txt");
$last_login = "data/lastlog.txt";
$logins = "data/logins.txt";
}
-if ($_REQUEST['username'] != file_get_contents("data/username.txt")) {
- if (file_exists("data/members/active/{$_REQUEST['username']}") and file_exists("data/bb.txt")) {
- $login_username = $_REQUEST['username'];
- $login_password = file_get_contents("data/members/active/{$_REQUEST['username']}/password.txt");
- $last_login = "data/members/active/{$_REQUEST['username']}/bb-last.txt";
- $logins = "data/members/active/{$_REQUEST['username']}/bb-logins.txt";
+if ($_POST['username'] != file_get_contents("data/username.txt")) {
+ if (file_exists("data/members/active/{$_POST['username']}") and file_exists("data/bb.txt")) {
+ $login_username = $_POST['username'];
+ $login_password = file_get_contents("data/members/active/{$_POST['username']}/password.txt");
+ $last_login = "data/members/active/{$_POST['username']}/bb-last.txt";
+ $logins = "data/members/active/{$_POST['username']}/bb-logins.txt";
}
}
/* Fun with crypt! */
-$crypt_password = sha1($_REQUEST['password']);
+$crypt_password = sha1($_POST['password']);
$crypt_password = md5($crypt_password);
$crypt_password = crypt($crypt_password, $crypt_password);
-if ($login_username != $_REQUEST['username'] || $login_password != $crypt_password) {
+if ($login_username != $_POST['username'] || $login_password != $crypt_password) {
$_SESSION = array();
session_destroy();
echo "<p>Enter your login credentials above or click <a href=index.php>here</a> to go to the index page.";
@@ -119,7 +119,7 @@ if ($login_username != $_REQUEST['username'] || $login_password != $crypt_passwo
exit();
}
-$_SESSION['logged_in'] = $_REQUEST['username'];
+$_SESSION['logged_in'] = $_POST['username'];
$_SESSION['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
$lastlog = date("YmdHis", time() + $offset);
diff --git a/move.php b/move.php
index 346ad21..c8d937a 100644
--- a/move.php
+++ b/move.php
@@ -142,12 +142,12 @@ a:active {
<?php
-if (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']) or !isset($_REQUEST['target']) or empty($_REQUEST['target'])) {
+if (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']) or !isset($_POST['target']) or empty($_POST['target'])) {
exit();
}
$entry = trim($_REQUEST['entry']);
-$target = trim($_REQUEST['target']);
+$target = trim($_POST['target']);
if (!file_exists("data/items/$entry") or !file_exists("data/items/$target")) {
exit();
diff --git a/options.php b/options.php
index efa5f91..8c59e65 100644
--- a/options.php
+++ b/options.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
if (file_exists("data/lite.txt")) {
@@ -106,11 +106,11 @@ a:active {
<?php
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_REQUEST['key']) and !empty($_REQUEST['key'])) {
+if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['key']) and !empty($_POST['key'])) {
- $username = $_REQUEST['username'];
+ $username = $_POST['username'];
- if (file_exists("data/members/active/$username") and ($_REQUEST['key'] == file_get_contents("data/members/active/$username/key.txt"))) {
+ if (file_exists("data/members/active/$username") and ($_POST['key'] == file_get_contents("data/members/active/$username/key.txt"))) {
unlink("data/members/active/$username/key.txt");
unlink("data/members/active/$username/vacation.txt");
unlink("data/members/active/$username/email.txt");
@@ -132,8 +132,8 @@ if (!file_exists("data/members/active/{$_SESSION['logged_in']}")) {
exit();
}
-if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt") != $_REQUEST['email']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
- $email_write_content = strtolower($_REQUEST['email']);
+if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt") != $_POST['email']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email']))) {
+ $email_write_content = strtolower($_POST['email']);
$email_write_content = trim($email_write_content);
$email_write_content = htmlentities($email_write_content, ENT_NOQUOTES);
$fp_email_txt = fopen("data/members/active/{$_SESSION['logged_in']}/new-email.txt","w");
@@ -190,12 +190,12 @@ if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_conte
echo "<p>Confirmation request sent. Check your $email_write_content inbox for details.</p>";
}
-if ((!isset($_REQUEST['url']) or empty($_REQUEST['url'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['url']) or empty($_POST['url'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/members/active/{$_SESSION['logged_in']}/url.txt");
}
-if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
- $url = str_replace('http://', '', $_REQUEST['url']);
+if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.", $_POST['url']))) {
+ $url = str_replace('http://', '', $_POST['url']);
$url = strtolower($url);
$url = trim($url);
$url = 'http://' . $url;
@@ -205,12 +205,12 @@ if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUE
fclose($fp_url_txt);
}
-if ((!isset($_REQUEST['sig']) or empty($_REQUEST['sig'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/members/active/{$_SESSION['logged_in']}/sig.txt");
}
-if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
- $sig = strip_tags($_REQUEST['sig']);
+if (isset($_POST['sig']) and !empty($_POST['sig'])) {
+ $sig = strip_tags($_POST['sig']);
$sig = str_replace("[b]","<b>",$sig);
$sig = str_replace("[/b]","</b>",$sig);
$sig = str_replace("[i]","<i>",$sig);
@@ -231,7 +231,7 @@ if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
fclose($fp_sig_txt);
}
-if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_REQUEST['del_avatar'] == "on")) {
+if (isset($_POST['del_avatar']) and !empty($_POST['del_avatar']) and ($_POST['del_avatar'] == "on")) {
if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.gif")) {
unlink("images/members/{$_SESSION['logged_in']}/avatar.gif");
}
@@ -303,12 +303,12 @@ $max_image_size = 1000000;
}
}
-if (isset($_REQUEST['vacation']) and !empty($_REQUEST['vacation']) and ($_REQUEST['vacation'] == "on") and !file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
+if (isset($_POST['vacation']) and !empty($_POST['vacation']) and ($_POST['vacation'] == "on") and !file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
touch("data/members/active/{$_SESSION['logged_in']}/vacation.txt");
}
-if (!isset($_REQUEST['vacation']) or empty($_REQUEST['vacation'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['vacation']) or empty($_POST['vacation'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) {
unlink("data/members/active/{$_SESSION['logged_in']}/vacation.txt");
}
@@ -320,15 +320,15 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/key.txt") and !fil
}
-if (isset($_REQUEST['bday']) and !empty($_REQUEST['bday']) and (strlen($_REQUEST['bday']) == "8") and is_numeric($_REQUEST['bday']) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) <= $maxage)) {
+if (isset($_POST['bday']) and !empty($_POST['bday']) and (strlen($_POST['bday']) == "8") and is_numeric($_POST['bday']) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) <= $maxage)) {
$fp_bday_txt = fopen("data/members/active/{$_SESSION['logged_in']}/bday.txt","w");
- fwrite($fp_bday_txt,$_REQUEST['bday']);
+ fwrite($fp_bday_txt,$_POST['bday']);
fclose($fp_bday_txt);
}
-if (isset($_REQUEST['current_passwd']) and !empty($_REQUEST['current_passwd']) and isset($_REQUEST['new_passwd']) and !empty($_REQUEST['new_passwd']) and isset($_REQUEST['confirm_passwd']) and !empty($_REQUEST['confirm_passwd'])) {
+if (isset($_POST['current_passwd']) and !empty($_POST['current_passwd']) and isset($_POST['new_passwd']) and !empty($_POST['new_passwd']) and isset($_POST['confirm_passwd']) and !empty($_POST['confirm_passwd'])) {
if (file_exists("data/bb-passlen.txt")) {
$pass_len = file_get_contents("data/bb-passlen.txt");
@@ -337,9 +337,9 @@ if (isset($_REQUEST['current_passwd']) and !empty($_REQUEST['current_passwd']) a
$pass_len = 8;
}
- $current_passwd = trim($_REQUEST['current_passwd']);
- $new_passwd = trim($_REQUEST['new_passwd']);
- $confirm_passwd = trim($_REQUEST['confirm_passwd']);
+ $current_passwd = trim($_POST['current_passwd']);
+ $new_passwd = trim($_POST['new_passwd']);
+ $confirm_passwd = trim($_POST['confirm_passwd']);
if ((strlen($new_passwd) < $pass_len) or (strlen($confirm_passwd) < $pass_len)) {
echo "<p>Passwords must be composed of at least $pass_len characters.</p>";
diff --git a/panels.php b/panels.php
index d9d0235..37f03d4 100644
--- a/panels.php
+++ b/panels.php
@@ -18,7 +18,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -51,138 +51,138 @@ function rmdirr($recurse_dirname) {
return rmdir($recurse_dirname);
}
-if (isset($_REQUEST['new_id']) and !empty($_REQUEST['new_id']) and isset($_REQUEST['new_title']) and !empty($_REQUEST['new_title']) and isset($_REQUEST['new_content']) and !empty($_REQUEST['new_content']) and !file_exists("data/panels/{$_REQUEST['new_id']}")) {
+if (isset($_POST['new_id']) and !empty($_POST['new_id']) and isset($_POST['new_title']) and !empty($_POST['new_title']) and isset($_POST['new_content']) and !empty($_POST['new_content']) and !file_exists("data/panels/{$_POST['new_id']}")) {
if (!file_exists("data/panels")) {
mkdir("data/panels");
}
- $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_REQUEST['new_id']))));
+ $new_id = trim(strip_tags(strtolower(str_replace(" ", "_", $_POST['new_id']))));
if (!file_exists("data/panels/$new_id")) {
mkdir("data/panels/$new_id");
}
- $new_title = ucfirst(strip_tags(trim($_REQUEST['new_title'])));
+ $new_title = ucfirst(strip_tags(trim($_POST['new_title'])));
$open_title_file = fopen("data/panels/$new_id/title.txt","w");
fwrite($open_title_file,$new_title);
fclose($open_title_file);
- $panel_content = ucfirst(trim($_REQUEST['new_content']));
+ $panel_content = ucfirst(trim($_POST['new_content']));
$new_content_file = fopen("data/panels/$new_id/panel.php","w");
fwrite($new_content_file,$panel_content);
fclose($new_content_file);
}
-if (isset($_REQUEST['panel_del']) and !empty($_REQUEST['panel_del']) and ($_REQUEST['panel_del'] == "on")) {
- rmdirr("data/panels/{$_REQUEST['panel_id']}");
+if (isset($_POST['panel_del']) and !empty($_POST['panel_del']) and ($_POST['panel_del'] == "on")) {
+ rmdirr("data/panels/{$_POST['panel_id']}");
}
-if ((!isset($_REQUEST['panel_hide']) or !empty($_REQUEST['panel_hide'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/private.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/private.txt");
+if ((!isset($_POST['panel_hide']) or !empty($_POST['panel_hide'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/private.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/private.txt");
}
}
-if (isset($_REQUEST['panel_hide']) and !empty($_REQUEST['panel_hide']) and ($_REQUEST['panel_hide'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/private.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/private.txt");
+if (isset($_POST['panel_hide']) and !empty($_POST['panel_hide']) and ($_POST['panel_hide'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/private.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/private.txt");
}
}
-if ((!isset($_REQUEST['panel_free']) or !empty($_REQUEST['panel_free'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/free.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/free.txt");
+if ((!isset($_POST['panel_free']) or !empty($_POST['panel_free'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/free.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/free.txt");
}
}
-if (isset($_REQUEST['panel_free']) and !empty($_REQUEST['panel_free']) and ($_REQUEST['panel_free'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/free.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/free.txt");
+if (isset($_POST['panel_free']) and !empty($_POST['panel_free']) and ($_POST['panel_free'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/free.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/free.txt");
}
}
-if ((!isset($_REQUEST['panel_right']) or !empty($_REQUEST['panel_right'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+if ((!isset($_POST['panel_right']) or !empty($_POST['panel_right'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if (isset($_REQUEST['panel_right']) and !empty($_REQUEST['panel_right']) and ($_REQUEST['panel_right'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/right.txt");
+if (isset($_POST['panel_right']) and !empty($_POST['panel_right']) and ($_POST['panel_right'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if ((!isset($_REQUEST['panel_center']) or !empty($_REQUEST['panel_center'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+if ((!isset($_POST['panel_center']) or !empty($_POST['panel_center'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if (isset($_REQUEST['panel_center']) and !empty($_REQUEST['panel_center']) and ($_REQUEST['panel_center'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/center.txt");
+if (isset($_POST['panel_center']) and !empty($_POST['panel_center']) and ($_POST['panel_center'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/center.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
}
-if ((!isset($_REQUEST['panel_top']) or !empty($_REQUEST['panel_top'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/top.txt");
+if ((!isset($_POST['panel_top']) or !empty($_POST['panel_top'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/top.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/top.txt");
}
}
-if (isset($_REQUEST['panel_top']) and !empty($_REQUEST['panel_top']) and ($_REQUEST['panel_top'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/top.txt");
+if (isset($_POST['panel_top']) and !empty($_POST['panel_top']) and ($_POST['panel_top'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/top.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/top.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if ((!isset($_REQUEST['panel_entry']) or !empty($_REQUEST['panel_entry'])) and ($_REQUEST['panel_edit'] == "on")) {
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+if ((!isset($_POST['panel_entry']) or !empty($_POST['panel_entry'])) and ($_POST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_POST['panel_id']}/entry.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/entry.txt");
}
}
-if (isset($_REQUEST['panel_entry']) and !empty($_REQUEST['panel_entry']) and ($_REQUEST['panel_entry'] == "on")) {
- if (!file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
- touch("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+if (isset($_POST['panel_entry']) and !empty($_POST['panel_entry']) and ($_POST['panel_entry'] == "on")) {
+ if (!file_exists("data/panels/{$_POST['panel_id']}/entry.txt")) {
+ touch("data/panels/{$_POST['panel_id']}/entry.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/right.txt");
}
- if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
- unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ if (file_exists("data/panels/{$_POST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_POST['panel_id']}/center.txt");
}
}
-if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title'])) {
+if (isset($_POST['panel_title']) and !empty($_POST['panel_title'])) {
- $panel_title = ucfirst(strip_tags(trim($_REQUEST['panel_title'])));
+ $panel_title = ucfirst(strip_tags(trim($_POST['panel_title'])));
- if ($panel_title != file_get_contents("data/panels/{$_REQUEST['panel_id']}/title.txt")) {
- $edit_title_file = fopen("data/panels/{$_REQUEST['panel_id']}/title.txt","w");
+ if ($panel_title != file_get_contents("data/panels/{$_POST['panel_id']}/title.txt")) {
+ $edit_title_file = fopen("data/panels/{$_POST['panel_id']}/title.txt","w");
fwrite($edit_title_file,$panel_title);
fclose($edit_title_file);
}
}
-if (isset($_REQUEST['panel_content']) and !empty($_REQUEST['panel_content'])) {
+if (isset($_POST['panel_content']) and !empty($_POST['panel_content'])) {
- $panel_content = ucfirst(trim($_REQUEST['panel_content']));
+ $panel_content = ucfirst(trim($_POST['panel_content']));
- if ($panel_content != file_get_contents("data/panels/{$_REQUEST['panel_id']}/panel.php")) {
- $edit_content_file = fopen("data/panels/{$_REQUEST['panel_id']}/panel.php","w");
+ if ($panel_content != file_get_contents("data/panels/{$_POST['panel_id']}/panel.php")) {
+ $edit_content_file = fopen("data/panels/{$_POST['panel_id']}/panel.php","w");
fwrite($edit_content_file,$panel_content);
fclose($edit_content_file);
}
diff --git a/reg.php b/reg.php
index b01d391..4db8a50 100644
--- a/reg.php
+++ b/reg.php
@@ -361,24 +361,24 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
exit();
}
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_get']) and isset($_REQUEST['firstname']) and !empty($_REQUEST['firstname']) and isset($_REQUEST['lastname']) and !empty($_REQUEST['lastname']) and isset($_REQUEST['email']) and !empty($_REQUEST['email']) and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_put']) and ($_REQUEST['captcha_get'] == $_REQUEST['captcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_REQUEST['bd_year']) and !empty($_REQUEST['bd_year']) and isset($_REQUEST['bd_month']) and !empty($_REQUEST['bd_month']) and isset($_REQUEST['bd_day']) and !empty($_REQUEST['bd_day']) and (strlen($_REQUEST['bd_year']) == "4") and (strlen($_REQUEST['bd_month']) == "2") and (strlen($_REQUEST['bd_day']) == "2") and is_numeric($_REQUEST['bd_year']) and is_numeric($_REQUEST['bd_month']) and is_numeric($_REQUEST['bd_day']) and ((date("Y", time() + $offset) - $_REQUEST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_REQUEST['bd_year']) >= $minage) and ($_REQUEST['bd_month'] >= 1) and ($_REQUEST['bd_month'] <= 12) and ($_REQUEST['bd_day'] >= 1) and ($_REQUEST['bd_day'] <= 31)) {
+if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_POST['captcha_put']) and !empty($_POST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_POST['captcha_get'] == $_POST['captcha_put']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_POST['bd_year']) and !empty($_POST['bd_year']) and isset($_POST['bd_month']) and !empty($_POST['bd_month']) and isset($_POST['bd_day']) and !empty($_POST['bd_day']) and (strlen($_POST['bd_year']) == "4") and (strlen($_POST['bd_month']) == "2") and (strlen($_POST['bd_day']) == "2") and is_numeric($_POST['bd_year']) and is_numeric($_POST['bd_month']) and is_numeric($_POST['bd_day']) and ((date("Y", time() + $offset) - $_POST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_POST['bd_year']) >= $minage) and ($_POST['bd_month'] >= 1) and ($_POST['bd_month'] <= 12) and ($_POST['bd_day'] >= 1) and ($_POST['bd_day'] <= 31)) {
$username = strtolower($_REQUEST['username']);
$username = str_replace(" ","_",$username);
$username = trim($username);
$username = htmlentities($username, ENT_NOQUOTES);
- $firstname = strtolower($_REQUEST['firstname']);
+ $firstname = strtolower($_POST['firstname']);
$firstname = ucwords($firstname);
$firstname = trim($firstname);
$firstname = htmlentities($firstname, ENT_NOQUOTES);
- $lastname = strtolower($_REQUEST['lastname']);
+ $lastname = strtolower($_POST['lastname']);
$lastname = ucwords($lastname);
$lastname = trim($lastname);
$lastname = htmlentities($lastname, ENT_NOQUOTES);
- $email = strtolower($_REQUEST['email']);
+ $email = strtolower($_POST['email']);
$email = trim($email);
$email = htmlentities($email, ENT_NOQUOTES);
@@ -405,13 +405,13 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUES
fwrite($fp_email_txt,$email);
fclose($fp_email_txt);
- $bday = $_REQUEST['bd_year'] . $_REQUEST['bd_month'] . $_REQUEST['bd_day'];
+ $bday = $_POST['bd_year'] . $_POST['bd_month'] . $_POST['bd_day'];
$fp_bday_txt = fopen("data/members/pending/$username/bday.txt","w");
fwrite($fp_bday_txt,$bday);
fclose($fp_bday_txt);
- if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
- $url = str_replace('http://', '', $_REQUEST['url']);
+ if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.", $_POST['url']))) {
+ $url = str_replace('http://', '', $_POST['url']);
$url = strtolower($url);
$url = trim($url);
$url = 'http://' . $url;
diff --git a/reset.php b/reset.php
index 71143b2..c2fc68c 100644
--- a/reset.php
+++ b/reset.php
@@ -29,7 +29,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
if (file_exists("data/offset.txt")) {
@@ -115,9 +115,9 @@ a:active {
<?php
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_REQUEST['addr']) and !empty($_REQUEST['addr']) and file_exists("data/members/active/{$_REQUEST['username']}") and file_exists("data/bb.txt") and (trim(strtolower($_REQUEST['addr'])) == file_get_contents("data/members/active/{$_REQUEST['username']}/email.txt")) and isset($_REQUEST['bday']) and !empty($_REQUEST['bday']) and file_exists("data/members/active/{$_REQUEST['username']}/bday.txt") and (strlen($_REQUEST['bday']) == "8") and is_numeric($_REQUEST['bday']) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_REQUEST['bday']) * 0.0001)) <= $maxage) and ($_REQUEST['bday'] == file_get_contents("data/members/active/{$_REQUEST['username']}/bday.txt"))) {
+if (isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['addr']) and !empty($_POST['addr']) and file_exists("data/members/active/{$_POST['username']}") and file_exists("data/bb.txt") and (trim(strtolower($_POST['addr'])) == file_get_contents("data/members/active/{$_POST['username']}/email.txt")) and isset($_POST['bday']) and !empty($_POST['bday']) and file_exists("data/members/active/{$_POST['username']}/bday.txt") and (strlen($_POST['bday']) == "8") and is_numeric($_POST['bday']) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $offset) - $_POST['bday']) * 0.0001)) <= $maxage) and ($_POST['bday'] == file_get_contents("data/members/active/{$_POST['username']}/bday.txt"))) {
- $username = $_REQUEST['username'];
+ $username = $_POST['username'];
function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
$str = '';
diff --git a/settings.php b/settings.php
index 551841c..6d5380d 100644
--- a/settings.php
+++ b/settings.php
@@ -17,7 +17,7 @@ if (get_magic_quotes_gpc()) {
}
}
- $_REQUEST = stripslashes_array($_REQUEST);
+ $_POST = stripslashes_array($_POST);
}
$login_username = file_get_contents("data/username.txt");
@@ -26,22 +26,22 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-if (isset($_REQUEST['title']) and !empty($_REQUEST['title']) and (file_get_contents("data/title.txt") != $_REQUEST['title'])) {
- $title_write_content = ucfirst($_REQUEST['title']);
+if (isset($_POST['title']) and !empty($_POST['title']) and (file_get_contents("data/title.txt") != $_POST['title'])) {
+ $title_write_content = ucfirst($_POST['title']);
$fp_title_txt = fopen("data/title.txt","w");
fwrite($fp_title_txt,$title_write_content);
fclose($fp_title_txt);
}
-if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and (file_get_contents("data/author.txt") != $_REQUEST['author'])) {
- $author_write_content = ucfirst($_REQUEST['author']);
+if (isset($_POST['author']) and !empty($_POST['author']) and (file_get_contents("data/author.txt") != $_POST['author'])) {
+ $author_write_content = ucfirst($_POST['author']);
$fp_author_txt = fopen("data/author.txt","w");
fwrite($fp_author_txt,$author_write_content);
fclose($fp_author_txt);
}
-if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_contents("data/email.txt") != $_REQUEST['email']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
- $email_write_content = strtolower($_REQUEST['email']);
+if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("data/email.txt") != $_POST['email']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email']))) {
+ $email_write_content = strtolower($_POST['email']);
$email_write_content = trim($email_write_content);
$email_write_content = htmlentities($email_write_content, ENT_NOQUOTES);
$fp_email_txt = fopen("data/email.txt","w");
@@ -49,59 +49,59 @@ if (isset($_REQUEST['email']) and !empty($_REQUEST['email']) and (file_get_conte
fclose($fp_email_txt);
}
-if (!isset($_REQUEST['email']) or empty($_REQUEST['email'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['email']) or empty($_POST['email'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/email.txt")) {
unlink("data/email.txt");
}
}
}
-if (isset($_REQUEST['increase']) and !empty($_REQUEST['increase']) and is_numeric($_REQUEST['increase']) and ($_REQUEST['increase'] > 0) and (file_get_contents("data/increase.txt") != $_REQUEST['increase'])) {
- $increase_write_content = number_format($_REQUEST['increase'],0,'.','');
+if (isset($_POST['increase']) and !empty($_POST['increase']) and is_numeric($_POST['increase']) and ($_POST['increase'] > 0) and (file_get_contents("data/increase.txt") != $_POST['increase'])) {
+ $increase_write_content = number_format($_POST['increase'],0,'.','');
$fp_increase_txt = fopen("data/increase.txt","w");
fwrite($fp_increase_txt,$increase_write_content);
fclose($fp_increase_txt);
}
-if (!isset($_REQUEST['increase']) or empty($_REQUEST['increase']) or !is_numeric($_REQUEST['increase']) or ($_REQUEST['increase'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['increase']) or empty($_POST['increase']) or !is_numeric($_POST['increase']) or ($_POST['increase'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/increase.txt")) {
unlink("data/increase.txt");
}
}
}
-if (isset($_REQUEST['offset']) and !empty($_REQUEST['offset']) and is_numeric($_REQUEST['offset']) and (file_get_contents("data/offset.txt") != $_REQUEST['offset'])) {
+if (isset($_POST['offset']) and !empty($_POST['offset']) and is_numeric($_POST['offset']) and (file_get_contents("data/offset.txt") != $_POST['offset'])) {
$fp_offset_txt = fopen("data/offset.txt","w");
- fwrite($fp_offset_txt,$_REQUEST['offset']);
+ fwrite($fp_offset_txt,$_POST['offset']);
fclose($fp_offset_txt);
}
-if (!isset($_REQUEST['offset']) or empty($_REQUEST['offset']) or !is_numeric($_REQUEST['offset'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['offset']) or empty($_POST['offset']) or !is_numeric($_POST['offset'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/offset.txt")) {
unlink("data/offset.txt");
}
}
}
-if (isset($_REQUEST['sfx']) and !empty($_REQUEST['sfx']) and is_numeric($_REQUEST['sfx']) and (file_get_contents("data/sfx.txt") != $_REQUEST['sfx'])) {
+if (isset($_POST['sfx']) and !empty($_POST['sfx']) and is_numeric($_POST['sfx']) and (file_get_contents("data/sfx.txt") != $_POST['sfx'])) {
$fp_sfx_txt = fopen("data/sfx.txt","w");
- fwrite($fp_sfx_txt,$_REQUEST['sfx']);
+ fwrite($fp_sfx_txt,$_POST['sfx']);
fclose($fp_sfx_txt);
}
-if (!isset($_REQUEST['sfx']) or empty($_REQUEST['sfx']) or !is_numeric($_REQUEST['sfx'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['sfx']) or empty($_POST['sfx']) or !is_numeric($_POST['sfx'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/sfx.txt")) {
unlink("data/sfx.txt");
}
}
}
-if (isset($_REQUEST['ping']) and !empty($_REQUEST['ping']) and (file_get_contents("data/ping.txt") != $_REQUEST['ping']) and (ereg("\.", $_REQUEST['ping'])) and (ereg("http://", $_REQUEST['ping']))) {
- $ping_write_content = strtolower($_REQUEST['ping']);
+if (isset($_POST['ping']) and !empty($_POST['ping']) and (file_get_contents("data/ping.txt") != $_POST['ping']) and (ereg("\.", $_POST['ping'])) and (ereg("http://", $_POST['ping']))) {
+ $ping_write_content = strtolower($_POST['ping']);
$ping_write_content = trim($ping_write_content);
$ping_write_content = htmlentities($ping_write_content, ENT_NOQUOTES);
$fp_ping_txt = fopen("data/ping.txt","w");
@@ -109,128 +109,128 @@ if (isset($_REQUEST['ping']) and !empty($_REQUEST['ping']) and (file_get_content
fclose($fp_ping_txt);
}
-if (!isset($_REQUEST['ping']) or empty($_REQUEST['ping'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ping']) or empty($_POST['ping'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ping.txt")) {
unlink("data/ping.txt");
}
}
}
-if (isset($_REQUEST['nocomment']) and !empty($_REQUEST['nocomment']) and ($_REQUEST['nocomment'] == "on") and !file_exists("data/nocomment.txt")) {
+if (isset($_POST['nocomment']) and !empty($_POST['nocomment']) and ($_POST['nocomment'] == "on") and !file_exists("data/nocomment.txt")) {
touch("data/nocomment.txt");
}
-if (!isset($_REQUEST['nocomment']) or empty($_REQUEST['nocomment'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nocomment']) or empty($_POST['nocomment'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nocomment.txt")) {
unlink("data/nocomment.txt");
}
}
}
-if (isset($_REQUEST['nak']) and !empty($_REQUEST['nak']) and ($_REQUEST['nak'] == "on") and !file_exists("data/nak.txt")) {
+if (isset($_POST['nak']) and !empty($_POST['nak']) and ($_POST['nak'] == "on") and !file_exists("data/nak.txt")) {
touch("data/nak.txt");
}
-if (!isset($_REQUEST['nak']) or empty($_REQUEST['nak'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nak']) or empty($_POST['nak'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nak.txt")) {
unlink("data/nak.txt");
}
}
}
-if (isset($_REQUEST['nopdf']) and !empty($_REQUEST['nopdf']) and ($_REQUEST['nopdf'] == "on") and !file_exists("data/nopdf.txt")) {
+if (isset($_POST['nopdf']) and !empty($_POST['nopdf']) and ($_POST['nopdf'] == "on") and !file_exists("data/nopdf.txt")) {
touch("data/nopdf.txt");
}
-if (!isset($_REQUEST['nopdf']) or empty($_REQUEST['nopdf'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nopdf']) or empty($_POST['nopdf'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nopdf.txt")) {
unlink("data/nopdf.txt");
}
}
}
-if (isset($_REQUEST['xrand']) and !empty($_REQUEST['xrand']) and ($_REQUEST['xrand'] == "on") and !file_exists("data/xrand.txt")) {
+if (isset($_POST['xrand']) and !empty($_POST['xrand']) and ($_POST['xrand'] == "on") and !file_exists("data/xrand.txt")) {
touch("data/xrand.txt");
}
-if (!isset($_REQUEST['xrand']) or empty($_REQUEST['xrand'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xrand']) or empty($_POST['xrand'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xrand.txt")) {
unlink("data/xrand.txt");
}
}
}
-if (isset($_REQUEST['xarc']) and !empty($_REQUEST['xarc']) and ($_REQUEST['xarc'] == "on") and !file_exists("data/xarc.txt")) {
+if (isset($_POST['xarc']) and !empty($_POST['xarc']) and ($_POST['xarc'] == "on") and !file_exists("data/xarc.txt")) {
touch("data/xarc.txt");
}
-if (!isset($_REQUEST['xarc']) or empty($_REQUEST['xarc'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xarc']) or empty($_POST['xarc'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xarc.txt")) {
unlink("data/xarc.txt");
}
}
}
-if (isset($_REQUEST['xcat']) and !empty($_REQUEST['xcat']) and ($_REQUEST['xcat'] == "on") and !file_exists("data/xcat.txt")) {
+if (isset($_POST['xcat']) and !empty($_POST['xcat']) and ($_POST['xcat'] == "on") and !file_exists("data/xcat.txt")) {
touch("data/xcat.txt");
}
-if (!isset($_REQUEST['xcat']) or empty($_REQUEST['xcat'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xcat']) or empty($_POST['xcat'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xcat.txt")) {
unlink("data/xcat.txt");
}
}
}
-if (isset($_REQUEST['nocat']) and !empty($_REQUEST['nocat']) and ($_REQUEST['nocat'] == "on") and !file_exists("data/nocat.txt")) {
+if (isset($_POST['nocat']) and !empty($_POST['nocat']) and ($_POST['nocat'] == "on") and !file_exists("data/nocat.txt")) {
touch("data/nocat.txt");
}
-if (!isset($_REQUEST['nocat']) or empty($_REQUEST['nocat'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['nocat']) or empty($_POST['nocat'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/nocat.txt")) {
unlink("data/nocat.txt");
}
}
}
-if (isset($_REQUEST['round']) and !empty($_REQUEST['round']) and ($_REQUEST['round'] == "on") and !file_exists("data/round.txt")) {
+if (isset($_POST['round']) and !empty($_POST['round']) and ($_POST['round'] == "on") and !file_exists("data/round.txt")) {
touch("data/round.txt");
}
-if (!isset($_REQUEST['round']) or empty($_REQUEST['round'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['round']) or empty($_POST['round'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/round.txt")) {
unlink("data/round.txt");
}
}
}
-if (isset($_REQUEST['center']) and !empty($_REQUEST['center']) and ($_REQUEST['center'] == "on") and !file_exists("data/center.txt")) {
+if (isset($_POST['center']) and !empty($_POST['center']) and ($_POST['center'] == "on") and !file_exists("data/center.txt")) {
touch("data/center.txt");
}
-if (!isset($_REQUEST['center']) or empty($_REQUEST['center'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['center']) or empty($_POST['center'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/center.txt")) {
unlink("data/center.txt");
}
}
}
-if (isset($_REQUEST['old']) and !empty($_REQUEST['old']) and ($_REQUEST['old'] == "on") and !file_exists("data/old.txt")) {
+if (isset($_POST['old']) and !empty($_POST['old']) and ($_POST['old'] == "on") and !file_exists("data/old.txt")) {
touch("data/old.txt");
}
-if (!isset($_REQUEST['old']) or empty($_REQUEST['old'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['old']) or empty($_POST['old'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/old.txt")) {
unlink("data/old.txt");
}
@@ -239,12 +239,12 @@ if (!isset($_REQUEST['old']) or empty($_REQUEST['old'])) {
// start of wiki mod (20071130)
-if (isset($_REQUEST['wiki']) and !empty($_REQUEST['wiki']) and ($_REQUEST['wiki'] == "on") and !file_exists("data/wiki.txt")) {
+if (isset($_POST['wiki']) and !empty($_POST['wiki']) and ($_POST['wiki'] == "on") and !file_exists("data/wiki.txt")) {
touch("data/wiki.txt");
}
-if (!isset($_REQUEST['wiki']) or empty($_REQUEST['wiki'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['wiki']) or empty($_POST['wiki'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/wiki.txt")) {
unlink("data/wiki.txt");
}
@@ -253,20 +253,20 @@ if (!isset($_REQUEST['wiki']) or empty($_REQUEST['wiki'])) {
// end of wiki mod (20071130)
-if (isset($_REQUEST['pf']) and !empty($_REQUEST['pf']) and ($_REQUEST['pf'] == "on") and !file_exists("data/pf.txt")) {
+if (isset($_POST['pf']) and !empty($_POST['pf']) and ($_POST['pf'] == "on") and !file_exists("data/pf.txt")) {
touch("data/pf.txt");
}
-if (!isset($_REQUEST['pf']) or empty($_REQUEST['pf'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf']) or empty($_POST['pf'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf.txt")) {
unlink("data/pf.txt");
}
}
}
-if (isset($_REQUEST['pf_badwords']) and !empty($_REQUEST['pf_badwords']) and (file_get_contents("data/pf-badwords.txt") != $_REQUEST['pf_badwords'])) {
- $pf_badwords_write_content = strtolower($_REQUEST['pf_badwords']);
+if (isset($_POST['pf_badwords']) and !empty($_POST['pf_badwords']) and (file_get_contents("data/pf-badwords.txt") != $_POST['pf_badwords'])) {
+ $pf_badwords_write_content = strtolower($_POST['pf_badwords']);
$pf_badwords_write_content = str_replace("\n","|",$pf_badwords_write_content);
$pf_badwords_write_content = str_replace("\r","|",$pf_badwords_write_content);
$pf_badwords_write_content = str_replace("||","|",$pf_badwords_write_content);
@@ -276,168 +276,168 @@ if (isset($_REQUEST['pf_badwords']) and !empty($_REQUEST['pf_badwords']) and (fi
fclose($fp_pf_badwords_txt);
}
-if (!isset($_REQUEST['pf_badwords']) or empty($_REQUEST['pf_badwords'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf_badwords']) or empty($_POST['pf_badwords'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf-badwords.txt")) {
unlink("data/pf-badwords.txt");
}
}
}
-if (isset($_REQUEST['pf_censor']) and !empty($_REQUEST['pf_censor']) and (file_get_contents("data/pf-censor.txt") != $_REQUEST['pf_censor'])) {
- $pf_censor_write_content = strtolower($_REQUEST['pf_censor']);
+if (isset($_POST['pf_censor']) and !empty($_POST['pf_censor']) and (file_get_contents("data/pf-censor.txt") != $_POST['pf_censor'])) {
+ $pf_censor_write_content = strtolower($_POST['pf_censor']);
$pf_censor_write_content = trim($pf_censor_write_content);
$fp_pf_censor_txt = fopen("data/pf-censor.txt","w");
fwrite($fp_pf_censor_txt,$pf_censor_write_content);
fclose($fp_pf_censor_txt);
}
-if (!isset($_REQUEST['pf_censor']) or empty($_REQUEST['pf_censor'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pf_censor']) or empty($_POST['pf_censor'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/pf-censor.txt")) {
unlink("data/pf-censor.txt");
}
}
}
-if (isset($_REQUEST['bb']) and !empty($_REQUEST['bb']) and ($_REQUEST['bb'] == "on") and !file_exists("data/bb.txt")) {
+if (isset($_POST['bb']) and !empty($_POST['bb']) and ($_POST['bb'] == "on") and !file_exists("data/bb.txt")) {
touch("data/bb.txt");
}
-if (!isset($_REQUEST['bb']) or empty($_REQUEST['bb'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb']) or empty($_POST['bb'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb.txt")) {
unlink("data/bb.txt");
}
}
}
-if (isset($_REQUEST['reg']) and !empty($_REQUEST['reg']) and ($_REQUEST['reg'] == "on") and !file_exists("data/reg.txt")) {
+if (isset($_POST['reg']) and !empty($_POST['reg']) and ($_POST['reg'] == "on") and !file_exists("data/reg.txt")) {
touch("data/reg.txt");
}
-if (!isset($_REQUEST['reg']) or empty($_REQUEST['reg'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['reg']) or empty($_POST['reg'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/reg.txt")) {
unlink("data/reg.txt");
}
}
}
-if (isset($_REQUEST['xapp']) and !empty($_REQUEST['xapp']) and ($_REQUEST['xapp'] == "on") and !file_exists("data/xapp.txt")) {
+if (isset($_POST['xapp']) and !empty($_POST['xapp']) and ($_POST['xapp'] == "on") and !file_exists("data/xapp.txt")) {
touch("data/xapp.txt");
}
-if (!isset($_REQUEST['xapp']) or empty($_REQUEST['xapp'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['xapp']) or empty($_POST['xapp'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/xapp.txt")) {
unlink("data/xapp.txt");
}
}
}
-if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "on") and !file_exists("data/reset.txt")) {
+if (isset($_POST['reset']) and !empty($_POST['reset']) and ($_POST['reset'] == "on") and !file_exists("data/reset.txt")) {
touch("data/reset.txt");
}
-if (!isset($_REQUEST['reset']) or empty($_REQUEST['reset'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['reset']) or empty($_POST['reset'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/reset.txt")) {
unlink("data/reset.txt");
}
}
}
-if (isset($_REQUEST['member']) and !empty($_REQUEST['member']) and ($_REQUEST['member'] == "on") and !file_exists("data/member.txt")) {
+if (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on") and !file_exists("data/member.txt")) {
touch("data/member.txt");
}
-if (!isset($_REQUEST['member']) or empty($_REQUEST['member'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['member']) or empty($_POST['member'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/member.txt")) {
unlink("data/member.txt");
}
}
}
-if (isset($_REQUEST['ml']) and !empty($_REQUEST['ml']) and ($_REQUEST['ml'] == "on") and !file_exists("data/ml.txt")) {
+if (isset($_POST['ml']) and !empty($_POST['ml']) and ($_POST['ml'] == "on") and !file_exists("data/ml.txt")) {
touch("data/ml.txt");
}
-if (!isset($_REQUEST['ml']) or empty($_REQUEST['ml'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml']) or empty($_POST['ml'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml.txt")) {
unlink("data/ml.txt");
}
}
}
-if (isset($_REQUEST['stats']) and !empty($_REQUEST['stats']) and ($_REQUEST['stats'] == "on") and !file_exists("data/bb-stats.txt")) {
+if (isset($_POST['stats']) and !empty($_POST['stats']) and ($_POST['stats'] == "on") and !file_exists("data/bb-stats.txt")) {
touch("data/bb-stats.txt");
}
-if (!isset($_REQUEST['stats']) or empty($_REQUEST['stats'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['stats']) or empty($_POST['stats'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-stats.txt")) {
unlink("data/bb-stats.txt");
}
}
}
-if (isset($_REQUEST['summary']) and !empty($_REQUEST['summary']) and ($_REQUEST['summary'] == "on") and !file_exists("data/bb-summary.txt")) {
+if (isset($_POST['summary']) and !empty($_POST['summary']) and ($_POST['summary'] == "on") and !file_exists("data/bb-summary.txt")) {
touch("data/bb-summary.txt");
}
-if (!isset($_REQUEST['summary']) or empty($_REQUEST['summary'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['summary']) or empty($_POST['summary'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-summary.txt")) {
unlink("data/bb-summary.txt");
}
}
}
-if (isset($_REQUEST['rank']) and !empty($_REQUEST['rank']) and ($_REQUEST['rank'] == "on") and !file_exists("data/rank.txt")) {
+if (isset($_POST['rank']) and !empty($_POST['rank']) and ($_POST['rank'] == "on") and !file_exists("data/rank.txt")) {
touch("data/rank.txt");
}
-if (!isset($_REQUEST['rank']) or empty($_REQUEST['rank'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['rank']) or empty($_POST['rank'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/rank.txt")) {
unlink("data/rank.txt");
}
}
}
-if (isset($_REQUEST['sigs']) and !empty($_REQUEST['sigs']) and ($_REQUEST['sigs'] == "on") and !file_exists("data/bb-sig.txt")) {
+if (isset($_POST['sigs']) and !empty($_POST['sigs']) and ($_POST['sigs'] == "on") and !file_exists("data/bb-sig.txt")) {
touch("data/bb-sig.txt");
}
-if (!isset($_REQUEST['sigs']) or empty($_REQUEST['sigs'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['sigs']) or empty($_POST['sigs'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-sig.txt")) {
unlink("data/bb-sig.txt");
}
}
}
-if (isset($_REQUEST['avatars']) and !empty($_REQUEST['avatars']) and ($_REQUEST['avatars'] == "on") and !file_exists("data/avatar.txt")) {
+if (isset($_POST['avatars']) and !empty($_POST['avatars']) and ($_POST['avatars'] == "on") and !file_exists("data/avatar.txt")) {
touch("data/avatar.txt");
}
-if (!isset($_REQUEST['avatars']) or empty($_REQUEST['avatars'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['avatars']) or empty($_POST['avatars'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/avatar.txt")) {
unlink("data/avatar.txt");
}
}
}
-if ((!isset($_REQUEST['sig']) or empty($_REQUEST['sig'])) and isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
unlink("data/sig.txt");
}
-if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
- $sig = str_replace("[b]","<b>",$_REQUEST['sig']);
+if (isset($_POST['sig']) and !empty($_POST['sig'])) {
+ $sig = str_replace("[b]","<b>",$_POST['sig']);
$sig = str_replace("[/b]","</b>",$sig);
$sig = str_replace("[i]","<i>",$sig);
$sig = str_replace("[/i]","</i>",$sig);
@@ -457,84 +457,84 @@ if (isset($_REQUEST['sig']) and !empty($_REQUEST['sig'])) {
fclose($fp_sig_txt);
}
-if (isset($_REQUEST['pass_len']) and !empty($_REQUEST['pass_len']) and is_numeric($_REQUEST['pass_len']) and ($_REQUEST['pass_len'] > 0) and (file_get_contents("data/bb-passlen.txt") != $_REQUEST['pass_len'])) {
- $pass_len_write_content = number_format($_REQUEST['pass_len'],0,'.','');
+if (isset($_POST['pass_len']) and !empty($_POST['pass_len']) and is_numeric($_POST['pass_len']) and ($_POST['pass_len'] > 0) and (file_get_contents("data/bb-passlen.txt") != $_POST['pass_len'])) {
+ $pass_len_write_content = number_format($_POST['pass_len'],0,'.','');
$fp_pass_len_txt = fopen("data/bb-passlen.txt","w");
fwrite($fp_pass_len_txt,$pass_len_write_content);
fclose($fp_pass_len_txt);
}
-if (!isset($_REQUEST['pass_len']) or empty($_REQUEST['pass_len']) or !is_numeric($_REQUEST['pass_len']) or ($_REQUEST['pass_len'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['pass_len']) or empty($_POST['pass_len']) or !is_numeric($_POST['pass_len']) or ($_POST['pass_len'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-passlen.txt")) {
unlink("data/bb-passlen.txt");
}
}
}
-if (isset($_REQUEST['min_age']) and !empty($_REQUEST['min_age']) and is_numeric($_REQUEST['min_age']) and ($_REQUEST['min_age'] > 0) and (file_get_contents("data/bb-min-age.txt") != $_REQUEST['min_age'])) {
- $min_age_write_content = number_format($_REQUEST['min_age'],0,'.','');
+if (isset($_POST['min_age']) and !empty($_POST['min_age']) and is_numeric($_POST['min_age']) and ($_POST['min_age'] > 0) and (file_get_contents("data/bb-min-age.txt") != $_POST['min_age'])) {
+ $min_age_write_content = number_format($_POST['min_age'],0,'.','');
$fp_min_age_txt = fopen("data/bb-min-age.txt","w");
fwrite($fp_min_age_txt,$min_age_write_content);
fclose($fp_min_age_txt);
}
-if (!isset($_REQUEST['min_age']) or empty($_REQUEST['min_age']) or !is_numeric($_REQUEST['min_age']) or ($_REQUEST['min_age'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['min_age']) or empty($_POST['min_age']) or !is_numeric($_POST['min_age']) or ($_POST['min_age'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-min-age.txt")) {
unlink("data/bb-min-age.txt");
}
}
}
-if (isset($_REQUEST['max_age']) and !empty($_REQUEST['max_age']) and is_numeric($_REQUEST['max_age']) and ($_REQUEST['max_age'] > 0) and (file_get_contents("data/bb-max-age.txt") != $_REQUEST['max_age'])) {
- $max_age_write_content = number_format($_REQUEST['max_age'],0,'.','');
+if (isset($_POST['max_age']) and !empty($_POST['max_age']) and is_numeric($_POST['max_age']) and ($_POST['max_age'] > 0) and (file_get_contents("data/bb-max-age.txt") != $_POST['max_age'])) {
+ $max_age_write_content = number_format($_POST['max_age'],0,'.','');
$fp_max_age_txt = fopen("data/bb-max-age.txt","w");
fwrite($fp_max_age_txt,$max_age_write_content);
fclose($fp_max_age_txt);
}
-if (!isset($_REQUEST['max_age']) or empty($_REQUEST['max_age']) or !is_numeric($_REQUEST['max_age']) or ($_REQUEST['max_age'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['max_age']) or empty($_POST['max_age']) or !is_numeric($_POST['max_age']) or ($_POST['max_age'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-max-age.txt")) {
unlink("data/bb-max-age.txt");
}
}
}
-if (isset($_REQUEST['bb_idle']) and !empty($_REQUEST['bb_idle']) and is_numeric($_REQUEST['bb_idle']) and ($_REQUEST['bb_idle'] > 0) and (file_get_contents("data/bb-idle.txt") != $_REQUEST['bb_idle'])) {
- $bb_idle_write_content = number_format($_REQUEST['bb_idle'],0,'.','');
+if (isset($_POST['bb_idle']) and !empty($_POST['bb_idle']) and is_numeric($_POST['bb_idle']) and ($_POST['bb_idle'] > 0) and (file_get_contents("data/bb-idle.txt") != $_POST['bb_idle'])) {
+ $bb_idle_write_content = number_format($_POST['bb_idle'],0,'.','');
$fp_bb_idle_txt = fopen("data/bb-idle.txt","w");
fwrite($fp_bb_idle_txt,$bb_idle_write_content);
fclose($fp_bb_idle_txt);
}
-if (!isset($_REQUEST['bb_idle']) or empty($_REQUEST['bb_idle']) or !is_numeric($_REQUEST['bb_idle']) or ($_REQUEST['bb_idle'] <= 0)) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_idle']) or empty($_POST['bb_idle']) or !is_numeric($_POST['bb_idle']) or ($_POST['bb_idle'] <= 0)) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-idle.txt")) {
unlink("data/bb-idle.txt");
}
}
}
-if (isset($_REQUEST['bb_reserved']) and !empty($_REQUEST['bb_reserved']) and (file_get_contents("data/bb-reserved.txt") != $_REQUEST['bb_reserved'])) {
- $bb_reserved_write_content = strtolower($_REQUEST['bb_reserved']);
+if (isset($_POST['bb_reserved']) and !empty($_POST['bb_reserved']) and (file_get_contents("data/bb-reserved.txt") != $_POST['bb_reserved'])) {
+ $bb_reserved_write_content = strtolower($_POST['bb_reserved']);
$bb_reserved_write_content = trim($bb_reserved_write_content);
$fp_bb_reserved_txt = fopen("data/bb-reserved.txt","w");
fwrite($fp_bb_reserved_txt,$bb_reserved_write_content);
fclose($fp_bb_reserved_txt);
}
-if (!isset($_REQUEST['bb_reserved']) or empty($_REQUEST['bb_reserved'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_reserved']) or empty($_POST['bb_reserved'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-reserved.txt")) {
unlink("data/bb-reserved.txt");
}
}
}
-if (isset($_REQUEST['bb_disclaimer']) and !empty($_REQUEST['bb_disclaimer']) and (file_get_contents("data/bb-disclaimer.txt") != $_REQUEST['bb_disclaimer'])) {
- $bb_disclaimer_write_content = ucfirst($_REQUEST['bb_disclaimer']);
+if (isset($_POST['bb_disclaimer']) and !empty($_POST['bb_disclaimer']) and (file_get_contents("data/bb-disclaimer.txt") != $_POST['bb_disclaimer'])) {
+ $bb_disclaimer_write_content = ucfirst($_POST['bb_disclaimer']);
$bb_disclaimer_write_content = str_replace("\n","<br>",$bb_disclaimer_write_content);
$bb_disclaimer_write_content = trim($bb_disclaimer_write_content);
$fp_bb_disclaimer_txt = fopen("data/bb-disclaimer.txt","w");
@@ -542,16 +542,16 @@ if (isset($_REQUEST['bb_disclaimer']) and !empty($_REQUEST['bb_disclaimer']) and
fclose($fp_bb_disclaimer_txt);
}
-if (!isset($_REQUEST['bb_disclaimer']) or empty($_REQUEST['bb_disclaimer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bb_disclaimer']) or empty($_POST['bb_disclaimer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bb-disclaimer.txt")) {
unlink("data/bb-disclaimer.txt");
}
}
}
-if (isset($_REQUEST['ml_reply2']) and !empty($_REQUEST['ml_reply2']) and (file_get_contents("data/ml-reply2.txt") != $_REQUEST['ml_reply2']) and (ereg("@", $_REQUEST['ml_reply2'])) and (ereg("\.", $_REQUEST['ml_reply2']))) {
- $ml_reply2_write_content = strtolower($_REQUEST['ml_reply2']);
+if (isset($_POST['ml_reply2']) and !empty($_POST['ml_reply2']) and (file_get_contents("data/ml-reply2.txt") != $_POST['ml_reply2']) and (ereg("@", $_POST['ml_reply2'])) and (ereg("\.", $_POST['ml_reply2']))) {
+ $ml_reply2_write_content = strtolower($_POST['ml_reply2']);
$ml_reply2_write_content = trim($ml_reply2_write_content);
$ml_reply2_write_content = htmlentities($ml_reply2_write_content, ENT_NOQUOTES);
$fp_ml_reply2_txt = fopen("data/ml-reply2.txt","w");
@@ -559,69 +559,69 @@ if (isset($_REQUEST['ml_reply2']) and !empty($_REQUEST['ml_reply2']) and (file_g
fclose($fp_ml_reply2_txt);
}
-if (!isset($_REQUEST['ml_reply2']) or empty($_REQUEST['ml_reply2'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_reply2']) or empty($_POST['ml_reply2'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-reply2.txt")) {
unlink("data/ml-reply2.txt");
}
}
}
-if (isset($_REQUEST['ml_prepend']) and !empty($_REQUEST['ml_prepend']) and (file_get_contents("data/ml-prepend.txt") != $_REQUEST['ml_prepend'])) {
- $ml_prepend_write_content = ucfirst($_REQUEST['ml_prepend']);
+if (isset($_POST['ml_prepend']) and !empty($_POST['ml_prepend']) and (file_get_contents("data/ml-prepend.txt") != $_POST['ml_prepend'])) {
+ $ml_prepend_write_content = ucfirst($_POST['ml_prepend']);
$ml_prepend_write_content = trim($ml_prepend_write_content);
$fp_ml_prepend_txt = fopen("data/ml-prepend.txt","w");
fwrite($fp_ml_prepend_txt,$ml_prepend_write_content);
fclose($fp_ml_prepend_txt);
}
-if (!isset($_REQUEST['ml_prepend']) or empty($_REQUEST['ml_prepend'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_prepend']) or empty($_POST['ml_prepend'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-prepend.txt")) {
unlink("data/ml-prepend.txt");
}
}
}
-if (isset($_REQUEST['ml_header']) and !empty($_REQUEST['ml_header']) and (file_get_contents("data/ml-header.txt") != $_REQUEST['ml_header'])) {
- $ml_header_write_content = ucfirst($_REQUEST['ml_header']);
+if (isset($_POST['ml_header']) and !empty($_POST['ml_header']) and (file_get_contents("data/ml-header.txt") != $_POST['ml_header'])) {
+ $ml_header_write_content = ucfirst($_POST['ml_header']);
$ml_header_write_content = trim($ml_header_write_content);
$fp_ml_header_txt = fopen("data/ml-header.txt","w");
fwrite($fp_ml_header_txt,$ml_header_write_content);
fclose($fp_ml_header_txt);
}
-if (!isset($_REQUEST['ml_header']) or empty($_REQUEST['ml_header'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_header']) or empty($_POST['ml_header'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-header.txt")) {
unlink("data/ml-header.txt");
}
}
}
-if (isset($_REQUEST['ml_footer']) and !empty($_REQUEST['ml_footer']) and (file_get_contents("data/ml-footer.txt") != $_REQUEST['ml_footer'])) {
- $ml_footer_write_content = ucfirst($_REQUEST['ml_footer']);
+if (isset($_POST['ml_footer']) and !empty($_POST['ml_footer']) and (file_get_contents("data/ml-footer.txt") != $_POST['ml_footer'])) {
+ $ml_footer_write_content = ucfirst($_POST['ml_footer']);
$ml_footer_write_content = trim($ml_footer_write_content);
$fp_ml_footer_txt = fopen("data/ml-footer.txt","w");
fwrite($fp_ml_footer_txt,$ml_footer_write_content);
fclose($fp_ml_footer_txt);
}
-if (!isset($_REQUEST['ml_footer']) or empty($_REQUEST['ml_footer'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['ml_footer']) or empty($_POST['ml_footer'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/ml-footer.txt")) {
unlink("data/ml-footer.txt");
}
}
}
-if (isset($_REQUEST['del_favicon']) and !empty($_REQUEST['del_favicon']) and ($_REQUEST['del_favicon'] == "on")) {
+if (isset($_POST['del_favicon']) and !empty($_POST['del_favicon']) and ($_POST['del_favicon'] == "on")) {
if (file_exists("favicon.ico")) {
unlink("favicon.ico");
}
}
-if (isset($_REQUEST['del_picture']) and !empty($_REQUEST['del_picture']) and ($_REQUEST['del_picture'] == "on")) {
+if (isset($_POST['del_picture']) and !empty($_POST['del_picture']) and ($_POST['del_picture'] == "on")) {
if (file_exists("images/profile.gif")) {
unlink("images/profile.gif");
}
@@ -635,7 +635,7 @@ if (isset($_REQUEST['del_picture']) and !empty($_REQUEST['del_picture']) and ($_
}
}
-if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_REQUEST['del_avatar'] == "on")) {
+if (isset($_POST['del_avatar']) and !empty($_POST['del_avatar']) and ($_POST['del_avatar'] == "on")) {
if (file_exists("images/avatar.gif")) {
unlink("images/avatar.gif");
}
@@ -649,39 +649,39 @@ if (isset($_REQUEST['del_avatar']) and !empty($_REQUEST['del_avatar']) and ($_RE
}
}
-if (isset($_REQUEST['bg_scroll']) and !empty($_REQUEST['bg_scroll']) and ($_REQUEST['bg_scroll'] == "on") and !file_exists("data/bg-scroll.txt")) {
+if (isset($_POST['bg_scroll']) and !empty($_POST['bg_scroll']) and ($_POST['bg_scroll'] == "on") and !file_exists("data/bg-scroll.txt")) {
touch("data/bg-scroll.txt");
}
-if (!isset($_REQUEST['bg_scroll']) or empty($_REQUEST['bg_scroll'])) {
- if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+if (!isset($_POST['bg_scroll']) or empty($_POST['bg_scroll'])) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
if (file_exists("data/bg-scroll.txt")) {
unlink("data/bg-scroll.txt");
}
}
}
-if (isset($_REQUEST['bg_repeat']) and !empty($_REQUEST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_REQUEST['bg_repeat']) and ($_REQUEST['bg_repeat'] != "repeat")) {
+if (isset($_POST['bg_repeat']) and !empty($_POST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_POST['bg_repeat']) and ($_POST['bg_repeat'] != "repeat")) {
$fp_bg_repeat_txt = fopen("data/bg-repeat.txt","w");
- fwrite($fp_bg_repeat_txt,$_REQUEST['bg_repeat']);
+ fwrite($fp_bg_repeat_txt,$_POST['bg_repeat']);
fclose($fp_bg_repeat_txt);
}
-if (isset($_REQUEST['bg_repeat']) and !empty($_REQUEST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_REQUEST['bg_repeat']) and ($_REQUEST['bg_repeat'] == "repeat") and file_exists("data/bg-repeat.txt")) {
+if (isset($_POST['bg_repeat']) and !empty($_POST['bg_repeat']) and (file_get_contents("data/bg-repeat.txt") != $_POST['bg_repeat']) and ($_POST['bg_repeat'] == "repeat") and file_exists("data/bg-repeat.txt")) {
unlink("data/bg-repeat.txt");
}
-if (isset($_REQUEST['bg_position']) and !empty($_REQUEST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_REQUEST['bg_position']) and ($_REQUEST['bg_position'] != "top left")) {
+if (isset($_POST['bg_position']) and !empty($_POST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_POST['bg_position']) and ($_POST['bg_position'] != "top left")) {
$fp_bg_position_txt = fopen("data/bg-position.txt","w");
- fwrite($fp_bg_position_txt,$_REQUEST['bg_position']);
+ fwrite($fp_bg_position_txt,$_POST['bg_position']);
fclose($fp_bg_position_txt);
}
-if (isset($_REQUEST['bg_position']) and !empty($_REQUEST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_REQUEST['bg_position']) and ($_REQUEST['bg_position'] == "top left") and file_exists("data/bg-position.txt")) {
+if (isset($_POST['bg_position']) and !empty($_POST['bg_position']) and (file_get_contents("data/bg-position.txt") != $_POST['bg_position']) and ($_POST['bg_position'] == "top left") and file_exists("data/bg-position.txt")) {
unlink("data/bg-position.txt");
}
-if (isset($_REQUEST['del_background']) and !empty($_REQUEST['del_background']) and ($_REQUEST['del_background'] == "on")) {
+if (isset($_POST['del_background']) and !empty($_POST['del_background']) and ($_POST['del_background'] == "on")) {
if (file_exists("images/background.gif")) {
unlink("images/background.gif");
}
@@ -893,16 +893,16 @@ if (isset($_FILES['background']) and !empty($_FILES['background'])) {
}
}
-if (isset($_REQUEST['profile']) and !empty($_REQUEST['profile']) and (file_get_contents("data/profile.txt") != $_REQUEST['profile'])) {
- $profile_write_content = ucfirst($_REQUEST['profile']);
+if (isset($_POST['profile']) and !empty($_POST['profile']) and (file_get_contents("data/profile.txt") != $_POST['profile'])) {
+ $profile_write_content = ucfirst($_POST['profile']);
$fp_profile_txt = fopen("data/profile.php","w");
fwrite($fp_profile_txt,$profile_write_content);
fclose($fp_profile_txt);
}
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and (file_get_contents("data/username.txt") != $_REQUEST['username'])) {
+if (isset($_POST['username']) and !empty($_POST['username']) and (file_get_contents("data/username.txt") != $_POST['username'])) {
$fp_username_txt = fopen("data/username.txt","w");
- fwrite($fp_username_txt,$_REQUEST['username']);
+ fwrite($fp_username_txt,$_POST['username']);
fclose($fp_username_txt);
$login_url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/login.php";
$login_url = str_replace("//login.php", "/login.php", $login_url);
@@ -1227,11 +1227,11 @@ if (file_exists("data/bb-idle.txt")) {
<tr><td></td><td><input class=input type=submit value="click here to activate new settings"></td></tr>
<?php
-if (isset($_REQUEST['passwd_new']) and !empty($_REQUEST['passwd_new']) and isset($_REQUEST['passwd_cur']) and !empty($_REQUEST['passwd_cur']) and isset($_REQUEST['passwd_conf']) and !empty($_REQUEST['passwd_conf']) and ($_REQUEST['passwd_new'] == $_REQUEST['passwd_conf'])) {
- $passwd_new_crypt = sha1($_REQUEST['passwd_new']);
+if (isset($_POST['passwd_new']) and !empty($_POST['passwd_new']) and isset($_POST['passwd_cur']) and !empty($_POST['passwd_cur']) and isset($_POST['passwd_conf']) and !empty($_POST['passwd_conf']) and ($_POST['passwd_new'] == $_POST['passwd_conf'])) {
+ $passwd_new_crypt = sha1($_POST['passwd_new']);
$passwd_new_crypt = md5($passwd_new_crypt);
$passwd_new_crypt = crypt($passwd_new_crypt, $passwd_new_crypt);
- $passwd_cur_crypt = sha1($_REQUEST['passwd_cur']);
+ $passwd_cur_crypt = sha1($_POST['passwd_cur']);
$passwd_cur_crypt = md5($passwd_cur_crypt);
$passwd_cur_crypt = crypt($passwd_cur_crypt, $passwd_cur_crypt);
diff --git a/sitemap.php b/sitemap.php
index 483017e..160448a 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -2,20 +2,6 @@
error_reporting(E_ERROR);
-function stripslashes_array($data) {
- if (is_array($data)){
- foreach ($data as $key => $value){
- $data[$key] = stripslashes_array($value);
- }
- return $data;
- }
- else{
- return stripslashes($data);
- }
-}
-
-$_REQUEST = stripslashes_array($_REQUEST);
-
$dir = "data/items";
if ($dh_sitemap_items = opendir($dir)) {