This commit has been accessed 3,032 times via Git panel.
commit 4af00af973cdffabb863ad65c8aa75647e56f940
tree 1be2914c79881fc33e6a27700017fc21f6470345
parent a343c1200dd37c89738f1c372d61333502ab5057
author Engels Antonio <engels@majcms.org> 1277314212 +0800
committer Engels Antonio <engels@majcms.org> 1277314212 +0800
maj-1.0-20090624-bb.zip
diff --git a/fonts.php b/fonts.php
index 2018bc1..b63fcc4 100644
--- a/fonts.php
+++ b/fonts.php
@@ -179,6 +179,81 @@ if (!isset($_POST['panel_footer']) or empty($_POST['panel_footer'])) {
}
}
+if (isset($_POST['body_size']) and is_numeric($_POST['body_size']) and !empty($_POST['body_size']) and (file_get_contents("data/fonts/body-size.txt") != $_POST['body_size']) and ($_POST['body_size'] != "11")) {
+ $body_size_write_content = trim($_POST['body_size']);
+ $fp_body_size_txt = fopen("data/fonts/body-size.txt","w");
+ fwrite($fp_body_size_txt,$body_size_write_content);
+ fclose($fp_body_size_txt);
+}
+
+if (!isset($_POST['body_size']) or empty($_POST['body_size']) or ($_POST['body_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/body-size.txt")) {
+ unlink("data/fonts/body-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['input_size']) and is_numeric($_POST['input_size']) and !empty($_POST['input_size']) and (file_get_contents("data/fonts/input-size.txt") != $_POST['input_size']) and ($_POST['input_size'] != "11")) {
+ $input_size_write_content = trim($_POST['input_size']);
+ $fp_input_size_txt = fopen("data/fonts/input-size.txt","w");
+ fwrite($fp_input_size_txt,$input_size_write_content);
+ fclose($fp_input_size_txt);
+}
+
+if (!isset($_POST['input_size']) or empty($_POST['input_size']) or ($_POST['input_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/input-size.txt")) {
+ unlink("data/fonts/input-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_title_size']) and is_numeric($_POST['panel_title_size']) and !empty($_POST['panel_title_size']) and (file_get_contents("data/fonts/panel-title-size.txt") != $_POST['panel_title_size']) and ($_POST['panel_title_size'] != "12")) {
+ $panel_title_size_write_content = trim($_POST['panel_title_size']);
+ $fp_panel_title_size_txt = fopen("data/fonts/panel-title-size.txt","w");
+ fwrite($fp_panel_title_size_txt,$panel_title_size_write_content);
+ fclose($fp_panel_title_size_txt);
+}
+
+if (!isset($_POST['panel_title_size']) or empty($_POST['panel_title_size']) or ($_POST['panel_title_size'] == "12")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-title-size.txt")) {
+ unlink("data/fonts/panel-title-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_body_size']) and is_numeric($_POST['panel_body_size']) and !empty($_POST['panel_body_size']) and (file_get_contents("data/fonts/panel-body-size.txt") != $_POST['panel_body_size']) and ($_POST['panel_body_size'] != "11")) {
+ $panel_body_size_write_content = trim($_POST['panel_body_size']);
+ $fp_panel_body_size_txt = fopen("data/fonts/panel-body-size.txt","w");
+ fwrite($fp_panel_body_size_txt,$panel_body_size_write_content);
+ fclose($fp_panel_body_size_txt);
+}
+
+if (!isset($_POST['panel_body_size']) or empty($_POST['panel_body_size']) or ($_POST['panel_body_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-body-size.txt")) {
+ unlink("data/fonts/panel-body-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_footer_size']) and is_numeric($_POST['panel_footer_size']) and !empty($_POST['panel_footer_size']) and (file_get_contents("data/fonts/panel-footer-size.txt") != $_POST['panel_footer_size']) and ($_POST['panel_footer_size'] != "10")) {
+ $panel_footer_size_write_content = trim($_POST['panel_footer_size']);
+ $fp_panel_footer_size_txt = fopen("data/fonts/panel-footer-size.txt","w");
+ fwrite($fp_panel_footer_size_txt,$panel_footer_size_write_content);
+ fclose($fp_panel_footer_size_txt);
+}
+
+if (!isset($_POST['panel_footer_size']) or empty($_POST['panel_footer_size']) or ($_POST['panel_footer_size'] == "10")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-footer-size.txt")) {
+ unlink("data/fonts/panel-footer-size.txt");
+ }
+ }
+}
+
?>
<title>Fonts</title>
@@ -513,37 +588,81 @@ a:active {
<input type=hidden name=edit value=on>
<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc>
-<tr><td bgcolor=#ffffff><p>body</p></td><td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
+<tr><td bgcolor=#ffffff align=center><b>target</b></td><td bgcolor=#ffffff align=center><b>font family</b></td><td bgcolor=#ffffff align=center><b>px</b></td></tr>
+
+<tr>
+<td bgcolor=#ffffff><p>body</p></td>
+<td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
echo ' value="';
readfile("data/fonts/body.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="body_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/body-size.txt")) {
+ readfile("data/fonts/body-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>input</p></td><td bgcolor=#ffffff><input type=text class=input name=input autocomplete=off<?php if (file_exists("data/fonts/input.txt")) {
echo ' value="';
readfile("data/fonts/input.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="input_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/input-size.txt")) {
+ readfile("data/fonts/input-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel title</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_title autocomplete=off<?php if (file_exists("data/fonts/panel-title.txt")) {
echo ' value="';
readfile("data/fonts/panel-title.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_title_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-title-size.txt")) {
+ readfile("data/fonts/panel-title-size.txt");
+}
+else {
+ echo "12";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel body</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_body autocomplete=off<?php if (file_exists("data/fonts/panel-body.txt")) {
echo ' value="';
readfile("data/fonts/panel-body.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_body_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-body-size.txt")) {
+ readfile("data/fonts/panel-body-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel footer</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_footer autocomplete=off<?php if (file_exists("data/fonts/panel-footer.txt")) {
echo ' value="';
readfile("data/fonts/panel-footer.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_footer_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-footer-size.txt")) {
+ readfile("data/fonts/panel-footer-size.txt");
+}
+else {
+ echo "10";
+}
+?>"></td>
+</tr>
-<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td></tr>
+<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td><td bgcolor=#ffffff rowspan=3><p></p></td></tr>
</form>
<form action=fonts.php method=post>
<input type=hidden name=reset value=go>
diff --git a/index.php b/index.php
index 84e8bd7..83317ef 100644
--- a/index.php
+++ b/index.php
@@ -13,300 +13,300 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP
}
if (get_magic_quotes_gpc()) {
- function stripslashes_array($data) {
- if (is_array($data)) {
- foreach ($data as $key => $value) {
- $data[$key] = stripslashes_array($value);
+ function stripslashes_array($maj_data) {
+ if (is_array($maj_data)) {
+ foreach ($maj_data as $maj_key => $maj_value) {
+ $maj_data[$maj_key] = stripslashes_array($maj_value);
}
- return $data;
+ return $maj_data;
}
else {
- return stripslashes($data);
+ return stripslashes($maj_data);
}
}
$_REQUEST = stripslashes_array($_REQUEST);
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
- $req_entry = trim($_REQUEST['entry']);
+ $maj_req_entry = trim($_REQUEST['entry']);
}
if (isset($_REQUEST['show']) and !empty($_REQUEST['show'])) {
- $req_show = trim($_REQUEST['show']);
+ $maj_req_show = trim($_REQUEST['show']);
}
if (isset($_REQUEST['find']) and !empty($_REQUEST['find'])) {
- $req_find = trim($_REQUEST['find']);
- $req_find = str_replace(" ","-",$req_find);
- $req_find = strtolower($req_find);
- $req_find = strip_tags($req_find);
+ $maj_req_find = trim($_REQUEST['find']);
+ $maj_req_find = str_replace(" ","-",$maj_req_find);
+ $maj_req_find = strtolower($maj_req_find);
+ $maj_req_find = strip_tags($maj_req_find);
}
if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
- $req_category = trim($_REQUEST['category']);
- $req_category = str_replace(" ","-",$req_category);
- $req_category = strtolower($req_category);
- $req_category = strip_tags($req_category);
+ $maj_req_category = trim($_REQUEST['category']);
+ $maj_req_category = str_replace(" ","-",$maj_req_category);
+ $maj_req_category = strtolower($maj_req_category);
+ $maj_req_category = strip_tags($maj_req_category);
}
if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
- $req_archive = trim($_REQUEST['archive']);
+ $maj_req_archive = trim($_REQUEST['archive']);
}
if (isset($_REQUEST['author']) and !empty($_REQUEST['author'])) {
- $req_author = trim($_REQUEST['author']);
- $req_author = str_replace(" ","-",$req_author);
- $req_author = strtolower($req_author);
- $req_author = strip_tags($req_author);
+ $maj_req_author = trim($_REQUEST['author']);
+ $maj_req_author = str_replace(" ","-",$maj_req_author);
+ $maj_req_author = strtolower($maj_req_author);
+ $maj_req_author = strip_tags($maj_req_author);
}
if (file_exists("data/offset.txt")) {
- $offset = file_get_contents("data/offset.txt");
+ $maj_offset = file_get_contents("data/offset.txt");
}
else {
- $offset = 0;
+ $maj_offset = 0;
}
if (file_exists("data/increase.txt")) {
- $increase = file_get_contents("data/increase.txt");
+ $maj_increase = file_get_contents("data/increase.txt");
}
else {
- $increase = 5;
+ $maj_increase = 5;
}
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
- $wmain = "610";
+ $maj_wmain = "610";
}
else {
- $wmain = "525";
+ $maj_wmain = "525";
}
-$wside = "175";
-$wspace = "10";
+$maj_wside = "175";
+$maj_wspace = "10";
-$wtable = $wside + $wspace + $wmain + $wspace + $wside;
+$maj_wtable = $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside;
-$default_blog_title = "My Activity Journal";
-$default_username = "maj";
-$default_password = "php";
-$default_blog_profile = 'This cool site is powered by <a href="http://maj.sourceforge.net/" target="_maj">My Activity Journal</a>, a simple, <a href="http://php.net/" target="_maj">PHP</a>-based, <a href="http://www.opensource.org/licenses/gpl-license.php" target="_maj">Open Source</a> blog written from scratch as a spare time family project by <a href="http://psylocke.org/" target="_maj">Psylocke</a>, <a href="http://gaffud.com/" target="_maj">Magie</a>, and <a href="http://engels.mortega.net/" target="_maj">Engels</a> Antonio.';
-$default_blog_author = "My Activity Journal";
+$maj_default_blog_title = "My Activity Journal";
+$maj_default_username = "maj";
+$maj_default_password = "php";
+$maj_default_blog_profile = 'This cool site is powered by <a href="http://maj.sourceforge.net/" target="_maj">My Activity Journal</a>, a simple, <a href="http://php.net/" target="_maj">PHP</a>-based, <a href="http://www.opensource.org/licenses/gpl-license.php" target="_maj">Open Source</a> blog written from scratch as a spare time family project by <a href="http://psylocke.org/" target="_maj">Psylocke</a>, <a href="http://gaffud.com/" target="_maj">Magie</a>, and <a href="http://engels.mortega.net/" target="_maj">Engels</a> Antonio.';
+$maj_default_blog_author = "My Activity Journal";
if (!file_exists("data")) {
mkdir("data");
}
if (!file_exists("data/.htaccess")) {
- $htaccess = "Order deny,allow\nDeny from all";
- $fp_htaccess_txt = fopen("data/.htaccess","w");
- fwrite($fp_htaccess_txt,$htaccess);
- fclose($fp_htaccess_txt);
+ $maj_htaccess = "Order deny,allow\nDeny from all";
+ $maj_fp_htaccess_txt = fopen("data/.htaccess","w");
+ fwrite($maj_fp_htaccess_txt,$maj_htaccess);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/title.txt")) {
- $fp_default_title_txt = fopen("data/title.txt","w");
- fwrite($fp_default_title_txt,$default_blog_title);
- fclose($fp_default_title_txt);
+ $maj_fp_default_title_txt = fopen("data/title.txt","w");
+ fwrite($maj_fp_default_title_txt,$maj_default_blog_title);
+ fclose($maj_fp_default_title_txt);
}
if (!file_exists("data/username.txt")) {
- $fp_htaccess_txt = fopen("data/username.txt","w");
- fwrite($fp_htaccess_txt,$default_username);
- fclose($fp_htaccess_txt);
+ $maj_fp_htaccess_txt = fopen("data/username.txt","w");
+ fwrite($maj_fp_htaccess_txt,$maj_default_username);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/password.txt")) {
- $default_password = sha1($default_password);
- $default_password = md5($default_password);
- $default_password = crypt($default_password,$default_password);
- $fp_htaccess_txt = fopen("data/password.txt","w");
- fwrite($fp_htaccess_txt,$default_password);
- fclose($fp_htaccess_txt);
+ $maj_default_password = sha1($maj_default_password);
+ $maj_default_password = md5($maj_default_password);
+ $maj_default_password = crypt($maj_default_password,$maj_default_password);
+ $maj_fp_htaccess_txt = fopen("data/password.txt","w");
+ fwrite($maj_fp_htaccess_txt,$maj_default_password);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/profile.php")) {
- $fp_default_profile_txt = fopen("data/profile.php","w");
- fwrite($fp_default_profile_txt,$default_blog_profile);
- fclose($fp_default_profile_txt);
+ $maj_fp_default_profile_txt = fopen("data/profile.php","w");
+ fwrite($maj_fp_default_profile_txt,$maj_default_blog_profile);
+ fclose($maj_fp_default_profile_txt);
}
if (!file_exists("data/author.txt")) {
- $fp_default_author_txt = fopen("data/author.txt","w");
- fwrite($fp_default_author_txt,$default_blog_author);
- fclose($fp_default_author_txt);
+ $maj_fp_default_author_txt = fopen("data/author.txt","w");
+ fwrite($maj_fp_default_author_txt,$maj_default_blog_author);
+ fclose($maj_fp_default_author_txt);
}
-$default_title = file_get_contents("data/title.txt");
-$login_username = file_get_contents("data/username.txt");
+$maj_default_title = file_get_contents("data/title.txt");
+$maj_login_username = file_get_contents("data/username.txt");
-if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
+if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) {
if (file_exists("data/hits.txt")) {
- $global_hits_count = file_get_contents("data/hits.txt");
+ $maj_global_hits_count = file_get_contents("data/hits.txt");
}
else {
- $global_hits_count = "0";
+ $maj_global_hits_count = "0";
}
- $global_hits_count = $global_hits_count + 1;
+ $maj_global_hits_count = $maj_global_hits_count + 1;
- $global_hits_file = fopen("data/hits.txt","w");
- fwrite($global_hits_file,$global_hits_count);
- fclose($global_hits_file);
+ $maj_global_hits_file = fopen("data/hits.txt","w");
+ fwrite($maj_global_hits_file,$maj_global_hits_count);
+ fclose($maj_global_hits_file);
}
if (@ereg("Google",$_SERVER['HTTP_USER_AGENT'])) {
if (file_exists("data/google.txt")) {
- $google_hits_count = file_get_contents("data/google.txt");
+ $maj_google_hits_count = file_get_contents("data/google.txt");
}
else {
- $google_hits_count = "0";
+ $maj_google_hits_count = "0";
}
- $google_hits_count = $google_hits_count + 1;
+ $maj_google_hits_count = $maj_google_hits_count + 1;
- $google_hits_file = fopen("data/google.txt","w");
- fwrite($google_hits_file,$google_hits_count);
- fclose($google_hits_file);
+ $maj_google_hits_file = fopen("data/google.txt","w");
+ fwrite($maj_google_hits_file,$maj_google_hits_count);
+ fclose($maj_google_hits_file);
}
-function str_rand($length = 8,$seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
- $str = '';
- $seeds_count = strlen($seeds);
+function str_rand($maj_length = 8,$maj_seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
+ $maj_str = '';
+ $maj_seeds_count = strlen($maj_seeds);
- list($usec,$sec) = explode(' ',microtime());
- $seed = (float) $sec + ((float) $usec * 100000);
- mt_srand($seed);
+ list($maj_usec,$maj_sec) = explode(' ',microtime());
+ $maj_seed = (float) $maj_sec + ((float) $maj_usec * 100000);
+ mt_srand($maj_seed);
- for ($i = 0; $length > $i; $i++) {
- $str .= $seeds{mt_rand(0,$seeds_count - 1)};
+ for ($maj_i = 0; $maj_length > $maj_i; $maj_i++) {
+ $maj_str .= $maj_seeds{mt_rand(0,$maj_seeds_count - 1)};
}
- return $str;
+ return $maj_str;
}
-function rmdirr($recurse_dirname) {
+function rmdirr($maj_recurse_dirname) {
- if (!file_exists($recurse_dirname)) {
+ if (!file_exists($maj_recurse_dirname)) {
return false;
}
- if (is_file($recurse_dirname)) {
- return unlink($recurse_dirname);
+ if (is_file($maj_recurse_dirname)) {
+ return unlink($maj_recurse_dirname);
}
- $recurse_dir = dir($recurse_dirname);
+ $maj_recurse_dir = dir($maj_recurse_dirname);
- while (false !== $recurse_entry = $recurse_dir->read()) {
+ while (false !== $maj_recurse_entry = $maj_recurse_dir->read()) {
- if ($recurse_entry == '.' || $recurse_entry == '..') {
+ if ($maj_recurse_entry == '.' || $maj_recurse_entry == '..') {
continue;
}
- rmdirr("$recurse_dirname/$recurse_entry");
+ rmdirr("$maj_recurse_dirname/$maj_recurse_entry");
}
- $recurse_dir->close();
- return rmdir($recurse_dirname);
+ $maj_recurse_dir->close();
+ return rmdir($maj_recurse_dirname);
}
if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
ini_set("zlib.output_compression","off");
- $dl_file = str_replace("../","",@$_REQUEST['download']);
- go_download($dl_file);
+ $maj_dl_file = str_replace("../","",@$_REQUEST['download']);
+ go_download($maj_dl_file);
die();
}
-function go_download($dl_file) {
+function go_download($maj_dl_file) {
- $req_entry = trim($_REQUEST['entry']);
+ $maj_req_entry = trim($_REQUEST['entry']);
if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == "pdf")) {
- $dl_path = "data/items/$req_entry/pdf/file";
- $count_path = "data/items/$req_entry/pdf/count";
- $count_file = "dl.txt";
+ $maj_dl_path = "data/items/$maj_req_entry/pdf/file";
+ $maj_count_path = "data/items/$maj_req_entry/pdf/count";
+ $maj_count_file = "dl.txt";
}
if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == "filedrop")) {
- $dl_path = "data/items/$req_entry/filedrop/files";
- $count_path = "data/items/$req_entry/filedrop/count";
- $count_file = "{$dl_file}.txt";
+ $maj_dl_path = "data/items/$maj_req_entry/filedrop/files";
+ $maj_count_path = "data/items/$maj_req_entry/filedrop/count";
+ $maj_count_file = "{$maj_dl_file}.txt";
}
- $dl_file_size = filesize("$dl_path/$dl_file");
+ $maj_dl_file_size = filesize("$maj_dl_path/$maj_dl_file");
header("Cache-Control: ");
header("Pragma: ");
header("Content-type: application/octet-stream");
- header("Content-Disposition: attachment; filename=$dl_file");
- header("Content-length: $dl_file_size");
+ header("Content-Disposition: attachment; filename=$maj_dl_file");
+ header("Content-length: $maj_dl_file_size");
- $get_it = fopen("$dl_path/$dl_file","rb");
+ $maj_get_it = fopen("$maj_dl_path/$maj_dl_file","rb");
- while (!feof($get_it)) {
- $buf = fread($get_it,4096);
- echo $buf;
- $bytes_sent += strlen($buf);
+ while (!feof($maj_get_it)) {
+ $maj_buf = fread($maj_get_it,4096);
+ echo $maj_buf;
+ $maj_bytes_sent += strlen($maj_buf);
}
- if ($bytes_sent == $dl_file_size) {
+ if ($maj_bytes_sent == $maj_dl_file_size) {
- if (!file_exists($count_path)) {
- mkdir($count_path);
+ if (!file_exists($maj_count_path)) {
+ mkdir($maj_count_path);
}
- $unique_downloads = "$count_path/$count_file";
+ $maj_unique_downloads = "$maj_count_path/$maj_count_file";
- if (file_exists($unique_downloads)) {
- $count_unique_downloads = file_get_contents($unique_downloads);
+ if (file_exists($maj_unique_downloads)) {
+ $maj_count_unique_downloads = file_get_contents($maj_unique_downloads);
}
else {
- $count_unique_downloads = "0";
+ $maj_count_unique_downloads = "0";
}
- $count_unique_downloads = $count_unique_downloads + 1;
+ $maj_count_unique_downloads = $maj_count_unique_downloads + 1;
- $fp_unique_downloads = fopen($unique_downloads,"w");
- fwrite($fp_unique_downloads,$count_unique_downloads);
- fclose($fp_unique_downloads);
+ $maj_fp_unique_downloads = fopen($maj_unique_downloads,"w");
+ fwrite($maj_fp_unique_downloads,$maj_count_unique_downloads);
+ fclose($maj_fp_unique_downloads);
}
}
-function entry2date($f_entry) {
+function entry2date($maj_f_entry) {
- $f_entry_year = substr($f_entry,0,4);
- $f_entry_month = substr($f_entry,4,2);
- $f_entry_day = substr($f_entry,6,2);
- $f_entry_hour = substr($f_entry,8,2);
- $f_entry_min = substr($f_entry,10,2);
- $f_entry_sec = substr($f_entry,12,2);
+ $maj_f_entry_year = substr($maj_f_entry,0,4);
+ $maj_f_entry_month = substr($maj_f_entry,4,2);
+ $maj_f_entry_day = substr($maj_f_entry,6,2);
+ $maj_f_entry_hour = substr($maj_f_entry,8,2);
+ $maj_f_entry_min = substr($maj_f_entry,10,2);
+ $maj_f_entry_sec = substr($maj_f_entry,12,2);
- echo date("l, M j, Y, g:i A",mktime($f_entry_hour,$f_entry_min,$f_entry_sec,$f_entry_month,$f_entry_day,$f_entry_year));
+ echo date("l, M j, Y, g:i A",mktime($maj_f_entry_hour,$maj_f_entry_min,$maj_f_entry_sec,$maj_f_entry_month,$maj_f_entry_day,$maj_f_entry_year));
}
-if (isset($req_entry) and !empty($req_entry) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['key']) and !empty($_REQUEST['key']) and isset($_REQUEST['action']) and !empty($_REQUEST['action'])) {
+if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['key']) and !empty($_REQUEST['key']) and isset($_REQUEST['action']) and !empty($_REQUEST['action'])) {
- $comment_dir = "data/items/$req_entry/comments/pending/{$_REQUEST['comment']}";
+ $maj_comment_dir = "data/items/$maj_req_entry/comments/pending/{$_REQUEST['comment']}";
- $login_key = file_get_contents("$comment_dir/key.txt");
+ $maj_login_key = file_get_contents("$maj_comment_dir/key.txt");
- if ($_REQUEST['key'] == $login_key) {
+ if ($_REQUEST['key'] == $maj_login_key) {
if ($_REQUEST['action'] == "approve") {
- $live_dir = "data/items/$req_entry/comments/live/{$_REQUEST['comment']}";
+ $maj_live_dir = "data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}";
- if (!file_exists("data/items/$req_entry/comments/live")) {
- mkdir("data/items/$req_entry/comments/live");
+ if (!file_exists("data/items/$maj_req_entry/comments/live")) {
+ mkdir("data/items/$maj_req_entry/comments/live");
}
- if (!file_exists("data/items/$req_entry/comments/live/{$_REQUEST['comment']}")) {
- mkdir("data/items/$req_entry/comments/live/{$_REQUEST['comment']}");
+ if (!file_exists("data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}")) {
+ mkdir("data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}");
}
- rename($comment_dir,$live_dir);
+ rename($maj_comment_dir,$maj_live_dir);
- unlink("$live_dir/key.txt");
+ unlink("$maj_live_dir/key.txt");
// clean-up old latest comments dir
@@ -322,363 +322,363 @@ if (isset($req_entry) and !empty($req_entry) and isset($_REQUEST['comment']) and
mkdir("data/comments/unread");
}
- if (!file_exists("data/comments/unread/$req_entry")) {
- mkdir("data/comments/unread/$req_entry");
+ if (!file_exists("data/comments/unread/$maj_req_entry")) {
+ mkdir("data/comments/unread/$maj_req_entry");
}
- if ($dh_unread_active_members = opendir("data/members/active")) {
+ if ($maj_dh_unread_active_members = opendir("data/members/active")) {
- while (($unread_active_member = readdir($dh_unread_active_members)) !== false) {
+ while (($maj_unread_active_member = readdir($maj_dh_unread_active_members)) !== false) {
- if ($unread_active_member != "." && $unread_active_member != "..") {
+ if ($maj_unread_active_member != "." && $maj_unread_active_member != "..") {
- if (!file_exists("data/members/active/$unread_active_member/comments")) {
- mkdir("data/members/active/$unread_active_member/comments");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments");
}
- if (!file_exists("data/members/active/$unread_active_member/comments/unread")) {
- mkdir("data/members/active/$unread_active_member/comments/unread");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments/unread")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments/unread");
}
- if (!file_exists("data/members/active/$unread_active_member/comments/unread/$req_entry")) {
- mkdir("data/members/active/$unread_active_member/comments/unread/$req_entry");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry");
}
}
}
- closedir($dh_unread_active_members);
+ closedir($maj_dh_unread_active_members);
}
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$req_entry/categories")) {
+ if (file_exists("data/items/$maj_req_entry/categories")) {
- if ($dh_entry_categories = opendir("data/items/$req_entry/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_req_entry/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
- if (file_exists("data/categories/$entry_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_exists("data/email.txt") and !file_exists("data/items/$req_entry/private.txt") and ($private_categories == "0")) {
+ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_exists("data/email.txt") and !file_exists("data/items/$maj_req_entry/private.txt") and ($maj_private_categories == "0")) {
if (file_exists("data/ml-reply2.txt")) {
- $ml_reply2 = file_get_contents("data/ml-reply2.txt");
+ $maj_ml_reply2 = file_get_contents("data/ml-reply2.txt");
}
if (file_exists("data/ml-from.txt")) {
- $ml_from = $ml_reply2;
+ $maj_ml_from = $maj_ml_reply2;
}
else {
- $ml_from = file_get_contents("$live_dir/email.txt");
+ $maj_ml_from = file_get_contents("$maj_live_dir/email.txt");
}
- $ml_from = str_replace(" at ","@",$ml_from);
+ $maj_ml_from = str_replace(" at ","@",$maj_ml_from);
- $ml_from_firstname = file_get_contents("$live_dir/firstname.txt");
- $ml_from_lastname = file_get_contents("$live_dir/lastname.txt");
+ $maj_ml_from_firstname = file_get_contents("$maj_live_dir/firstname.txt");
+ $maj_ml_from_lastname = file_get_contents("$maj_live_dir/lastname.txt");
- $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
+ $maj_ml_from = '"' . "$maj_ml_from_firstname $maj_ml_from_lastname" . '" <' . $maj_ml_from . '>';
- $ml_subject = file_get_contents("data/items/$req_entry/title.txt");
+ $maj_ml_subject = file_get_contents("data/items/$maj_req_entry/title.txt");
if (file_exists("data/ml-prepend.txt")) {
- $ml_prepend = file_get_contents("data/ml-prepend.txt");
- $ml_subject = str_replace($ml_prepend,"",$ml_subject);
- $ml_subject = $ml_prepend . " " . $ml_subject;
- }
-
- $ml_subject = str_replace("Re:","",$ml_subject);
- $ml_subject = "Re: " . $ml_subject;
-
- $ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
-
- $ml_body = file_get_contents("$live_dir/comment.txt");
- $ml_body = str_replace('<br />',"\n",$ml_body);
- $ml_body = str_replace('<img src="images/smileys/crying.png" border="0">',':((',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/frown.png" border="0">',':(',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/indifferent.png" border="0">',':|',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/laughing.png" border="0">',':D',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/lick.png" border="0">',':P',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/ohno.png" border="0">',':O',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/smile.png" border="0">',':)',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/surprised.png" border="0">','=)',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/undecided.png" border="0">',':\\',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/wink.png" border="0">',';)',$ml_body);
- $ml_body = str_replace('&','&',$ml_body);
- $ml_body = str_replace('<','<',$ml_body);
- $ml_body = str_replace('>','>',$ml_body);
- $ml_body = str_replace('®','(R)',$ml_body);
+ $maj_ml_prepend = file_get_contents("data/ml-prepend.txt");
+ $maj_ml_subject = str_replace($maj_ml_prepend,"",$maj_ml_subject);
+ $maj_ml_subject = $maj_ml_prepend . " " . $maj_ml_subject;
+ }
+
+ $maj_ml_subject = str_replace("Re:","",$maj_ml_subject);
+ $maj_ml_subject = "Re: " . $maj_ml_subject;
+
+ $maj_ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+
+ $maj_ml_body = file_get_contents("$maj_live_dir/comment.txt");
+ $maj_ml_body = str_replace('<br />',"\n",$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/crying.png" border="0">',':((',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/frown.png" border="0">',':(',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/indifferent.png" border="0">',':|',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/laughing.png" border="0">',':D',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/lick.png" border="0">',':P',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/ohno.png" border="0">',':O',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/smile.png" border="0">',':)',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/surprised.png" border="0">','=)',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/undecided.png" border="0">',':\\',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/wink.png" border="0">',';)',$maj_ml_body);
+ $maj_ml_body = str_replace('&','&',$maj_ml_body);
+ $maj_ml_body = str_replace('<','<',$maj_ml_body);
+ $maj_ml_body = str_replace('>','>',$maj_ml_body);
+ $maj_ml_body = str_replace('®','(R)',$maj_ml_body);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt")) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $ml_body = preg_replace("/\b($badwords)\b/i",$censor,$ml_body);
+ $maj_ml_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_ml_body);
}
if (file_exists("data/ml-header.txt")) {
- $ml_header = file_get_contents("data/ml-header.txt");
- $ml_body = $ml_header . "\n\n" . $ml_body;
+ $maj_ml_header = file_get_contents("data/ml-header.txt");
+ $maj_ml_body = $maj_ml_header . "\n\n" . $maj_ml_body;
}
- $ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
- $ml_url = str_replace('//','/',$ml_url);
- $ml_url = "http://$ml_url/index.php?entry=$req_entry&show=comments";
+ $maj_ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
+ $maj_ml_url = str_replace('//','/',$maj_ml_url);
+ $maj_ml_url = "http://$maj_ml_url/index.php?entry=$maj_req_entry&show=comments";
- $ml_body = $ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $ml_url;
+ $maj_ml_body = $maj_ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $maj_ml_url;
- if (file_exists("data/items/$req_entry/member.txt")) {
- $ml_body = $ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
+ if (file_exists("data/items/$maj_req_entry/member.txt")) {
+ $maj_ml_body = $maj_ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
}
if (file_exists("data/ml-footer.txt")) {
- $ml_footer = file_get_contents("data/ml-footer.txt");
- $ml_body = $ml_body . "\n\n" . $ml_footer;
+ $maj_ml_footer = file_get_contents("data/ml-footer.txt");
+ $maj_ml_body = $maj_ml_body . "\n\n" . $maj_ml_footer;
}
- if ($dh_ml_member = opendir("data/members/active")) {
- while (($ml_member = readdir($dh_ml_member)) !== false) {
- if ($ml_member != "." && $ml_member != "..") {
+ if ($maj_dh_ml_member = opendir("data/members/active")) {
+ while (($maj_ml_member = readdir($maj_dh_ml_member)) !== false) {
+ if ($maj_ml_member != "." && $maj_ml_member != "..") {
- if (file_exists("data/members/active/$ml_member/noml.txt")) {
+ if (file_exists("data/members/active/$maj_ml_member/noml.txt")) {
continue;
}
- if (file_exists("data/members/active/$ml_member/vacation.txt")) {
+ if (file_exists("data/members/active/$maj_ml_member/vacation.txt")) {
continue;
}
- $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
- $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
- $ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
- $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <'. $ml_to . '>';
+ $maj_ml_to_firstname = file_get_contents("data/members/active/$maj_ml_member/firstname.txt");
+ $maj_ml_to_lastname = file_get_contents("data/members/active/$maj_ml_member/lastname.txt");
+ $maj_ml_to = file_get_contents("data/members/active/$maj_ml_member/email.txt");
+ $maj_ml_to = '"' . "$maj_ml_to_firstname $maj_ml_to_lastname" . '" <'. $maj_ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
- mail($ml_to,$ml_subject,$ml_body,
- "From: $ml_from\r\n" .
- "Reply-To: $ml_reply2\r\n" .
- "References: $req_entry\r\n" .
- "X-Mailer: $ml_mailer");
+ mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
+ "From: $maj_ml_from\r\n" .
+ "Reply-To: $maj_ml_reply2\r\n" .
+ "References: $maj_req_entry\r\n" .
+ "X-Mailer: $maj_ml_mailer");
}
else {
- mail($ml_to,$ml_subject,$ml_body,
- "From: $ml_from\r\n" .
- "References: $req_entry\r\n" .
- "X-Mailer: $ml_mailer");
+ mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
+ "From: $maj_ml_from\r\n" .
+ "References: $maj_req_entry\r\n" .
+ "X-Mailer: $maj_ml_mailer");
}
}
}
- closedir($dh_ml_member);
+ closedir($maj_dh_ml_member);
}
}
}
if ($_REQUEST['action'] == "delete") {
- rmdirr($comment_dir);
+ rmdirr($maj_comment_dir);
}
- $pending_comment_flag_dir = $req_entry;
+ $maj_pending_comment_flag_dir = $maj_req_entry;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
- $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","r");
+ $maj_comment_count_value = fread($maj_fp_comment_count_txt,filesize("data/comments/pending/$maj_pending_comment_flag_dir/count.txt"));
+ fclose($maj_fp_comment_count_txt);
- if ($comment_count_value <= 1) {
- rmdirr("data/comments/pending/$pending_comment_flag_dir");
+ if ($maj_comment_count_value <= 1) {
+ rmdirr("data/comments/pending/$maj_pending_comment_flag_dir");
}
else {
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
- $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","r");
+ $maj_comment_count_value = fread($maj_fp_comment_count_txt,filesize("data/comments/pending/$maj_pending_comment_flag_dir/count.txt"));
+ fclose($maj_fp_comment_count_txt);
- $comment_count_value = $comment_count_value - 1;
+ $maj_comment_count_value = $maj_comment_count_value - 1;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
- fwrite($fp_comment_count_txt,$comment_count_value);
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","w");
+ fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
+ fclose($maj_fp_comment_count_txt);
}
- header("Location: index.php?entry=$req_entry&show=comments");
+ header("Location: index.php?entry=$maj_req_entry&show=comments");
}
}
-if (isset($req_entry) and !empty($req_entry)) {
+if (isset($maj_req_entry) and !empty($maj_req_entry)) {
- if (file_exists("data/items/$req_entry")) {
+ if (file_exists("data/items/$maj_req_entry")) {
- $title = file_get_contents("data/items/$req_entry/title.txt");
+ $maj_title = file_get_contents("data/items/$maj_req_entry/title.txt");
- echo "<title>$title</title>";
+ echo "<title>$maj_title</title>";
- if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
- if (file_exists("data/items/$req_entry/views.txt")) {
- $count_views = file_get_contents("data/items/$req_entry/views.txt");
+ if (file_exists("data/items/$maj_req_entry/views.txt")) {
+ $maj_count_views = file_get_contents("data/items/$maj_req_entry/views.txt");
}
else {
- $count_views = "0";
+ $maj_count_views = "0";
}
- $count_views = $count_views + 1;
+ $maj_count_views = $maj_count_views + 1;
- $fp_views = fopen("data/items/$req_entry/views.txt","w");
- fwrite($fp_views,$count_views);
- fclose($fp_views);
+ $maj_fp_views = fopen("data/items/$maj_req_entry/views.txt","w");
+ fwrite($maj_fp_views,$maj_count_views);
+ fclose($maj_fp_views);
}
- if (isset($req_show) and !empty($req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['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['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == $_POST['captcha_put']) and (ereg("@",$_POST['email'])) and (ereg("\.",$_POST['email']))) {
+ if (isset($maj_req_show) and !empty($maj_req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['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['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == $_POST['captcha_put']) and (ereg("@",$_POST['email'])) and (ereg("\.",$_POST['email']))) {
- if (!file_exists("data/items/$req_entry/comments")) {
- mkdir("data/items/$req_entry/comments");
+ if (!file_exists("data/items/$maj_req_entry/comments")) {
+ mkdir("data/items/$maj_req_entry/comments");
}
- if (!file_exists("data/items/$req_entry/comments/pending")) {
- mkdir("data/items/$req_entry/comments/pending");
+ if (!file_exists("data/items/$maj_req_entry/comments/pending")) {
+ mkdir("data/items/$maj_req_entry/comments/pending");
}
- if (!file_exists("data/items/$req_entry/comments/live")) {
- mkdir("data/items/$req_entry/comments/live");
+ if (!file_exists("data/items/$maj_req_entry/comments/live")) {
+ mkdir("data/items/$maj_req_entry/comments/live");
}
- $timestamp = date("l, M j, Y, g:i A",time() + $offset);
+ $maj_timestamp = date("l, M j, Y, g:i A",time() + $maj_offset);
- $comment_entry_dir = date("YmdHis",time() + $offset);
+ $maj_comment_entry_dir = date("YmdHis",time() + $maj_offset);
- mkdir("data/items/$req_entry/comments/pending/$comment_entry_dir");
+ mkdir("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir");
- $body_content = ucfirst($_POST['new_comment']);
- $body_content = htmlentities($body_content,ENT_NOQUOTES);
- $body_content = str_replace("\n",'<br />',$body_content);
- $body_content = trim($body_content);
- $body_content = str_replace(':((','<img src="images/smileys/crying.png" border="0">',$body_content);
- $body_content = str_replace(':(','<img src="images/smileys/frown.png" border="0">',$body_content);
- $body_content = str_replace(':|','<img src="images/smileys/indifferent.png" border="0">',$body_content);
- $body_content = str_replace(':D','<img src="images/smileys/laughing.png" border="0">',$body_content);
- $body_content = str_replace(':P','<img src="images/smileys/lick.png" border="0">',$body_content);
- $body_content = str_replace(':O','<img src="images/smileys/ohno.png" border="0">',$body_content);
- $body_content = str_replace(':)','<img src="images/smileys/smile.png" border="0">',$body_content);
- $body_content = str_replace('=)','<img src="images/smileys/surprised.png" border="0">',$body_content);
- $body_content = str_replace(':\\','<img src="images/smileys/undecided.png" border="0">',$body_content);
- $body_content = str_replace(';)','<img src="images/smileys/wink.png" border="0">',$body_content);
-
- $fp_body_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/comment.txt","w");
- fwrite($fp_body_txt,$body_content);
- fclose($fp_body_txt);
-
- $fp_timestamp_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/timestamp.txt","w");
- fwrite($fp_timestamp_txt,$timestamp);
- fclose($fp_timestamp_txt);
-
- $fp_firstname_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/firstname.txt","w");
- $firstname = strtolower($_POST['firstname']);
- $firstname = ucwords($firstname);
- $firstname = trim($firstname);
- $firstname = htmlentities($firstname,ENT_NOQUOTES);
- fwrite($fp_firstname_txt,$firstname);
- fclose($fp_firstname_txt);
-
- $fp_lastname_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/lastname.txt","w");
- $lastname = strtolower($_POST['lastname']);
- $lastname = ucwords($lastname);
- $lastname = trim($lastname);
- $lastname = htmlentities($lastname,ENT_NOQUOTES);
- fwrite($fp_lastname_txt,$lastname);
- fclose($fp_lastname_txt);
-
- $fp_email_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/email.txt","w");
- $email = strtolower($_POST['email']);
- $email = trim($email);
- $email = htmlentities($email,ENT_NOQUOTES);
- fwrite($fp_email_txt,$email);
- fclose($fp_email_txt);
+ $maj_body_content = ucfirst($_POST['new_comment']);
+ $maj_body_content = htmlentities($maj_body_content,ENT_NOQUOTES);
+ $maj_body_content = str_replace("\n",'<br />',$maj_body_content);
+ $maj_body_content = trim($maj_body_content);
+ $maj_body_content = str_replace(':((','<img src="images/smileys/crying.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':(','<img src="images/smileys/frown.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':|','<img src="images/smileys/indifferent.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':D','<img src="images/smileys/laughing.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':P','<img src="images/smileys/lick.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':O','<img src="images/smileys/ohno.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':)','<img src="images/smileys/smile.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace('=)','<img src="images/smileys/surprised.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':\\','<img src="images/smileys/undecided.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(';)','<img src="images/smileys/wink.png" border="0">',$maj_body_content);
+
+ $maj_fp_body_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/comment.txt","w");
+ fwrite($maj_fp_body_txt,$maj_body_content);
+ fclose($maj_fp_body_txt);
+
+ $maj_fp_timestamp_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/timestamp.txt","w");
+ fwrite($maj_fp_timestamp_txt,$maj_timestamp);
+ fclose($maj_fp_timestamp_txt);
+
+ $maj_fp_firstname_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/firstname.txt","w");
+ $maj_firstname = strtolower($_POST['firstname']);
+ $maj_firstname = ucwords($maj_firstname);
+ $maj_firstname = trim($maj_firstname);
+ $maj_firstname = htmlentities($maj_firstname,ENT_NOQUOTES);
+ fwrite($maj_fp_firstname_txt,$maj_firstname);
+ fclose($maj_fp_firstname_txt);
+
+ $maj_fp_lastname_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/lastname.txt","w");
+ $maj_lastname = strtolower($_POST['lastname']);
+ $maj_lastname = ucwords($maj_lastname);
+ $maj_lastname = trim($maj_lastname);
+ $maj_lastname = htmlentities($maj_lastname,ENT_NOQUOTES);
+ fwrite($maj_fp_lastname_txt,$maj_lastname);
+ fclose($maj_fp_lastname_txt);
+
+ $maj_fp_email_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/email.txt","w");
+ $maj_email = strtolower($_POST['email']);
+ $maj_email = trim($maj_email);
+ $maj_email = htmlentities($maj_email,ENT_NOQUOTES);
+ fwrite($maj_fp_email_txt,$maj_email);
+ fclose($maj_fp_email_txt);
if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.",$_POST['url']))) {
- $fp_url_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/url.txt","w");
- $url = str_replace("http://","",$_POST['url']);
- $url = strtolower($url);
- $url = trim($url);
- $url = "http://" . $url;
- $url = htmlentities($url,ENT_NOQUOTES);
- fwrite($fp_url_txt,$url);
- fclose($fp_url_txt);
+ $maj_fp_url_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/url.txt","w");
+ $maj_url = str_replace("http://","",$_POST['url']);
+ $maj_url = strtolower($maj_url);
+ $maj_url = trim($maj_url);
+ $maj_url = "http://" . $maj_url;
+ $maj_url = htmlentities($maj_url,ENT_NOQUOTES);
+ fwrite($maj_fp_url_txt,$maj_url);
+ fclose($maj_fp_url_txt);
}
if (isset($_POST['cauthor']) and !empty($_POST['cauthor'])) {
- $fp_cauthor_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/author.txt","w");
- fwrite($fp_cauthor_txt,$_POST['cauthor']);
- fclose($fp_cauthor_txt);
+ $maj_fp_cauthor_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/author.txt","w");
+ fwrite($maj_fp_cauthor_txt,$_POST['cauthor']);
+ fclose($maj_fp_cauthor_txt);
}
- $key_rand = str_rand(14);
- $fp_key_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/key.txt","w");
- fwrite($fp_key_txt,$key_rand);
- fclose($fp_key_txt);
+ $maj_key_rand = str_rand(14);
+ $maj_fp_key_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/key.txt","w");
+ fwrite($maj_fp_key_txt,$maj_key_rand);
+ fclose($maj_fp_key_txt);
- $comment_quote = ucfirst($_POST['new_comment']);
+ $maj_comment_quote = ucfirst($_POST['new_comment']);
- $sig_author_file = "data/author.txt";
- $fp_sig_author = fopen($sig_author_file,"r");
- $sig_author = fread($fp_sig_author,filesize($sig_author_file));
- fclose($fp_sig_author);
+ $maj_sig_author_file = "data/author.txt";
+ $maj_fp_sig_author = fopen($maj_sig_author_file,"r");
+ $maj_sig_author = fread($maj_fp_sig_author,filesize($maj_sig_author_file));
+ fclose($maj_fp_sig_author);
- $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
- $sig_url = str_replace('//','/',$sig_url);
- $sig_url = "http://" . $sig_url;
+ $maj_sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
+ $maj_sig_url = str_replace('//','/',$maj_sig_url);
+ $maj_sig_url = "http://" . $maj_sig_url;
- $email_to = strtolower($_POST['email']);
- $email_to = '"' . "$firstname $lastname" . '" <' . $email_to . '>';
+ $maj_email_to = strtolower($_POST['email']);
+ $maj_email_to = '"' . "$maj_firstname $maj_lastname" . '" <' . $maj_email_to . '>';
if (file_exists("data/email.txt")) {
- $from_email_author = file_get_contents("data/author.txt");
- $from_email = file_get_contents("data/email.txt");
- $from_email = '"' . $from_email_author . '" <' . $from_email . '>';
+ $maj_from_email_author = file_get_contents("data/author.txt");
+ $maj_from_email = file_get_contents("data/email.txt");
+ $maj_from_email = '"' . $maj_from_email_author . '" <' . $maj_from_email . '>';
}
- $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+ $maj_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
- $commented_entry_title_file = "data/items/$req_entry/title.txt";
- $fp_commented_entry_title = fopen($commented_entry_title_file,"r");
- $commented_entry_title = fread($fp_commented_entry_title,filesize($commented_entry_title_file));
- fclose($fp_commented_entry_title);
+ $maj_commented_entry_title_file = "data/items/$maj_req_entry/title.txt";
+ $maj_fp_commented_entry_title = fopen($maj_commented_entry_title_file,"r");
+ $maj_commented_entry_title = fread($maj_fp_commented_entry_title,filesize($maj_commented_entry_title_file));
+ fclose($maj_fp_commented_entry_title);
if (!file_exists("data/nak.txt") and file_exists("data/email.txt")) {
- $comment_thanks = "Hi $firstname,\n\nThanks for submitting the following comment last $timestamp:\n\n\"$comment_quote\"\n\nIt will be e-mailed to me first for approval. Please visit the following URL to see if it has been posted:\n\n{$sig_url}index.php?entry=$req_entry&show=comments\n\nThanks again! =)\n\n--\n$sig_author\n$sig_url\n";
- $comment_thanks = wordwrap($comment_thanks);
+ $maj_comment_thanks = "Hi $maj_firstname,\n\nThanks for submitting the following comment last $maj_timestamp:\n\n\"$maj_comment_quote\"\n\nIt will be e-mailed to me first for approval. Please visit the following URL to see if it has been posted:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&show=comments\n\nThanks again! =)\n\n--\n$maj_sig_author\n$maj_sig_url\n";
+ $maj_comment_thanks = wordwrap($maj_comment_thanks);
- mail($email_to,"Thanks for sharing your thoughts!",$comment_thanks,
- "From: $from_email\r\n" .
- "Reply-To: $from_email\r\n" .
- "X-Mailer: $mailer");
+ mail($maj_email_to,"Thanks for sharing your thoughts!",$maj_comment_thanks,
+ "From: $maj_from_email\r\n" .
+ "Reply-To: $maj_from_email\r\n" .
+ "X-Mailer: $maj_mailer");
}
if (file_exists("data/email.txt") and !file_exists("data/xscreen.txt")) {
- $comment_notice = "The following comment was submitted by $email_to last $timestamp for the entry \"$commented_entry_title\":\n\n\"$comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$sig_url}index.php?entry=$req_entry&comment={$comment_entry_dir}&key={$key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$sig_url}index.php?entry=$req_entry&comment={$comment_entry_dir}&key={$key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
- $comment_notice = wordwrap($comment_notice);
+ $maj_comment_notice = "The following comment was submitted by $maj_email_to last $maj_timestamp for the entry \"$maj_commented_entry_title\":\n\n\"$maj_comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
+ $maj_comment_notice = wordwrap($maj_comment_notice);
- mail($from_email,"Pending Comment",$comment_notice,
- "From: $from_email\r\n" .
- "Reply-To: $from_email\r\n" .
- "X-Mailer: $mailer");
+ mail($maj_from_email,"Pending Comment",$maj_comment_notice,
+ "From: $maj_from_email\r\n" .
+ "Reply-To: $maj_from_email\r\n" .
+ "X-Mailer: $maj_mailer");
}
if (!file_exists("data/comments")) {
@@ -689,60 +689,60 @@ if (isset($req_entry) and !empty($req_entry)) {
mkdir("data/comments/pending");
}
- $pending_comment_flag = $req_entry;
+ $maj_pending_comment_flag = $maj_req_entry;
- if (!file_exists("data/comments/pending/$pending_comment_flag")) {
- mkdir("data/comments/pending/$pending_comment_flag");
+ if (!file_exists("data/comments/pending/$maj_pending_comment_flag")) {
+ mkdir("data/comments/pending/$maj_pending_comment_flag");
}
- if (file_exists("data/comments/pending/$pending_comment_flag/count.txt")) {
- $comment_count_value = file_get_contents("data/comments/pending/$pending_comment_flag/count.txt");
+ if (file_exists("data/comments/pending/$maj_pending_comment_flag/count.txt")) {
+ $maj_comment_count_value = file_get_contents("data/comments/pending/$maj_pending_comment_flag/count.txt");
}
else {
- $comment_count_value = "0";
+ $maj_comment_count_value = "0";
}
- $comment_count_value = $comment_count_value + 1;
+ $maj_comment_count_value = $maj_comment_count_value + 1;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
- fwrite($fp_comment_count_txt,$comment_count_value);
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag/count.txt","w");
+ fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
+ fclose($maj_fp_comment_count_txt);
}
}
}
else {
- echo "<title>$default_title</title>";
+ echo "<title>$maj_default_title</title>";
}
if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
- if ($dh_xscreen_comments = opendir("data/comments/pending")) {
+ if ($maj_dh_xscreen_comments = opendir("data/comments/pending")) {
- while (($xscreen_comment = readdir($dh_xscreen_comments)) !== false) {
+ while (($maj_xscreen_comment = readdir($maj_dh_xscreen_comments)) !== false) {
- if ($xscreen_comment != "." && $xscreen_comment != "..") {
- $xscreen_comments[] = $xscreen_comment;
+ if ($maj_xscreen_comment != "." && $maj_xscreen_comment != "..") {
+ $maj_xscreen_comments[] = $maj_xscreen_comment;
}
}
- closedir($dh_xscreen_comments);
+ closedir($maj_dh_xscreen_comments);
}
- rsort($xscreen_comments);
- reset($xscreen_comments);
+ rsort($maj_xscreen_comments);
+ reset($maj_xscreen_comments);
- if (count($xscreen_comments) > 0) {
+ if (count($maj_xscreen_comments) > 0) {
- foreach ($xscreen_comments as $xscreen_dir) {
+ foreach ($maj_xscreen_comments as $maj_xscreen_dir) {
- if ($dh_xscreen_pending = opendir("data/items/$xscreen_dir/comments/pending")) {
+ if ($maj_dh_xscreen_pending = opendir("data/items/$maj_xscreen_dir/comments/pending")) {
- while (($xscreen_entry = readdir($dh_xscreen_pending)) !== false) {
+ while (($maj_xscreen_entry = readdir($maj_dh_xscreen_pending)) !== false) {
- if ($xscreen_entry != "." && $xscreen_entry != "..") {
+ if ($maj_xscreen_entry != "." && $maj_xscreen_entry != "..") {
- $xscreen_key = file_get_contents("data/items/$xscreen_dir/comments/pending/$xscreen_entry/key.txt");
+ $maj_xscreen_key = file_get_contents("data/items/$maj_xscreen_dir/comments/pending/$maj_xscreen_entry/key.txt");
- header("Location: index.php?entry={$xscreen_dir}&comment={$xscreen_entry}&key={$xscreen_key}&action=approve");
+ header("Location: index.php?entry={$maj_xscreen_dir}&comment={$maj_xscreen_entry}&key={$maj_xscreen_key}&action=approve");
}
}
}
@@ -751,101 +751,145 @@ if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
}
}
-if (isset($req_entry) and !empty($req_entry) and file_exists("data/items/$req_entry")) {
+if (isset($maj_req_entry) and !empty($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$req_entry/categories")) {
+ if (file_exists("data/items/$maj_req_entry/categories")) {
- if ($dh_entry_categories = opendir("data/items/$req_entry/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_req_entry/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
- if (file_exists("data/categories/$entry_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if ($private_categories == "0") {
+ if ($maj_private_categories == "0") {
- if (!file_exists("data/items/$req_entry/passwd.txt")) {
+ if (!file_exists("data/items/$maj_req_entry/passwd.txt")) {
- if (!file_exists("data/items/$req_entry/private.txt")) {
+ if (!file_exists("data/items/$maj_req_entry/private.txt")) {
- $description = file_get_contents("data/items/$req_entry/body.txt");
- $description = strip_tags($description);
- $description = html_entity_decode($description);
- $description = str_replace("&","&",$description);
- $description = str_replace("<","<",$description);
- $description = str_replace(">",">",$description);
- $description = str_replace("<br />"," ",$description);
- $description = str_replace("<br>"," ",$description);
- $description = str_replace("\r"," ",$description);
- $description = str_replace("\n"," ",$description);
- $description = str_replace(chr(10)," ",$description);
- $description = str_replace(chr(13)," ",$description);
- $description = trim($description);
- $description = substr($description,0,210);
- $description = htmlentities($description,ENT_NOQUOTES);
+ $maj_description = file_get_contents("data/items/$maj_req_entry/body.txt");
+ $maj_description = strip_tags($maj_description);
+ $maj_description = html_entity_decode($maj_description);
+ $maj_description = str_replace("&","&",$maj_description);
+ $maj_description = str_replace("<","<",$maj_description);
+ $maj_description = str_replace(">",">",$maj_description);
+ $maj_description = str_replace("<br />"," ",$maj_description);
+ $maj_description = str_replace("<br>"," ",$maj_description);
+ $maj_description = str_replace("\r"," ",$maj_description);
+ $maj_description = str_replace("\n"," ",$maj_description);
+ $maj_description = str_replace(chr(10)," ",$maj_description);
+ $maj_description = str_replace(chr(13)," ",$maj_description);
+ $maj_description = trim($maj_description);
+ $maj_description = substr($maj_description,0,210);
+ $maj_description = htmlentities($maj_description,ENT_NOQUOTES);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $description = preg_replace("/\b($badwords)\b/i",$censor,$description);
+ $maj_description = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_description);
}
- echo "<meta name=\"description\" content=\"{$description}\">";
+ echo "<meta name=\"description\" content=\"{$maj_description}\">";
}
}
}
}
+if (file_exists("data/fonts/body-size.txt")) {
+ $maj_body_px = file_get_contents("data/fonts/body-size.txt") . "px";
+}
+else {
+ $maj_body_px = "11px";
+}
+
+if (file_exists("data/fonts/input-size.txt")) {
+ $maj_input_px = file_get_contents("data/fonts/input-size.txt") . "px";
+}
+else {
+ $maj_input_px = "11px";
+}
+
+if (file_exists("data/fonts/panel-title-size.txt")) {
+ $maj_font_12px = file_get_contents("data/fonts/panel-title-size.txt") . "px";
+}
+else {
+ $maj_font_12px = "12px";
+}
+
+if (file_exists("data/fonts/panel-body-size.txt")) {
+ $maj_font_11px = file_get_contents("data/fonts/panel-body-size.txt") . "px";
+}
+else {
+ $maj_font_11px = "11px";
+}
+
+if (file_exists("data/fonts/panel-footer-size.txt")) {
+ $maj_font_10px = file_get_contents("data/fonts/panel-footer-size.txt") . "px";
+}
+else {
+ $maj_font_10px = "10px";
+}
+
?>
<style>
+html {
+ font-size: <?php echo $maj_font_11px; ?>;
+}
+
body {
+ margin: 0px 0px 10px 10px;
+ padding: 0px;
+ text-align: left;
+
+ font-size: <?php echo $maj_body_px; ?>;
+
color: <?php
if (file_exists("data/colors/font.txt")) {
- $font_color = file_get_contents("data/colors/font.txt");
- echo $font_color;
+ $maj_font_color = file_get_contents("data/colors/font.txt");
+ echo $maj_font_color;
}
else {
echo "#666666";
}
?>;
- margin: 0px 0px 10px 10px;
- padding: 0px;
- text-align: left;
+
font-family: <?php
if (file_exists("data/fonts/body.txt")) {
- $font_body = file_get_contents("data/fonts/body.txt");
- echo "{$font_body},";
+ $maj_font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$maj_font_body},";
}
?> arial,helvetica,sans-serif;
+
background-color: <?php
if (file_exists("data/colors/bg.txt")) {
- $background_color = file_get_contents("data/colors/bg.txt");
- if ($background_color == "transparent") {
+ $maj_background_color = file_get_contents("data/colors/bg.txt");
+ if ($maj_background_color == "transparent") {
echo "#ffffff";
}
else {
- echo $background_color;
+ echo $maj_background_color;
}
}
else {
@@ -879,7 +923,7 @@ body {
}
p,td {
- font-size: 11px;
+ font-size: <?php echo $maj_font_11px; ?>;
}
a {
@@ -890,8 +934,8 @@ a {
a:link {
color: <?php
if (file_exists("data/colors/link.txt")) {
- $a_link_color = file_get_contents("data/colors/link.txt");
- echo $a_link_color;
+ $maj_a_link_color = file_get_contents("data/colors/link.txt");
+ echo $maj_a_link_color;
}
else {
echo "#666666";
@@ -902,8 +946,8 @@ a:link {
a:visited {
color: <?php
if (file_exists("data/colors/vlink.txt")) {
- $a_visited_color = file_get_contents("data/colors/vlink.txt");
- echo $a_visited_color;
+ $maj_a_visited_color = file_get_contents("data/colors/vlink.txt");
+ echo $maj_a_visited_color;
}
else {
echo "#666666";
@@ -914,8 +958,8 @@ a:visited {
a:hover {
color: <?php
if (file_exists("data/colors/hover.txt")) {
- $a_hover_color = file_get_contents("data/colors/hover.txt");
- echo $a_hover_color;
+ $maj_a_hover_color = file_get_contents("data/colors/hover.txt");
+ echo $maj_a_hover_color;
}
else {
echo "#336699";
@@ -926,8 +970,8 @@ a:hover {
a:active {
color: <?php
if (file_exists("data/colors/hover.txt")) {
- $a_active_color = file_get_contents("data/colors/hover.txt");
- echo $a_active_color;
+ $maj_a_active_color = file_get_contents("data/colors/hover.txt");
+ echo $maj_a_active_color;
}
else {
echo "#336699";
@@ -940,60 +984,67 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
text-decoration: none;
}
-#panel_title {
+.panel_title {
+ padding: 5px 5px 5px 5px;
+ margin: 0px 0px 0px 0px;
+ border-width: 1px 1px 0px 1px;
+ border-style: solid solid none solid;
+ font-weight: bold;
+
+ font-size: <?php echo $maj_font_12px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
- $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "{$font_panel_title},";
+ $maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$maj_font_panel_title},";
}
?> arial,helvetica,sans-serif;
- font-size: 12px;
- font-weight: bold;
+
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
+ $maj_panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $maj_panel_title_font_color;
}
else {
echo "#666666";
}
?>;
- padding: 5px 5px 5px 5px;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
}
?>;
- border-width: 1px 1px 0px 1px;
- border-style: solid solid none solid;
}
-#panel_body {
+.panel_body {
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
- $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "{$font_panel_body},";
+ $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$maj_font_panel_body},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
+
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
+ $maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $maj_panel_body_font_color;
}
else {
echo "#666666";
@@ -1008,10 +1059,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
+ $maj_panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_body_background_color;
}
else {
echo "transparent";
@@ -1029,13 +1081,14 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
+ $maj_panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_body_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1048,23 +1101,30 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
?>
}
-#panel_footer {
+.panel_footer {
+ text-align: right;
+
+ font-size: <?php echo $maj_font_10px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-footer.txt")) {
- $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
- echo "{$font_panel_footer},";
+ $maj_font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$maj_font_panel_footer},";
}
?> arial,helvetica,sans-serif;
- font-size: 10px;
+
+
+
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
- $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_footer_font_color;
+ $maj_panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $maj_panel_footer_font_color;
}
else {
echo "#999999";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -1073,10 +1133,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_footer_background_color;
+ $maj_panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_footer_background_color;
}
else {
echo "transparent";
@@ -1094,13 +1155,14 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
+ $maj_panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_footer_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1111,37 +1173,40 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'border-style: none solid solid solid;';
}
?>
- text-align: right;
}
.input {
+ width: 300px;
+ background: #ffffff;
+
+ font-size: <?php echo $maj_input_px; ?>;
+
color: <?php
if (file_exists("data/colors/border.txt")) {
- $input_color = file_get_contents("data/colors/border.txt");
- echo $input_color;
+ $maj_input_color = file_get_contents("data/colors/border.txt");
+ echo $maj_input_color;
}
else {
echo "#666666";
}
?>;
- background: #ffffff;
+
border: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
+ $maj_panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_footer_border_color;
}
else {
echo "#999999";
}
?> solid 1px;
- width: 300px;
+
font-family: <?php
if (file_exists("data/fonts/input.txt")) {
- $font_input = file_get_contents("data/fonts/input.txt");
- echo "{$font_input},";
+ $maj_font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$maj_font_input},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
}
.search {
@@ -1149,16 +1214,17 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
background: #ffffff;
width: 100%;
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/input.txt")) {
- $font_input = file_get_contents("data/fonts/input.txt");
- echo "{$font_input},";
+ $maj_font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$maj_font_input},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
}
-#panel_free {
+.panel_free {
padding: 0px 0px 0px 0px;
margin: 0px 0px 10px 0px;
}
@@ -1187,21 +1253,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2t,.rb3t,.rb4t {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1210,21 +1278,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2b,.rb3b,.rb4b {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1233,21 +1303,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2e,.rb3e,.rb4e {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1257,10 +1329,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
.rb1t,.rb1b,.rb1e {
margin: 0 5px;
+
background: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1288,34 +1361,40 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-width:0 1px;
padding: 1px 5px 5px 5px;
font-weight: bold;
+
+ font-size: <?php echo $maj_font_12px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
- $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "{$font_panel_title},";
+ $maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$maj_font_panel_title},";
}
?> arial,helvetica,sans-serif;
+
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
+ $maj_panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $maj_panel_title_font_color;
}
else {
echo "#666666";
}
?>;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1327,23 +1406,28 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
height: 3px;
}
-#panel_entry_body {
+.panel_entry_body {
+ margin: 0px 0px 0px 0px;
+
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
- $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "{$font_panel_body},";
+ $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$maj_font_panel_body},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
+
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
+ $maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $maj_panel_body_font_color;
}
else {
echo "#666666";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -1352,25 +1436,27 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
+ $maj_panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_body_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
+ $maj_panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_body_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1383,47 +1469,50 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
?>
}
-#panel_category {
+.panel_category {
+ padding: 5px 5px 5px 5px;
+ margin: 0px 0px 0px 0px;
+ text-align: left;
+
+ font-size: <?php echo $maj_font_10px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-footer.txt")) {
- $font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
- echo "{$font_panel_category},";
+ $maj_font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$maj_font_panel_category},";
}
?> arial,helvetica,sans-serif;
- font-size: 10px;
+
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
- $panel_category_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_category_font_color;
+ $maj_panel_category_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $maj_panel_category_font_color;
}
else {
echo "#999999";
}
?>;
- padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_category_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_category_background_color;
+ $maj_panel_category_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_category_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_category_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_category_border_color;
+ $maj_panel_category_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_category_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1434,7 +1523,6 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'border-style: none solid solid solid;';
}
?>
- text-align: left;
}
<?php if (file_exists("data/css.txt")) { readfile("data/css.txt"); } ?>
@@ -1453,78 +1541,78 @@ if (file_exists("data/center.txt")) {
if (file_exists("data/header.txt")) {
- $header_panel = file_get_contents("data/header.txt");
+ $maj_header_panel = file_get_contents("data/header.txt");
- if (file_exists("data/panels/$header_panel") and (!file_exists("data/panels/$header_panel/private.txt") or isset($_SESSION['logged_in']))) {
- include("data/panels/$header_panel/panel.php");
+ if (file_exists("data/panels/$maj_header_panel") and (!file_exists("data/panels/$maj_header_panel/private.txt") or isset($_SESSION['logged_in']))) {
+ include("data/panels/$maj_header_panel/panel.php");
}
}
-echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$wtable\">";
-echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
-echo "<tr><td width=\"$wside\" valign=\"top\">";
+echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">";
+echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+echo "<tr><td width=\"$maj_wside\" valign=\"top\">";
if (file_exists("data/round.txt")) {
echo "<b class=\"rbtop\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
}
else {
- echo "<div id=\"panel_title\">";
+ echo "<div class=\"panel_title\">";
}
?>
Profile</div>
-<div id="panel_body">
+<div class="panel_body">
<?php
if (file_exists("images/profile.gif")) {
- $profile_gif_image_size = getimagesize("images/profile.gif");
- $profile_gif_image_width = $profile_gif_image_size[0];
- $profile_gif_image_height = $profile_gif_image_size[1];
+ $maj_profile_gif_image_size = getimagesize("images/profile.gif");
+ $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
+ $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
- $max_profile_gif_image_width = 163;
+ $maj_max_profile_gif_image_width = 163;
- if ($profile_gif_image_width > $max_profile_gif_image_width) {
- $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
- $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
- $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
+ if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
+ $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
+ $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$profile_gif_image_width\" height=\"$profile_gif_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\">";
}
if (file_exists("images/profile.jpg")) {
- $profile_jpg_image_size = getimagesize("images/profile.jpg");
- $profile_jpg_image_width = $profile_jpg_image_size[0];
- $profile_jpg_image_height = $profile_jpg_image_size[1];
+ $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
+ $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
+ $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
- $max_profile_jpg_image_width = 163;
+ $maj_max_profile_jpg_image_width = 163;
- if ($profile_jpg_image_width > $max_profile_jpg_image_width) {
- $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
- $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
- $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
+ if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
+ $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
+ $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$profile_jpg_image_width\" height=\"$profile_jpg_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\">";
}
if (file_exists("images/profile.png")) {
- $profile_png_image_size = getimagesize("images/profile.png");
- $profile_png_image_width = $profile_png_image_size[0];
- $profile_png_image_height = $profile_png_image_size[1];
+ $maj_profile_png_image_size = getimagesize("images/profile.png");
+ $maj_profile_png_image_width = $maj_profile_png_image_size[0];
+ $maj_profile_png_image_height = $maj_profile_png_image_size[1];
- $max_profile_png_image_width = 163;
+ $maj_max_profile_png_image_width = 163;
- if ($profile_png_image_width > $max_profile_png_image_width) {
- $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
- $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
- $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
+ if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
+ $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
+ $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.png\" border=\"0\" width=\"$profile_png_image_width\" height=\"$profile_png_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\">";
}
include("data/profile.php");
@@ -1543,22 +1631,22 @@ if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
?>
Navigation</div>
-<div id="panel_body">
+<div class="panel_body">
<a class="navlink" href="index.php">Home</a><br>
<?php
if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a class="navlink" href="member.php?id=all">Members</a><br>';
+ echo '<a class="navlink" href="member.php?class=all">Members</a><br>';
}
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
echo '<a class="navlink" href="add.php">Add Entry</a><br>';
echo '<a class="navlink" href="settings.php">Settings</a><br>';
echo '<a class="navlink" href="panels.php">Panels</a><br>';
@@ -1567,16 +1655,16 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<a class="navlink" href="fonts.php">Fonts</a><br>';
echo '<a class="navlink" href="login.php">Logout</a>';
}
-elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
+elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
- if (!file_exists("data/categories/$req_category")) {
- rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$req_category");
+ if (!file_exists("data/categories/$maj_req_category")) {
+ rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
}
}
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
echo '<a class="navlink" href="add.php">Add Entry</a><br>';
}
@@ -1603,68 +1691,68 @@ if (file_exists("data/round.txt")) {
if (file_exists("data/sticky")) {
- if ($dh_sticky = opendir("data/sticky")) {
+ if ($maj_dh_sticky = opendir("data/sticky")) {
- while (($sticky_entry = readdir($dh_sticky)) !== false) {
+ while (($maj_sticky_entry = readdir($maj_dh_sticky)) !== false) {
- if (file_exists("data/items/$sticky_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/items/$maj_sticky_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- if (file_exists("data/items/$sticky_entry/member.txt") and (!isset($_SESSION['logged_in']))) {
+ if (file_exists("data/items/$maj_sticky_entry/member.txt") and (!isset($_SESSION['logged_in']))) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$sticky_entry/categories")) {
+ if (file_exists("data/items/$maj_sticky_entry/categories")) {
- if ($dh_sticky_categories = opendir("data/items/$sticky_entry/categories")) {
+ if ($maj_dh_sticky_categories = opendir("data/items/$maj_sticky_entry/categories")) {
- while (($sticky_category = readdir($dh_sticky_categories)) !== false) {
+ while (($maj_sticky_category = readdir($maj_dh_sticky_categories)) !== false) {
- if ($sticky_category != "." && $sticky_category != "..") {
+ if ($maj_sticky_category != "." && $maj_sticky_category != "..") {
- if (file_exists("data/categories/$sticky_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_sticky_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_sticky_categories);
+ closedir($maj_dh_sticky_categories);
}
}
- if (($private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$sticky_entry/cat.txt")) {
+ if (($maj_private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and !file_exists("data/items/$maj_sticky_entry/cat.txt")) {
continue;
}
- if ($sticky_entry != "." && $sticky_entry != "..") {
- $sticky_entries[] = $sticky_entry;
+ if ($maj_sticky_entry != "." && $maj_sticky_entry != "..") {
+ $maj_sticky_entries[] = $maj_sticky_entry;
}
}
- closedir($dh_sticky);
+ closedir($maj_dh_sticky);
}
- sort($sticky_entries);
- reset($sticky_entries);
+ sort($maj_sticky_entries);
+ reset($maj_sticky_entries);
- $count_sticky_list = count($sticky_entries);
+ $maj_count_sticky_list = count($maj_sticky_entries);
- if ($count_sticky_list > 0) {
+ if ($maj_count_sticky_list > 0) {
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
echo 'Quick Links</div>';
- echo '<div id="panel_body">';
+ echo '<div class="panel_body">';
- foreach ($sticky_entries as $sticky_list_entry) {
- echo "<a class=\"navlink\" href=\"index.php?entry=$sticky_list_entry\">";
- readfile("data/items/$sticky_list_entry/title.txt");
+ foreach ($maj_sticky_entries as $maj_sticky_list_entry) {
+ echo "<a class=\"navlink\" href=\"index.php?entry=$maj_sticky_list_entry\">";
+ readfile("data/items/$maj_sticky_list_entry/title.txt");
echo "</a><br>";
}
@@ -1678,123 +1766,123 @@ if (file_exists("data/sticky")) {
if (file_exists("data/panels")) {
- if ($dh_panels = opendir("data/panels")) {
+ if ($maj_dh_panels = opendir("data/panels")) {
- while (($panel = readdir($dh_panels)) !== false) {
+ while (($maj_panel = readdir($maj_dh_panels)) !== false) {
- if ($panel != "." && $panel != "..") {
+ if ($maj_panel != "." && $maj_panel != "..") {
- if (file_exists("data/panels/$panel/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/panels/$maj_panel/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- if (file_exists("data/panels/$panel/top.txt")) {
- $top_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/top.txt")) {
+ $maj_top_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/center.txt")) {
- $center_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/center.txt")) {
+ $maj_center_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/entry.txt")) {
- $entry_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/entry.txt")) {
+ $maj_entry_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/right.txt")) {
- $right_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/right.txt")) {
+ $maj_right_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/header.txt") and (file_get_contents("data/header.txt") == $panel)) {
+ if (file_exists("data/header.txt") and (file_get_contents("data/header.txt") == $maj_panel)) {
continue;
}
- if (file_exists("data/footer.txt") and (file_get_contents("data/footer.txt") == $panel)) {
+ if (file_exists("data/footer.txt") and (file_get_contents("data/footer.txt") == $maj_panel)) {
continue;
}
- $left_panels[] = $panel;
+ $maj_left_panels[] = $maj_panel;
}
}
- closedir($dh_panels);
+ closedir($maj_dh_panels);
}
- sort($left_panels);
- reset($left_panels);
+ sort($maj_left_panels);
+ reset($maj_left_panels);
- $count_left_panels = count($left_panels);
+ $maj_count_left_panels = count($maj_left_panels);
- sort($top_panels);
- reset($top_panels);
+ sort($maj_top_panels);
+ reset($maj_top_panels);
- $count_top_panels = count($top_panels);
+ $maj_count_top_panels = count($maj_top_panels);
- sort($center_panels);
- reset($center_panels);
+ sort($maj_center_panels);
+ reset($maj_center_panels);
- $count_center_panels = count($center_panels);
+ $maj_count_center_panels = count($maj_center_panels);
- sort($entry_panels);
- reset($entry_panels);
+ sort($maj_entry_panels);
+ reset($maj_entry_panels);
- $count_entry_panels = count($entry_panels);
+ $maj_count_entry_panels = count($maj_entry_panels);
- sort($right_panels);
- reset($right_panels);
+ sort($maj_right_panels);
+ reset($maj_right_panels);
- $count_right_panels = count($right_panels);
+ $maj_count_right_panels = count($maj_right_panels);
- if ($count_left_panels > 0) {
+ if ($maj_count_left_panels > 0) {
- foreach ($left_panels as $left_panel) {
+ foreach ($maj_left_panels as $maj_left_panel) {
- if (!file_exists("data/panels/$left_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_left_panel/free.txt")) {
- if (file_exists("data/panels/$left_panel/border.txt")) {
- $left_panel_border = file_get_contents("data/panels/$left_panel/border.txt");
+ if (file_exists("data/panels/$maj_left_panel/border.txt")) {
+ $maj_left_panel_border = file_get_contents("data/panels/$maj_left_panel/border.txt");
}
else {
- if (isset($left_panel_border)) {
- unset($left_panel_border);
+ if (isset($maj_left_panel_border)) {
+ unset($maj_left_panel_border);
}
}
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
- $left_panel_bgcolor_t = file_get_contents("data/panels/$left_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_left_panel/bgcolor-t.txt")) {
+ $maj_left_panel_bgcolor_t = file_get_contents("data/panels/$maj_left_panel/bgcolor-t.txt");
}
else {
- if (isset($left_panel_bgcolor_t)) {
- unset($left_panel_bgcolor_t);
+ if (isset($maj_left_panel_bgcolor_t)) {
+ unset($maj_left_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
- $left_panel_bgcolor_c = file_get_contents("data/panels/$left_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_left_panel/bgcolor-c.txt")) {
+ $maj_left_panel_bgcolor_c = file_get_contents("data/panels/$maj_left_panel/bgcolor-c.txt");
}
else {
- if (isset($left_panel_bgcolor_c)) {
- unset($left_panel_bgcolor_c);
+ if (isset($maj_left_panel_bgcolor_c)) {
+ unset($maj_left_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
- $left_panel_text_t = file_get_contents("data/panels/$left_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_left_panel/text-t.txt")) {
+ $maj_left_panel_text_t = file_get_contents("data/panels/$maj_left_panel/text-t.txt");
}
else {
- if (isset($left_panel_text_t)) {
- unset($left_panel_text_t);
+ if (isset($maj_left_panel_text_t)) {
+ unset($maj_left_panel_text_t);
}
}
- if (file_exists("data/panels/$left_panel/text-c.txt")) {
- $left_panel_text_c = file_get_contents("data/panels/$left_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_left_panel/text-c.txt")) {
+ $maj_left_panel_text_c = file_get_contents("data/panels/$maj_left_panel/text-c.txt");
}
else {
- if (isset($left_panel_text_c)) {
- unset($left_panel_text_c);
+ if (isset($maj_left_panel_text_c)) {
+ unset($maj_left_panel_text_c);
}
}
@@ -1802,220 +1890,220 @@ if (file_exists("data/panels")) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($left_panel_border)) {
- echo " style=\"background-color: $left_panel_border;\"";
+ if (isset($maj_left_panel_border)) {
+ echo " style=\"background-color: $maj_left_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_text_t)) {
- echo "color: $left_panel_text_t;";
+ if (isset($maj_left_panel_text_t)) {
+ echo "color: $maj_left_panel_text_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_text_t)) {
- echo "color: $left_panel_text_t;";
+ if (isset($maj_left_panel_text_t)) {
+ echo "color: $maj_left_panel_text_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$left_panel/title.txt");
+ readfile("data/panels/$maj_left_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$left_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_left_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$left_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_left_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_text_c)) {
- echo "color: $left_panel_text_c;";
+ if (isset($maj_left_panel_text_c)) {
+ echo "color: $maj_left_panel_text_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$left_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_left_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$left_panel/panel.php");
+ include("data/panels/$maj_left_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_left_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($left_panel_border)) {
- echo " style=\"background-color: $left_panel_border;\"";
+ if (isset($maj_left_panel_border)) {
+ echo " style=\"background-color: $maj_left_panel_border;\"";
}
echo '></b></b>';
@@ -2024,60 +2112,60 @@ if (file_exists("data/panels")) {
}
}
-echo "</td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td>";
+echo "</td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td>";
// main
-echo "<td valign=\"top\" width=\"$wmain\">";
+echo "<td valign=\"top\" width=\"$maj_wmain\">";
-if ($count_top_panels > 0) {
+if ($maj_count_top_panels > 0) {
- foreach ($top_panels as $top_panel) {
+ foreach ($maj_top_panels as $maj_top_panel) {
- if (!file_exists("data/panels/$top_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_top_panel/free.txt")) {
- if (file_exists("data/panels/$top_panel/border.txt")) {
- $top_panel_border = file_get_contents("data/panels/$top_panel/border.txt");
+ if (file_exists("data/panels/$maj_top_panel/border.txt")) {
+ $maj_top_panel_border = file_get_contents("data/panels/$maj_top_panel/border.txt");
}
else {
- if (isset($top_panel_border)) {
- unset($top_panel_border);
+ if (isset($maj_top_panel_border)) {
+ unset($maj_top_panel_border);
}
}
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
- $top_panel_bgcolor_t = file_get_contents("data/panels/$top_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_top_panel/bgcolor-t.txt")) {
+ $maj_top_panel_bgcolor_t = file_get_contents("data/panels/$maj_top_panel/bgcolor-t.txt");
}
else {
- if (isset($top_panel_bgcolor_t)) {
- unset($top_panel_bgcolor_t);
+ if (isset($maj_top_panel_bgcolor_t)) {
+ unset($maj_top_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
- $top_panel_bgcolor_c = file_get_contents("data/panels/$top_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_top_panel/bgcolor-c.txt")) {
+ $maj_top_panel_bgcolor_c = file_get_contents("data/panels/$maj_top_panel/bgcolor-c.txt");
}
else {
- if (isset($top_panel_bgcolor_c)) {
- unset($top_panel_bgcolor_c);
+ if (isset($maj_top_panel_bgcolor_c)) {
+ unset($maj_top_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
- $top_panel_text_t = file_get_contents("data/panels/$top_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_top_panel/text-t.txt")) {
+ $maj_top_panel_text_t = file_get_contents("data/panels/$maj_top_panel/text-t.txt");
}
else {
- if (isset($top_panel_text_t)) {
- unset($top_panel_text_t);
+ if (isset($maj_top_panel_text_t)) {
+ unset($maj_top_panel_text_t);
}
}
- if (file_exists("data/panels/$top_panel/text-c.txt")) {
- $top_panel_text_c = file_get_contents("data/panels/$top_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_top_panel/text-c.txt")) {
+ $maj_top_panel_text_c = file_get_contents("data/panels/$maj_top_panel/text-c.txt");
}
else {
- if (isset($top_panel_text_c)) {
- unset($top_panel_text_c);
+ if (isset($maj_top_panel_text_c)) {
+ unset($maj_top_panel_text_c);
}
}
@@ -2085,220 +2173,220 @@ if ($count_top_panels > 0) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($top_panel_border)) {
- echo " style=\"background-color: $top_panel_border;\"";
+ if (isset($maj_top_panel_border)) {
+ echo " style=\"background-color: $maj_top_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_text_t)) {
- echo "color: $top_panel_text_t;";
+ if (isset($maj_top_panel_text_t)) {
+ echo "color: $maj_top_panel_text_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_text_t)) {
- echo "color: $top_panel_text_t;";
+ if (isset($maj_top_panel_text_t)) {
+ echo "color: $maj_top_panel_text_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$top_panel/title.txt");
+ readfile("data/panels/$maj_top_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$top_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_top_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$top_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_top_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c) or isset($maj_top_panel_text_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_text_c)) {
- echo "color: $top_panel_text_c;";
+ if (isset($maj_top_panel_text_c)) {
+ echo "color: $maj_top_panel_text_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c) or isset($maj_top_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$top_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_top_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$top_panel/panel.php");
+ include("data/panels/$maj_top_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_top_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($top_panel_border)) {
- echo " style=\"background-color: $top_panel_border;\"";
+ if (isset($maj_top_panel_border)) {
+ echo " style=\"background-color: $maj_top_panel_border;\"";
}
echo '></b></b>';
@@ -2316,331 +2404,331 @@ if (file_exists("data/albums")) {
// global entry items (start)
-if ($dh_items = opendir("data/items")) {
+if ($maj_dh_items = opendir("data/items")) {
- while (($item = readdir($dh_items)) !== false) {
+ while (($maj_item = readdir($maj_dh_items)) !== false) {
- if ($item != "." && $item != "..") {
+ if ($maj_item != "." && $maj_item != "..") {
- if (file_exists("data/items/$item/comments/live") and (count(glob("data/items/$item/comments/live/*")) < 1)) {
- rmdirr("data/items/$item/comments/live");
+ if (file_exists("data/items/$maj_item/comments/live") and (count(glob("data/items/$maj_item/comments/live/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments/live");
}
- if (file_exists("data/items/$item/comments/pending") and (count(glob("data/items/$item/comments/pending/*")) < 1)) {
- rmdirr("data/items/$item/comments/pending");
+ if (file_exists("data/items/$maj_item/comments/pending") and (count(glob("data/items/$maj_item/comments/pending/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments/pending");
}
- if (file_exists("data/items/$item/comments") and (count(glob("data/items/$item/comments/*")) < 1)) {
- rmdirr("data/items/$item/comments");
+ if (file_exists("data/items/$maj_item/comments") and (count(glob("data/items/$maj_item/comments/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments");
}
- if (file_exists("data/items/$item/filedrop/files") and (count(glob("data/items/$item/filedrop/files/*")) < 1)) {
- rmdirr("data/items/$item/filedrop/files");
+ if (file_exists("data/items/$maj_item/filedrop/files") and (count(glob("data/items/$maj_item/filedrop/files/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop/files");
}
- if (file_exists("data/items/$item/filedrop/count") and (count(glob("data/items/$item/filedrop/count/*")) < 1)) {
- rmdirr("data/items/$item/filedrop/count");
+ if (file_exists("data/items/$maj_item/filedrop/count") and (count(glob("data/items/$maj_item/filedrop/count/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop/count");
}
- if (file_exists("data/items/$item/filedrop") and (count(glob("data/items/$item/filedrop/*")) < 1)) {
- rmdirr("data/items/$item/filedrop");
+ if (file_exists("data/items/$maj_item/filedrop") and (count(glob("data/items/$maj_item/filedrop/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album/captions") and (count(glob("data/items/$item/album/captions/*")) < 1)) {
- rmdirr("data/items/$item/album/captions");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album/captions") and (count(glob("data/items/$maj_item/album/captions/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album/captions");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album/count") and (count(glob("data/items/$item/album/count/*")) < 1)) {
- rmdirr("data/items/$item/album/count");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album/count") and (count(glob("data/items/$maj_item/album/count/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album/count");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album") and (count(glob("data/items/$item/album/*")) < 1)) {
- rmdirr("data/items/$item/album");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album") and (count(glob("data/items/$maj_item/album/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album");
}
- if (file_exists("images/$item/album") and (count(glob("images/$item/album/*")) < 1)) {
- rmdirr("images/$item/album");
+ if (file_exists("images/$maj_item/album") and (count(glob("images/$maj_item/album/*")) < 1)) {
+ rmdirr("images/$maj_item/album");
}
- if (file_exists("images/$item") and (count(glob("images/$item/*")) < 1)) {
- rmdirr("images/$item");
+ if (file_exists("images/$maj_item") and (count(glob("images/$maj_item/*")) < 1)) {
+ rmdirr("images/$maj_item");
}
- if (file_exists("images/$item/categories") and (count(glob("images/$item/categories/*")) < 1)) {
- rmdirr("images/$item/categories");
+ if (file_exists("images/$maj_item/categories") and (count(glob("images/$maj_item/categories/*")) < 1)) {
+ rmdirr("images/$maj_item/categories");
}
- $grand[] = $item;
+ $maj_grand[] = $maj_item;
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- if (isset($req_entry) or isset($req_category) or isset($req_archive) or isset($req_find) or isset($req_author)) {
+ if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
- if (isset($req_entry) and file_exists("data/items/$req_entry")) {
- $items[] = $req_entry;
+ if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
+ $maj_items[] = $maj_req_entry;
}
- if (isset($req_category) and file_exists("data/categories/$req_category") and file_exists("data/items/$item/categories/$req_category")) {
- $items[] = $item;
+ if (isset($maj_req_category) and file_exists("data/categories/$maj_req_category") and file_exists("data/items/$maj_item/categories/$maj_req_category")) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_archive) and fnmatch("$req_archive*",$item)) {
- $items[] = $item;
+ if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_author) and (file_exists("data/members/active/$req_author") or (file_get_contents("data/username.txt") == $req_author)) and (file_get_contents("data/items/$item/author.txt") == $req_author)) {
- $items[] = $item;
+ if (isset($maj_req_author) and (file_exists("data/members/active/$maj_req_author") or (file_get_contents("data/username.txt") == $maj_req_author)) and (file_get_contents("data/items/$maj_item/author.txt") == $maj_req_author)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_find)) {
+ if (isset($maj_req_find)) {
- if ((($req_find == "private") or ($req_find == "member") or ($req_find == "passwd")) and file_exists("data/items/$item/{$req_find}.txt")) {
- $items[] = $item;
+ if ((($maj_req_find == "private") or ($maj_req_find == "member") or ($maj_req_find == "passwd")) and file_exists("data/items/$maj_item/{$maj_req_find}.txt")) {
+ $maj_items[] = $maj_item;
}
- if ((($req_find == "comments") or ($req_find == "filedrop") or ($req_find == "album")) and file_exists("data/items/$item/$req_find")) {
- $items[] = $item;
+ if ((($maj_req_find == "comments") or ($maj_req_find == "filedrop") or ($maj_req_find == "album")) and file_exists("data/items/$maj_item/$maj_req_find")) {
+ $maj_items[] = $maj_item;
}
- if (($req_find == "unfiled") and !file_exists("data/items/$item/categories")) {
- $items[] = $item;
+ if (($maj_req_find == "unfiled") and !file_exists("data/items/$maj_item/categories")) {
+ $maj_items[] = $maj_item;
}
}
}
else {
- $items[] = $item;
+ $maj_items[] = $maj_item;
}
- $latest[] = $item;
+ $maj_latest[] = $maj_item;
- if (file_exists("data/items/$item/album")) {
- $albums[] = $item;
+ if (file_exists("data/items/$maj_item/album")) {
+ $maj_albums[] = $maj_item;
}
- $random[] = $item;
+ $maj_random[] = $maj_item;
- $archives[] = substr($item,0,6);
+ $maj_archives[] = substr($maj_item,0,6);
}
else {
// non-admin stuff (start)
- $today = date("YmdHis",time() + $offset);
+ $maj_today = date("YmdHis",time() + $maj_offset);
- if ($item > $today) {
+ if ($maj_item > $maj_today) {
continue;
}
- if (file_exists("data/items/$item/private.txt")) {
+ if (file_exists("data/items/$maj_item/private.txt")) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$item/categories")) {
+ if (file_exists("data/items/$maj_item/categories")) {
- if ($dh_entry_categories = opendir("data/items/$item/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_item/categories")) {
- while (($item_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_item_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($item_category != "." && $item_category != "..") {
+ if ($maj_item_category != "." && $maj_item_category != "..") {
- if (file_exists("data/categories/$item_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_item_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if (($private_categories > 0) and !file_exists("data/items/$item/cat.txt")) {
+ if (($maj_private_categories > 0) and !file_exists("data/items/$maj_item/cat.txt")) {
continue;
}
- $latest[] = $item;
+ $maj_latest[] = $maj_item;
- if (file_exists("data/items/$item/member.txt") and (!isset($_SESSION['logged_in']))) {
+ if (file_exists("data/items/$maj_item/member.txt") and (!isset($_SESSION['logged_in']))) {
continue;
}
- if (file_exists("data/items/$item/album")) {
- $albums[] = $item;
+ if (file_exists("data/items/$maj_item/album")) {
+ $maj_albums[] = $maj_item;
}
- $random[] = $item;
- $archives[] = substr($item,0,6);
+ $maj_random[] = $maj_item;
+ $maj_archives[] = substr($maj_item,0,6);
- if (file_exists("data/nocat.txt") and file_exists("data/items/$item/categories") and !file_exists("data/items/$item/cat.txt") and (!isset($req_category) or empty($req_category)) and (!isset($req_entry) or empty($req_entry)) and (!isset($req_author) or empty($req_author))) {
+ if (file_exists("data/nocat.txt") and file_exists("data/items/$maj_item/categories") and !file_exists("data/items/$maj_item/cat.txt") and (!isset($maj_req_category) or empty($maj_req_category)) and (!isset($maj_req_entry) or empty($maj_req_entry)) and (!isset($maj_req_author) or empty($maj_req_author))) {
continue;
}
- if (isset($req_entry) or isset($req_category) or isset($req_archive) or isset($req_find) or isset($req_author)) {
+ if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
- if (isset($req_entry) and file_exists("data/items/$req_entry")) {
- $items[] = $req_entry;
+ if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
+ $maj_items[] = $maj_req_entry;
}
- if (isset($req_category) and file_exists("data/categories/$req_category") and file_exists("data/items/$item/categories/$req_category")) {
- $items[] = $item;
+ if (isset($maj_req_category) and file_exists("data/categories/$maj_req_category") and file_exists("data/items/$maj_item/categories/$maj_req_category")) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_archive) and fnmatch("$req_archive*",$item)) {
- $items[] = $item;
+ if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_author) and (file_exists("data/members/active/$req_author") or (file_get_contents("data/username.txt") == $req_author)) and (file_get_contents("data/items/$item/author.txt") == $req_author)) {
- $items[] = $item;
+ if (isset($maj_req_author) and (file_exists("data/members/active/$maj_req_author") or (file_get_contents("data/username.txt") == $maj_req_author)) and (file_get_contents("data/items/$maj_item/author.txt") == $maj_req_author)) {
+ $maj_items[] = $maj_item;
}
}
else {
- $items[] = $item;
+ $maj_items[] = $maj_item;
}
// non-admin stuff (end)
}
}
}
- closedir($dh_items);
+ closedir($maj_dh_items);
}
-sort($grand);
-reset($grand);
+sort($maj_grand);
+reset($maj_grand);
-$count_grand = count($grand);
+$maj_count_grand = count($maj_grand);
-if (isset($req_entry) and file_exists("data/items/$req_entry")) {
+if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
- if (file_exists("data/items/$req_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
- unset($items);
+ if (file_exists("data/items/$maj_req_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
+ unset($maj_items);
}
- if (file_exists("data/items/$req_entry/member.txt") and !isset($_SESSION['logged_in'])) {
- unset($items);
+ if (file_exists("data/items/$maj_req_entry/member.txt") and !isset($_SESSION['logged_in'])) {
+ unset($maj_items);
}
}
-$items = array_unique($items);
-$items = array_values($items);
+$maj_items = array_unique($maj_items);
+$maj_items = array_values($maj_items);
if (file_exists("data/old.txt")) {
- sort($items);
+ sort($maj_items);
}
else {
- rsort($items);
+ rsort($maj_items);
}
-reset($items);
+reset($maj_items);
-$count_items = count($items);
+$maj_count_items = count($maj_items);
-rsort($latest);
-reset($latest);
+rsort($maj_latest);
+reset($maj_latest);
-$count_latest = count($latest);
+$maj_count_latest = count($maj_latest);
-rsort($albums);
-reset($albums);
+rsort($maj_albums);
+reset($maj_albums);
-$count_albums = count($albums);
+$maj_count_albums = count($maj_albums);
-rsort($random);
-reset($random);
+rsort($maj_random);
+reset($maj_random);
-$count_random = count($random);
+$maj_count_random = count($maj_random);
-rsort($archives);
-reset($archives);
+rsort($maj_archives);
+reset($maj_archives);
-$count_archives = count($archives);
+$maj_count_archives = count($maj_archives);
-if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($req_entry) and !isset($req_category) and !isset($_REQUEST['start']) and !isset($req_author) and !isset($req_archive) and !isset($req_find)) {
+if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($maj_req_entry) and !isset($maj_req_category) and !isset($_REQUEST['start']) and !isset($maj_req_author) and !isset($maj_req_archive) and !isset($maj_req_find)) {
- if ($count_latest > 0) {
+ if ($maj_count_latest > 0) {
if (file_exists("data/round.txt")) {
echo "<b class=\"rbtop\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
}
else {
- echo "<div id=\"panel_title\">";
+ echo "<div class=\"panel_title\">";
}
- echo "Latest Entries</div><div id=\"panel_body\">";
+ echo "Latest Entries</div><div class=\"panel_body\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"100%\">";
echo "<tr><td bgcolor=\"#eeeeee\" align=\"center\">topic</td><td bgcolor=\"#eeeeee\" align=\"center\">author</td><td bgcolor=\"#eeeeee\" align=\"center\">views</td><td bgcolor=\"#eeeeee\" align=\"center\">comments</td><td bgcolor=\"#eeeeee\" align=\"center\">last post</td></tr>";
- $increment_latest = 0;
+ $maj_increment_latest = 0;
- while ($increment_latest <= 4) {
+ while ($maj_increment_latest <= 4) {
- echo "<tr><td bgcolor=\"#ffffff\"><a href=\"index.php?entry=$latest[$increment_latest]";
+ echo "<tr><td bgcolor=\"#ffffff\"><a href=\"index.php?entry=$maj_latest[$maj_increment_latest]";
- if ($dh_summary_comments = opendir("data/items/$latest[$increment_latest]/comments/live")) {
+ if ($maj_dh_summary_comments = opendir("data/items/$maj_latest[$maj_increment_latest]/comments/live")) {
- while (($entry_summary_comments = readdir($dh_summary_comments)) !== false) {
+ while (($maj_entry_summary_comments = readdir($maj_dh_summary_comments)) !== false) {
- if ($entry_summary_comments != "." && $entry_summary_comments != "..") {
- $items_summary_comments[] = $entry_summary_comments;
+ if ($maj_entry_summary_comments != "." && $maj_entry_summary_comments != "..") {
+ $maj_items_summary_comments[] = $maj_entry_summary_comments;
}
}
- closedir($dh_summary_comments);
+ closedir($maj_dh_summary_comments);
}
- rsort($items_summary_comments);
+ rsort($maj_items_summary_comments);
- $summary_comments = count($items_summary_comments);
+ $maj_summary_comments = count($maj_items_summary_comments);
- if ($summary_comments > 0) {
+ if ($maj_summary_comments > 0) {
echo "&show=comments";
}
echo "\">";
- readfile("data/items/$latest[$increment_latest]/title.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/title.txt");
echo "</a></td>";
- echo "<td bgcolor=\"#ffffff\"><a href=\"member.php?id=";
- readfile("data/items/$latest[$increment_latest]/author.txt");
+ echo "<td bgcolor=\"#ffffff\"><a href=\"member.php?class=";
+ readfile("data/items/$maj_latest[$maj_increment_latest]/author.txt");
echo "\">";
- readfile("data/items/$latest[$increment_latest]/author.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/author.txt");
echo "</a></td>";
echo "<td bgcolor=\"#ffffff\" align=\"right\">";
- if (!file_exists("data/items/$latest[$increment_latest]/views.txt")) {
+ if (!file_exists("data/items/$maj_latest[$maj_increment_latest]/views.txt")) {
echo 0;
}
else {
- readfile("data/items/$latest[$increment_latest]/views.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/views.txt");
}
echo "</td>";
- if ($summary_comments < 1) {
+ if ($maj_summary_comments < 1) {
- $iso_year = substr($latest[$increment_latest],0,4);
- $iso_month = substr($latest[$increment_latest],4,2);
- $iso_day = substr($latest[$increment_latest],6,2);
- $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
+ $maj_iso_year = substr($maj_latest[$maj_increment_latest],0,4);
+ $maj_iso_month = substr($maj_latest[$maj_increment_latest],4,2);
+ $maj_iso_day = substr($maj_latest[$maj_increment_latest],6,2);
+ $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
echo "<td bgcolor=\"#ffffff\" align=\"right\">0</td>";
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$iso_last</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
}
else {
- $iso_year = substr($items_summary_comments[0],0,4);
- $iso_month = substr($items_summary_comments[0],4,2);
- $iso_day = substr($items_summary_comments[0],6,2);
- $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
+ $maj_iso_year = substr($maj_items_summary_comments[0],0,4);
+ $maj_iso_month = substr($maj_items_summary_comments[0],4,2);
+ $maj_iso_day = substr($maj_items_summary_comments[0],6,2);
+ $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$summary_comments</td>";
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$iso_last</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_summary_comments</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
}
- unset($items_summary_comments);
+ unset($maj_items_summary_comments);
- $increment_latest = $increment_latest + 1;
+ $maj_increment_latest = $maj_increment_latest + 1;
}
}
- if ($count_latest > 0) {
+ if ($maj_count_latest > 0) {
echo "</table></div>";
@@ -2651,54 +2739,54 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_
}
-if ($count_center_panels > 0) {
+if ($maj_count_center_panels > 0) {
- foreach ($center_panels as $center_panel) {
+ foreach ($maj_center_panels as $maj_center_panel) {
- if (!file_exists("data/panels/$center_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_center_panel/free.txt")) {
- if (file_exists("data/panels/$center_panel/border.txt")) {
- $center_panel_border = file_get_contents("data/panels/$center_panel/border.txt");
+ if (file_exists("data/panels/$maj_center_panel/border.txt")) {
+ $maj_center_panel_border = file_get_contents("data/panels/$maj_center_panel/border.txt");
}
else {
- if (isset($center_panel_border)) {
- unset($center_panel_border);
+ if (isset($maj_center_panel_border)) {
+ unset($maj_center_panel_border);
}
}
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
- $center_panel_bgcolor_t = file_get_contents("data/panels/$center_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_center_panel/bgcolor-t.txt")) {
+ $maj_center_panel_bgcolor_t = file_get_contents("data/panels/$maj_center_panel/bgcolor-t.txt");
}
else {
- if (isset($center_panel_bgcolor_t)) {
- unset($center_panel_bgcolor_t);
+ if (isset($maj_center_panel_bgcolor_t)) {
+ unset($maj_center_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
- $center_panel_bgcolor_c = file_get_contents("data/panels/$center_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_center_panel/bgcolor-c.txt")) {
+ $maj_center_panel_bgcolor_c = file_get_contents("data/panels/$maj_center_panel/bgcolor-c.txt");
}
else {
- if (isset($center_panel_bgcolor_c)) {
- unset($center_panel_bgcolor_c);
+ if (isset($maj_center_panel_bgcolor_c)) {
+ unset($maj_center_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
- $center_panel_text_t = file_get_contents("data/panels/$center_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_center_panel/text-t.txt")) {
+ $maj_center_panel_text_t = file_get_contents("data/panels/$maj_center_panel/text-t.txt");
}
else {
- if (isset($center_panel_text_t)) {
- unset($center_panel_text_t);
+ if (isset($maj_center_panel_text_t)) {
+ unset($maj_center_panel_text_t);
}
}
- if (file_exists("data/panels/$center_panel/text-c.txt")) {
- $center_panel_text_c = file_get_contents("data/panels/$center_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_center_panel/text-c.txt")) {
+ $maj_center_panel_text_c = file_get_contents("data/panels/$maj_center_panel/text-c.txt");
}
else {
- if (isset($center_panel_text_c)) {
- unset($center_panel_text_c);
+ if (isset($maj_center_panel_text_c)) {
+ unset($maj_center_panel_text_c);
}
}
@@ -2706,220 +2794,220 @@ if ($count_center_panels > 0) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($center_panel_border)) {
- echo " style=\"background-color: $center_panel_border;\"";
+ if (isset($maj_center_panel_border)) {
+ echo " style=\"background-color: $maj_center_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_text_t)) {
- echo "color: $center_panel_text_t;";
+ if (isset($maj_center_panel_text_t)) {
+ echo "color: $maj_center_panel_text_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_text_t)) {
- echo "color: $center_panel_text_t;";
+ if (isset($maj_center_panel_text_t)) {
+ echo "color: $maj_center_panel_text_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$center_panel/title.txt");
+ readfile("data/panels/$maj_center_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$center_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_center_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$center_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_center_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c) or isset($maj_center_panel_text_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_text_c)) {
- echo "color: $center_panel_text_c;";
+ if (isset($maj_center_panel_text_c)) {
+ echo "color: $maj_center_panel_text_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c) or isset($maj_center_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$center_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_center_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$center_panel/panel.php");
+ include("data/panels/$maj_center_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_center_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($center_panel_border)) {
- echo " style=\"background-color: $center_panel_border;\"";
+ if (isset($maj_center_panel_border)) {
+ echo " style=\"background-color: $maj_center_panel_border;\"";
}
echo '></b></b>';
@@ -2927,29 +3015,29 @@ if ($count_center_panels > 0) {
}
}
-if (isset($req_category) and !empty($req_category)) {
+if (isset($maj_req_category) and !empty($maj_req_category)) {
- if (file_exists("data/categories/$req_category/book.txt")) {
- sort($items);
- reset($items);
+ if (file_exists("data/categories/$maj_req_category/book.txt")) {
+ sort($maj_items);
+ reset($maj_items);
}
}
-if ($count_items == 0) {
+if ($maj_count_items == 0) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
- echo "Oops!</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=4><tr>";
+ echo "Oops!</div><div class=panel_body><table border=0 cellspacing=0 cellpadding=4><tr>";
echo "<td valign=middle><img src=images/oops.png width=36 height=36 border=0></td><td valign=middle>";
- if (($count_grand == 0) and (count($_GET) == 0)) {
+ if (($maj_count_grand == 0) and (count($_GET) == 0)) {
echo "No entries found. Perhaps this is a fresh install.";
}
else {
@@ -2970,284 +3058,284 @@ if ($count_items == 0) {
echo "</td></tr></table>";
}
-$start = $_REQUEST['start'];
+$maj_start = $_REQUEST['start'];
if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
- $start = 0;
+ $maj_start = 0;
}
-$end = $start + $increase;
+$maj_end = $maj_start + $maj_increase;
-$disp = array_slice($items,$start,$increase);
+$maj_disp = array_slice($maj_items,$maj_start,$maj_increase);
-foreach ($disp as $d) {
+foreach ($maj_disp as $maj_d) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
- if (file_exists("data/items/$d/border.txt")) {
- $d_border = file_get_contents("data/items/$d/border.txt");
+ if (file_exists("data/items/$maj_d/border.txt")) {
+ $maj_d_border = file_get_contents("data/items/$maj_d/border.txt");
}
else {
- if (isset($d_border)) {
- unset($d_border);
+ if (isset($maj_d_border)) {
+ unset($maj_d_border);
}
}
- if (file_exists("data/items/$d/bgcolor-t.txt")) {
- $d_bgcolor_t = file_get_contents("data/items/$d/bgcolor-t.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-t.txt")) {
+ $maj_d_bgcolor_t = file_get_contents("data/items/$maj_d/bgcolor-t.txt");
}
else {
- if (isset($d_bgcolor_t)) {
- unset($d_bgcolor_t);
+ if (isset($maj_d_bgcolor_t)) {
+ unset($maj_d_bgcolor_t);
}
}
- if (file_exists("data/items/$d/bgcolor-b.txt")) {
- $d_bgcolor_b = file_get_contents("data/items/$d/bgcolor-b.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-b.txt")) {
+ $maj_d_bgcolor_b = file_get_contents("data/items/$maj_d/bgcolor-b.txt");
}
else {
- if (isset($d_bgcolor_b)) {
- unset($d_bgcolor_b);
+ if (isset($maj_d_bgcolor_b)) {
+ unset($maj_d_bgcolor_b);
}
}
- if (file_exists("data/items/$d/bgcolor-c.txt")) {
- $d_bgcolor_c = file_get_contents("data/items/$d/bgcolor-c.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-c.txt")) {
+ $maj_d_bgcolor_c = file_get_contents("data/items/$maj_d/bgcolor-c.txt");
}
else {
- if (isset($d_bgcolor_c)) {
- unset($d_bgcolor_c);
+ if (isset($maj_d_bgcolor_c)) {
+ unset($maj_d_bgcolor_c);
}
}
- if (file_exists("data/items/$d/bgcolor-f.txt")) {
- $d_bgcolor_f = file_get_contents("data/items/$d/bgcolor-f.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-f.txt")) {
+ $maj_d_bgcolor_f = file_get_contents("data/items/$maj_d/bgcolor-f.txt");
}
else {
- if (isset($d_bgcolor_f)) {
- unset($d_bgcolor_f);
+ if (isset($maj_d_bgcolor_f)) {
+ unset($maj_d_bgcolor_f);
}
}
- if (file_exists("data/items/$d/text-t.txt")) {
- $d_text_t = file_get_contents("data/items/$d/text-t.txt");
+ if (file_exists("data/items/$maj_d/text-t.txt")) {
+ $maj_d_text_t = file_get_contents("data/items/$maj_d/text-t.txt");
}
else {
- if (isset($d_text_t)) {
- unset($d_text_t);
+ if (isset($maj_d_text_t)) {
+ unset($maj_d_text_t);
}
}
- if (file_exists("data/items/$d/text-b.txt")) {
- $d_text_b = file_get_contents("data/items/$d/text-b.txt");
+ if (file_exists("data/items/$maj_d/text-b.txt")) {
+ $maj_d_text_b = file_get_contents("data/items/$maj_d/text-b.txt");
}
else {
- if (isset($d_text_b)) {
- unset($d_text_b);
+ if (isset($maj_d_text_b)) {
+ unset($maj_d_text_b);
}
}
- if (file_exists("data/items/$d/text-c.txt")) {
- $d_text_c = file_get_contents("data/items/$d/text-c.txt");
+ if (file_exists("data/items/$maj_d/text-c.txt")) {
+ $maj_d_text_c = file_get_contents("data/items/$maj_d/text-c.txt");
}
else {
- if (isset($d_text_c)) {
- unset($d_text_c);
+ if (isset($maj_d_text_c)) {
+ unset($maj_d_text_c);
}
}
- if (file_exists("data/items/$d/text-f.txt")) {
- $d_text_f = file_get_contents("data/items/$d/text-f.txt");
+ if (file_exists("data/items/$maj_d/text-f.txt")) {
+ $maj_d_text_f = file_get_contents("data/items/$maj_d/text-f.txt");
}
else {
- if (isset($d_text_f)) {
- unset($d_text_f);
+ if (isset($maj_d_text_f)) {
+ unset($maj_d_text_f);
}
}
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($d_border)) {
- echo " style=\"background-color: $d_border;\"";
+ if (isset($maj_d_border)) {
+ echo " style=\"background-color: $maj_d_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_text_t)) {
- echo "color: $d_text_t;";
+ if (isset($maj_d_text_t)) {
+ echo "color: $maj_d_text_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_text_t)) {
- echo "color: $d_text_t;";
+ if (isset($maj_d_text_t)) {
+ echo "color: $maj_d_text_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/items/$d/title.txt");
+ readfile("data/items/$maj_d/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/wiki.txt") and (file_exists("data/items/$d/edit.txt") or (file_get_contents("data/items/$d/author.txt") == $_SESSION['logged_in'])) and file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and !file_exists("data/items/$d/passwd.txt") and !file_exists("data/items/$d/lock.txt")) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/wiki.txt") and (file_exists("data/items/$maj_d/edit.txt") or (file_get_contents("data/items/$maj_d/author.txt") == $_SESSION['logged_in'])) and file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and !file_exists("data/items/$maj_d/passwd.txt") and !file_exists("data/items/$maj_d/lock.txt")) {
- if (file_exists("data/items/$d/wiki/delta") and (count(glob("data/items/$d/wiki/delta/*")) > 0)) {
- echo "<a href=\"wiki.php?entry=$d\">";
+ if (file_exists("data/items/$maj_d/wiki/delta") and (count(glob("data/items/$maj_d/wiki/delta/*")) > 0)) {
+ echo "<a href=\"wiki.php?entry=$maj_d\">";
echo "<img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\">";
echo "</a>";
}
- if (!file_exists("data/items/$d/lock.txt")) {
- echo "<a href=\"edit.php?entry=$d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
+ if (!file_exists("data/items/$maj_d/lock.txt")) {
+ echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
}
}
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- echo "<a href=\"del.php?entry=$d\"><img src=\"images/widget.del.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"delete entry\"></a>";
+ echo "<a href=\"del.php?entry=$maj_d\"><img src=\"images/widget.del.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"delete entry\"></a>";
- if (!file_exists("data/items/$d/private.txt") and !file_exists("data/items/$d/categories") and file_exists("data/bb.txt") and (count(glob("data/items/$d/comments/live/*")) === 0) and (count(glob("data/items/$d/comments/pending/*")) === 0)) {
- echo "<a href=\"move.php?entry=$d\"><img src=\"images/widget.move.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"move to comment\"></a>";
+ if (!file_exists("data/items/$maj_d/private.txt") and !file_exists("data/items/$maj_d/categories") and file_exists("data/bb.txt") and (count(glob("data/items/$maj_d/comments/live/*")) === 0) and (count(glob("data/items/$maj_d/comments/pending/*")) === 0)) {
+ echo "<a href=\"move.php?entry=$maj_d\"><img src=\"images/widget.move.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"move to comment\"></a>";
}
- if (file_exists("data/items/$d/wiki/delta") and (count(glob("data/items/$d/wiki/delta/*")) > 0)) {
- echo "<a href=\"wiki.php?entry=$d\"><img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\"></a>";
+ if (file_exists("data/items/$maj_d/wiki/delta") and (count(glob("data/items/$maj_d/wiki/delta/*")) > 0)) {
+ echo "<a href=\"wiki.php?entry=$maj_d\"><img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\"></a>";
}
- echo "<a href=\"edit.php?entry=$d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
+ echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
- if (file_exists("data/items/$d/passwd.txt")) {
+ if (file_exists("data/items/$maj_d/passwd.txt")) {
echo "<img src=\"images/widget.protected.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"protected entry\">";
}
- if (file_exists("data/items/$d/private.txt")) {
+ if (file_exists("data/items/$maj_d/private.txt")) {
echo "<img src=\"images/widget.private.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private entry\">";
}
- if (file_exists("data/items/$d/member.txt")) {
+ if (file_exists("data/items/$maj_d/member.txt")) {
echo "<img src=\"images/widget.member.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"members-only entry\">";
}
- if (file_exists("data/items/$d/cat.txt")) {
+ if (file_exists("data/items/$maj_d/cat.txt")) {
echo "<img src=\"images/widget.cat.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"always displayed\">";
}
- if (file_exists("data/items/$d/categories/$req_category")) {
+ if (file_exists("data/items/$maj_d/categories/$maj_req_category")) {
- $private_categories = "0";
- $book_categories = "0";
+ $maj_private_categories = "0";
+ $maj_book_categories = "0";
- if (file_exists("data/items/$d/categories")) {
+ if (file_exists("data/items/$maj_d/categories")) {
- if ($dh_read_cat_dir = opendir("data/items/$d/categories")) {
+ if ($maj_dh_read_cat_dir = opendir("data/items/$maj_d/categories")) {
- while (($read_cat_dir = readdir($dh_read_cat_dir)) !== false) {
+ while (($maj_read_cat_dir = readdir($maj_dh_read_cat_dir)) !== false) {
- if ($read_cat_dir != "." && $read_cat_dir != "..") {
+ if ($maj_read_cat_dir != "." && $maj_read_cat_dir != "..") {
- if (file_exists("data/categories/$read_cat_dir/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_read_cat_dir/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
- if (file_exists("data/categories/$read_cat_dir/book.txt")) {
- $book_categories = $book_categories + 1;
+ if (file_exists("data/categories/$maj_read_cat_dir/book.txt")) {
+ $maj_book_categories = $maj_book_categories + 1;
}
}
}
- closedir($dh_read_cat_dir);
+ closedir($maj_dh_read_cat_dir);
}
}
- if ($private_categories > 0) {
+ if ($maj_private_categories > 0) {
echo "<img src=\"images/widget.hidden.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private category\">";
}
@@ -3255,7 +3343,7 @@ foreach ($disp as $d) {
echo "<img src=\"images/widget.isolated.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"isolated category\">";
}
- if ($book_categories > 0) {
+ if ($maj_book_categories > 0) {
echo "<img src=\"images/widget.booked.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"book category\">";
}
@@ -3264,25 +3352,25 @@ foreach ($disp as $d) {
}
- echo "</div><div id=\"panel_entry_body\"";
+ echo "</div><div class=\"panel_entry_body\"";
- if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo ' style="';
}
- if (isset($d_bgcolor_b)) {
- echo "background-color: $d_bgcolor_b;";
+ if (isset($maj_d_bgcolor_b)) {
+ echo "background-color: $maj_d_bgcolor_b;";
}
- if (isset($d_text_b)) {
- echo "color: $d_text_b;";
+ if (isset($maj_d_text_b)) {
+ echo "color: $maj_d_text_b;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo '"';
}
@@ -3290,193 +3378,193 @@ foreach ($disp as $d) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
- if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$d/author.txt")) {
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt")) {
echo "<td width=\"85\" valign=\"top\">";
- $author = file_get_contents("data/items/$d/author.txt");
+ $maj_author = file_get_contents("data/items/$maj_d/author.txt");
- echo "<a href=\"member.php?id=$author\">";
+ echo "<a href=\"member.php?class=$maj_author\">";
- if ((file_get_contents("data/username.txt") == $author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
+ if ((file_get_contents("data/username.txt") == $maj_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
if (file_exists("images/avatar.gif")) {
- $avatar_gif_image_size = getimagesize("images/avatar.gif");
- $avatar_gif_image_width = $avatar_gif_image_size[0];
- $avatar_gif_image_height = $avatar_gif_image_size[1];
+ $maj_avatar_gif_image_size = getimagesize("images/avatar.gif");
+ $maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
+ $maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 80;
- if ($avatar_gif_image_width > $max_avatar_gif_image_width) {
- $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
- $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
- $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
+ if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_gif_image_width / $maj_avatar_gif_image_width) ;
+ $maj_avatar_gif_image_width = (int) ($maj_avatar_gif_image_width * $maj_sizefactor);
+ $maj_avatar_gif_image_height = (int) ($maj_avatar_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.gif\" border=\"0\" width=\"$avatar_gif_image_width\" height=\"$avatar_gif_image_height\">";
+ echo "<img src=\"images/avatar.gif\" border=\"0\" width=\"$maj_avatar_gif_image_width\" height=\"$maj_avatar_gif_image_height\">";
}
if (file_exists("images/avatar.jpg")) {
- $avatar_jpg_image_size = getimagesize("images/avatar.jpg");
- $avatar_jpg_image_width = $avatar_jpg_image_size[0];
- $avatar_jpg_image_height = $avatar_jpg_image_size[1];
+ $maj_avatar_jpg_image_size = getimagesize("images/avatar.jpg");
+ $maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
+ $maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 80;
- if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {
- $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
- $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
- $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
+ if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_jpg_image_width / $maj_avatar_jpg_image_width) ;
+ $maj_avatar_jpg_image_width = (int) ($maj_avatar_jpg_image_width * $maj_sizefactor);
+ $maj_avatar_jpg_image_height = (int) ($maj_avatar_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.jpg\" border=\"0\" width=\"$avatar_jpg_image_width\" height=\"$avatar_jpg_image_height\">";
+ echo "<img src=\"images/avatar.jpg\" border=\"0\" width=\"$maj_avatar_jpg_image_width\" height=\"$maj_avatar_jpg_image_height\">";
}
if (file_exists("images/avatar.png")) {
- $avatar_png_image_size = getimagesize("images/avatar.png");
- $avatar_png_image_width = $avatar_png_image_size[0];
- $avatar_png_image_height = $avatar_png_image_size[1];
+ $maj_avatar_png_image_size = getimagesize("images/avatar.png");
+ $maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
+ $maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 80;
- if ($avatar_png_image_width > $max_avatar_png_image_width) {
- $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
- $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
- $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
+ if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
+ $maj_avatar_png_image_width = (int) ($maj_avatar_png_image_width * $maj_sizefactor);
+ $maj_avatar_png_image_height = (int) ($maj_avatar_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.png\" border=\"0\" width=\"$avatar_png_image_width\" height=\"$avatar_png_image_height\">";
+ echo "<img src=\"images/avatar.png\" border=\"0\" width=\"$maj_avatar_png_image_width\" height=\"$maj_avatar_png_image_height\">";
}
echo "<br>";
}
- elseif (file_exists("images/members/$author/avatar.jpg") or file_exists("images/members/$author/avatar.gif") or file_exists("images/members/$author/avatar.png")) {
+ elseif (file_exists("images/members/$maj_author/avatar.jpg") or file_exists("images/members/$maj_author/avatar.gif") or file_exists("images/members/$maj_author/avatar.png")) {
- if (file_exists("images/members/$author/avatar.gif")) {
+ if (file_exists("images/members/$maj_author/avatar.gif")) {
- $avatar_gif_image_size = getimagesize("images/members/$author/avatar.gif");
- $avatar_gif_image_width = $avatar_gif_image_size[0];
- $avatar_gif_image_height = $avatar_gif_image_size[1];
+ $maj_avatar_gif_image_size = getimagesize("images/members/$maj_author/avatar.gif");
+ $maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
+ $maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 80;
- if ($avatar_gif_image_width > $max_avatar_gif_image_width) {
- $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
- $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
- $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
+ if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_gif_image_width / $maj_avatar_gif_image_width) ;
+ $maj_avatar_gif_image_width = (int) ($maj_avatar_gif_image_width * $maj_sizefactor);
+ $maj_avatar_gif_image_height = (int) ($maj_avatar_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.gif\" border=\"0\" width=\"$avatar_gif_image_width\" height=\"$avatar_gif_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.gif\" border=\"0\" width=\"$maj_avatar_gif_image_width\" height=\"$maj_avatar_gif_image_height\">";
}
- if (file_exists("images/members/$author/avatar.jpg")) {
+ if (file_exists("images/members/$maj_author/avatar.jpg")) {
- $avatar_jpg_image_size = getimagesize("images/members/$author/avatar.jpg");
- $avatar_jpg_image_width = $avatar_jpg_image_size[0];
- $avatar_jpg_image_height = $avatar_jpg_image_size[1];
+ $maj_avatar_jpg_image_size = getimagesize("images/members/$maj_author/avatar.jpg");
+ $maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
+ $maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 80;
- if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {
- $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
- $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
- $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
+ if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_jpg_image_width / $maj_avatar_jpg_image_width) ;
+ $maj_avatar_jpg_image_width = (int) ($maj_avatar_jpg_image_width * $maj_sizefactor);
+ $maj_avatar_jpg_image_height = (int) ($maj_avatar_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.jpg\" border=\"0\" width=\"$avatar_jpg_image_width\" height=\"$avatar_jpg_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.jpg\" border=\"0\" width=\"$maj_avatar_jpg_image_width\" height=\"$maj_avatar_jpg_image_height\">";
}
- if (file_exists("images/members/$author/avatar.png")) {
+ if (file_exists("images/members/$maj_author/avatar.png")) {
- $avatar_png_image_size = getimagesize("images/members/$author/avatar.png");
- $avatar_png_image_width = $avatar_png_image_size[0];
- $avatar_png_image_height = $avatar_png_image_size[1];
+ $maj_avatar_png_image_size = getimagesize("images/members/$maj_author/avatar.png");
+ $maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
+ $maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 80;
- if ($avatar_png_image_width > $max_avatar_png_image_width) {
- $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
- $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
- $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
+ if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
+ $maj_avatar_png_image_width = (int) ($maj_avatar_png_image_width * $maj_sizefactor);
+ $maj_avatar_png_image_height = (int) ($maj_avatar_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.png\" border=\"0\" width=\"$avatar_png_image_width\" height=\"$avatar_png_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.png\" border=\"0\" width=\"$maj_avatar_png_image_width\" height=\"$maj_avatar_png_image_height\">";
}
echo "<br>";
}
- echo "<b>$author</b></a><br>";
+ echo "<b>$maj_author</b></a><br>";
- if ((file_get_contents("data/username.txt") == $author) and file_exists("data/rank.txt")) {
+ if ((file_get_contents("data/username.txt") == $maj_author) and file_exists("data/rank.txt")) {
echo "administrator<br>";
}
- elseif (file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
- $rank = file_get_contents("data/members/active/$author/rank.txt");
- echo "$rank<br>";
+ elseif (file_exists("data/members/active/$maj_author/rank.txt") and file_exists("data/rank.txt")) {
+ $maj_rank = file_get_contents("data/members/active/$maj_author/rank.txt");
+ echo "$maj_rank<br>";
}
- elseif (!file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
+ elseif (!file_exists("data/members/active/$maj_author/rank.txt") and file_exists("data/rank.txt")) {
echo "member<br>";
}
- if ($dh_author_posts = opendir("data/items")) {
+ if ($maj_dh_author_posts = opendir("data/items")) {
- while (($author_post = readdir($dh_author_posts)) !== false) {
+ while (($maj_author_post = readdir($maj_dh_author_posts)) !== false) {
- if ($author_post != "." && $author_post != "..") {
+ if ($maj_author_post != "." && $maj_author_post != "..") {
- if (file_exists("data/items/$author_post/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/items/$maj_author_post/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$author_post/categories")) {
+ if (file_exists("data/items/$maj_author_post/categories")) {
- if ($dh_entry_categories_posts = opendir("data/items/$author_post/categories")) {
+ if ($maj_dh_entry_categories_posts = opendir("data/items/$maj_author_post/categories")) {
- while (($entry_category_posts = readdir($dh_entry_categories_posts)) !== false) {
+ while (($maj_entry_category_posts = readdir($maj_dh_entry_categories_posts)) !== false) {
- if ($entry_category_posts != "." && $entry_category_posts != "..") {
+ if ($maj_entry_category_posts != "." && $maj_entry_category_posts != "..") {
- if (file_exists("data/categories/$entry_category_posts/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category_posts/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories_posts);
+ closedir($maj_dh_entry_categories_posts);
}
}
- if (($private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$author_post/cat.txt")) {
+ if (($maj_private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and !file_exists("data/items/$maj_author_post/cat.txt")) {
continue;
}
- if (file_exists("data/members/active/$author") and file_exists("data/bb.txt")) {
+ if (file_exists("data/members/active/$maj_author") and file_exists("data/bb.txt")) {
- if (file_exists("data/items/$author_post/author.txt") and (file_get_contents("data/items/$author_post/author.txt") == $author)) {
- $items_posts[] = $author_post;
+ if (file_exists("data/items/$maj_author_post/author.txt") and (file_get_contents("data/items/$maj_author_post/author.txt") == $maj_author)) {
+ $maj_items_posts[] = $maj_author_post;
}
}
- elseif (!file_exists("data/members/active/$author") and (file_get_contents("data/username.txt") == $author) and file_exists("data/bb.txt")) {
+ elseif (!file_exists("data/members/active/$maj_author") and (file_get_contents("data/username.txt") == $maj_author) and file_exists("data/bb.txt")) {
- if (file_exists("data/items/$author_post/author.txt") and (file_get_contents("data/items/$author_post/author.txt") == $author)) {
- $items_posts[] = $author_post;
+ if (file_exists("data/items/$maj_author_post/author.txt") and (file_get_contents("data/items/$maj_author_post/author.txt") == $maj_author)) {
+ $maj_items_posts[] = $maj_author_post;
}
}
}
}
- closedir($dh_author_posts);
+ closedir($maj_dh_author_posts);
}
- $posts = count($items_posts);
+ $maj_posts = count($maj_items_posts);
- if ($posts == 1) {
- echo "$posts post";
+ if ($maj_posts == 1) {
+ echo "$maj_posts post";
}
- if ($posts > 1) {
- echo "$posts posts";
+ if ($maj_posts > 1) {
+ echo "$maj_posts posts";
}
- unset($items_posts);
+ unset($maj_items_posts);
echo "</td><td width=513 valign=top>";
}
@@ -3484,86 +3572,86 @@ foreach ($disp as $d) {
echo "<td width=598 valign=top>";
}
- if (file_exists("data/items/$d/passwd.txt")) {
- $passwd = file_get_contents("data/items/$d/passwd.txt");
+ if (file_exists("data/items/$maj_d/passwd.txt")) {
+ $maj_passwd = file_get_contents("data/items/$maj_d/passwd.txt");
}
if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
- $crypt_passwd = sha1($_REQUEST['passwd']);
- $crypt_passwd = md5($crypt_passwd);
- $crypt_passwd = crypt($crypt_passwd,$crypt_passwd);
+ $maj_crypt_passwd = sha1($_REQUEST['passwd']);
+ $maj_crypt_passwd = md5($maj_crypt_passwd);
+ $maj_crypt_passwd = crypt($maj_crypt_passwd,$maj_crypt_passwd);
}
- echo "<font style=\"font-size: 10px; color: #999999;\">";
+ echo "<font style=\"font-size: $maj_font_10px; color: #999999;\">";
- if ((file_exists("data/items/$d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and !file_exists("data/avatar.txt"))))) {
- $xavatar_author = file_get_contents("data/items/$d/author.txt");
- echo "$xavatar_author - ";
+ if ((file_exists("data/items/$maj_d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
+ $maj_xavatar_author = file_get_contents("data/items/$maj_d/author.txt");
+ echo "$maj_xavatar_author - ";
}
- entry2date($d);
+ entry2date($maj_d);
- if ((isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) or file_exists("data/items/$d/lastmod.txt")) {
+ if ((isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) or file_exists("data/items/$maj_d/lastmod.txt")) {
- if (file_exists("data/items/$d/revisions.txt")) {
+ if (file_exists("data/items/$maj_d/revisions.txt")) {
echo " (Revision ";
- readfile("data/items/$d/revisions.txt");
+ readfile("data/items/$maj_d/revisions.txt");
echo " - ";
- echo date("l, M j, Y, g:i A",filemtime("data/items/$d/body.txt"));
+ echo date("l, M j, Y, g:i A",filemtime("data/items/$maj_d/body.txt"));
echo ")";
}
}
echo "</font><font style=\"font-size: 5px;\"><br><br></font>";
- if (isset($d_text_b)) {
- echo "<font style=\"color: $d_text_b;\">";
+ if (isset($maj_d_text_b)) {
+ echo "<font style=\"color: $maj_d_text_b;\">";
}
- if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
+ if (file_exists("data/items/$maj_d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
+ echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$maj_d\">here</a> to enter it.";
}
else {
- $entry_body = file_get_contents("data/items/$d/body.txt");
+ $maj_entry_body = file_get_contents("data/items/$maj_d/body.txt");
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $entry_body = preg_replace("/\b($badwords)\b/i",$censor,$entry_body);
+ $maj_entry_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_body);
}
- if (file_exists("data/items/$d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
+ if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
- $entry_shorten = file_get_contents("data/items/$d/maxlines.txt");
+ $maj_entry_shorten = file_get_contents("data/items/$maj_d/maxlines.txt");
- $entry_lines = explode("\r",$entry_body);
+ $maj_entry_lines = explode("\r",$maj_entry_body);
- if (count($entry_lines) > $entry_shorten) {
- $entry_body = implode("",array_slice($entry_lines,0,$entry_shorten));
- $entry_body = $entry_body . "<br><br><a href=\"index.php?entry=$d&view=full\">read more</a>";
+ if (count($maj_entry_lines) > $maj_entry_shorten) {
+ $maj_entry_body = implode("",array_slice($maj_entry_lines,0,$maj_entry_shorten));
+ $maj_entry_body = $maj_entry_body . "<br><br><a href=\"index.php?entry=$maj_d&view=full\">read more</a>";
}
}
- echo $entry_body;
+ echo $maj_entry_body;
}
- if ((file_get_contents("data/username.txt") == $author) and file_exists("data/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
- $sig = file_get_contents("data/sig.txt");
- echo "<br><br>--<br>$sig";
+ if ((file_get_contents("data/username.txt") == $maj_author) and file_exists("data/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
+ $maj_sig = file_get_contents("data/sig.txt");
+ echo "<br><br>--<br>$maj_sig";
}
- elseif (file_exists("data/members/active/$author/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
- $sig = file_get_contents("data/members/active/$author/sig.txt");
- echo "<br><br>--<br>$sig";
+ elseif (file_exists("data/members/active/$maj_author/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
+ $maj_sig = file_get_contents("data/members/active/$maj_author/sig.txt");
+ echo "<br><br>--<br>$maj_sig";
}
- if (isset($d_text_b)) {
+ if (isset($maj_d_text_b)) {
echo "</font>";
}
@@ -3575,81 +3663,81 @@ foreach ($disp as $d) {
echo "</div>";
- if (file_exists("data/items/$d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
+ if (file_exists("data/items/$maj_d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
- if ($dh_entry_categories = opendir("data/items/$d/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_d/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
- $entry_categories[] = $entry_category;
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
+ $maj_entry_categories[] = $maj_entry_category;
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
- sort($entry_categories);
- reset($entry_categories);
+ sort($maj_entry_categories);
+ reset($maj_entry_categories);
- if (count($entry_categories) > 0) {
+ if (count($maj_entry_categories) > 0) {
- if (count($entry_categories) > 1) {
- $category_list = "categories";
+ if (count($maj_entry_categories) > 1) {
+ $maj_category_list = "categories";
}
else {
- $category_list = "category";
+ $maj_category_list = "category";
}
- foreach ($entry_categories as $filed_under) {
- $category_list = $category_list . " | <a href=\"index.php?category=$filed_under\">$filed_under</a>";
+ foreach ($maj_entry_categories as $maj_filed_under) {
+ $maj_category_list = $maj_category_list . " | <a href=\"index.php?category=$maj_filed_under\">$maj_filed_under</a>";
}
- echo "<div id=\"panel_category\"";
+ echo "<div class=\"panel_category\"";
- if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo ' style="';
}
- if (isset($d_bgcolor_c)) {
- echo "background-color: $d_bgcolor_c;";
+ if (isset($maj_d_bgcolor_c)) {
+ echo "background-color: $maj_d_bgcolor_c;";
}
- if (isset($d_text_c)) {
- echo "color: $d_text_c;";
+ if (isset($maj_d_text_c)) {
+ echo "color: $maj_d_text_c;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo '"';
}
- echo ">$category_list</div>";
+ echo ">$maj_category_list</div>";
}
- unset($entry_categories);
+ unset($maj_entry_categories);
}
- echo "<div id=\"panel_footer\"";
+ echo "<div class=\"panel_footer\"";
- if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo ' style="';
}
- if (isset($d_bgcolor_f)) {
- echo "background-color: $d_bgcolor_f;";
+ if (isset($maj_d_bgcolor_f)) {
+ echo "background-color: $maj_d_bgcolor_f;";
}
- if (isset($d_text_f)) {
- echo "color: $d_text_f;";
+ if (isset($maj_d_text_f)) {
+ echo "color: $maj_d_text_f;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo '"';
}
@@ -3657,210 +3745,210 @@ foreach ($disp as $d) {
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in']))) {
- if (!file_exists("data/items/$d/comments/live")) {
- echo "<a href=\"index.php?entry=$d&show=comments\">add comment</a>";
+ if (!file_exists("data/items/$maj_d/comments/live")) {
+ echo "<a href=\"index.php?entry=$maj_d&show=comments\">add comment</a>";
}
else {
- if ($dh_comments = opendir("data/items/$d/comments/live")) {
+ if ($maj_dh_comments = opendir("data/items/$maj_d/comments/live")) {
- while (($live_comment = readdir($dh_comments)) !== false) {
+ while (($maj_live_comment = readdir($maj_dh_comments)) !== false) {
- if ($live_comment != "." && $live_comment != "..") {
- $live_comments[] = $live_comment;
+
tree 1be2914c79881fc33e6a27700017fc21f6470345
parent a343c1200dd37c89738f1c372d61333502ab5057
author Engels Antonio <engels@majcms.org> 1277314212 +0800
committer Engels Antonio <engels@majcms.org> 1277314212 +0800
maj-1.0-20090624-bb.zip
diff --git a/fonts.php b/fonts.php
index 2018bc1..b63fcc4 100644
--- a/fonts.php
+++ b/fonts.php
@@ -179,6 +179,81 @@ if (!isset($_POST['panel_footer']) or empty($_POST['panel_footer'])) {
}
}
+if (isset($_POST['body_size']) and is_numeric($_POST['body_size']) and !empty($_POST['body_size']) and (file_get_contents("data/fonts/body-size.txt") != $_POST['body_size']) and ($_POST['body_size'] != "11")) {
+ $body_size_write_content = trim($_POST['body_size']);
+ $fp_body_size_txt = fopen("data/fonts/body-size.txt","w");
+ fwrite($fp_body_size_txt,$body_size_write_content);
+ fclose($fp_body_size_txt);
+}
+
+if (!isset($_POST['body_size']) or empty($_POST['body_size']) or ($_POST['body_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/body-size.txt")) {
+ unlink("data/fonts/body-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['input_size']) and is_numeric($_POST['input_size']) and !empty($_POST['input_size']) and (file_get_contents("data/fonts/input-size.txt") != $_POST['input_size']) and ($_POST['input_size'] != "11")) {
+ $input_size_write_content = trim($_POST['input_size']);
+ $fp_input_size_txt = fopen("data/fonts/input-size.txt","w");
+ fwrite($fp_input_size_txt,$input_size_write_content);
+ fclose($fp_input_size_txt);
+}
+
+if (!isset($_POST['input_size']) or empty($_POST['input_size']) or ($_POST['input_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/input-size.txt")) {
+ unlink("data/fonts/input-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_title_size']) and is_numeric($_POST['panel_title_size']) and !empty($_POST['panel_title_size']) and (file_get_contents("data/fonts/panel-title-size.txt") != $_POST['panel_title_size']) and ($_POST['panel_title_size'] != "12")) {
+ $panel_title_size_write_content = trim($_POST['panel_title_size']);
+ $fp_panel_title_size_txt = fopen("data/fonts/panel-title-size.txt","w");
+ fwrite($fp_panel_title_size_txt,$panel_title_size_write_content);
+ fclose($fp_panel_title_size_txt);
+}
+
+if (!isset($_POST['panel_title_size']) or empty($_POST['panel_title_size']) or ($_POST['panel_title_size'] == "12")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-title-size.txt")) {
+ unlink("data/fonts/panel-title-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_body_size']) and is_numeric($_POST['panel_body_size']) and !empty($_POST['panel_body_size']) and (file_get_contents("data/fonts/panel-body-size.txt") != $_POST['panel_body_size']) and ($_POST['panel_body_size'] != "11")) {
+ $panel_body_size_write_content = trim($_POST['panel_body_size']);
+ $fp_panel_body_size_txt = fopen("data/fonts/panel-body-size.txt","w");
+ fwrite($fp_panel_body_size_txt,$panel_body_size_write_content);
+ fclose($fp_panel_body_size_txt);
+}
+
+if (!isset($_POST['panel_body_size']) or empty($_POST['panel_body_size']) or ($_POST['panel_body_size'] == "11")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-body-size.txt")) {
+ unlink("data/fonts/panel-body-size.txt");
+ }
+ }
+}
+
+if (isset($_POST['panel_footer_size']) and is_numeric($_POST['panel_footer_size']) and !empty($_POST['panel_footer_size']) and (file_get_contents("data/fonts/panel-footer-size.txt") != $_POST['panel_footer_size']) and ($_POST['panel_footer_size'] != "10")) {
+ $panel_footer_size_write_content = trim($_POST['panel_footer_size']);
+ $fp_panel_footer_size_txt = fopen("data/fonts/panel-footer-size.txt","w");
+ fwrite($fp_panel_footer_size_txt,$panel_footer_size_write_content);
+ fclose($fp_panel_footer_size_txt);
+}
+
+if (!isset($_POST['panel_footer_size']) or empty($_POST['panel_footer_size']) or ($_POST['panel_footer_size'] == "10")) {
+ if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-footer-size.txt")) {
+ unlink("data/fonts/panel-footer-size.txt");
+ }
+ }
+}
+
?>
<title>Fonts</title>
@@ -513,37 +588,81 @@ a:active {
<input type=hidden name=edit value=on>
<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc>
-<tr><td bgcolor=#ffffff><p>body</p></td><td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
+<tr><td bgcolor=#ffffff align=center><b>target</b></td><td bgcolor=#ffffff align=center><b>font family</b></td><td bgcolor=#ffffff align=center><b>px</b></td></tr>
+
+<tr>
+<td bgcolor=#ffffff><p>body</p></td>
+<td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
echo ' value="';
readfile("data/fonts/body.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="body_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/body-size.txt")) {
+ readfile("data/fonts/body-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>input</p></td><td bgcolor=#ffffff><input type=text class=input name=input autocomplete=off<?php if (file_exists("data/fonts/input.txt")) {
echo ' value="';
readfile("data/fonts/input.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="input_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/input-size.txt")) {
+ readfile("data/fonts/input-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel title</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_title autocomplete=off<?php if (file_exists("data/fonts/panel-title.txt")) {
echo ' value="';
readfile("data/fonts/panel-title.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_title_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-title-size.txt")) {
+ readfile("data/fonts/panel-title-size.txt");
+}
+else {
+ echo "12";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel body</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_body autocomplete=off<?php if (file_exists("data/fonts/panel-body.txt")) {
echo ' value="';
readfile("data/fonts/panel-body.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_body_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-body-size.txt")) {
+ readfile("data/fonts/panel-body-size.txt");
+}
+else {
+ echo "11";
+}
+?>"></td>
+</tr>
<tr><td bgcolor=#ffffff><p>panel footer</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_footer autocomplete=off<?php if (file_exists("data/fonts/panel-footer.txt")) {
echo ' value="';
readfile("data/fonts/panel-footer.txt");
echo '"';
-} ?>></td></tr>
+} ?>></td>
+<td bgcolor=#ffffff><input type="text" class="input" name="panel_footer_size" style="width: 25px; text-align: center;" maxlength="2" autocomplete="off" value="<?php if (file_exists("data/fonts/panel-footer-size.txt")) {
+ readfile("data/fonts/panel-footer-size.txt");
+}
+else {
+ echo "10";
+}
+?>"></td>
+</tr>
-<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td></tr>
+<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td><td bgcolor=#ffffff rowspan=3><p></p></td></tr>
</form>
<form action=fonts.php method=post>
<input type=hidden name=reset value=go>
diff --git a/index.php b/index.php
index 84e8bd7..83317ef 100644
--- a/index.php
+++ b/index.php
@@ -13,300 +13,300 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP
}
if (get_magic_quotes_gpc()) {
- function stripslashes_array($data) {
- if (is_array($data)) {
- foreach ($data as $key => $value) {
- $data[$key] = stripslashes_array($value);
+ function stripslashes_array($maj_data) {
+ if (is_array($maj_data)) {
+ foreach ($maj_data as $maj_key => $maj_value) {
+ $maj_data[$maj_key] = stripslashes_array($maj_value);
}
- return $data;
+ return $maj_data;
}
else {
- return stripslashes($data);
+ return stripslashes($maj_data);
}
}
$_REQUEST = stripslashes_array($_REQUEST);
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
- $req_entry = trim($_REQUEST['entry']);
+ $maj_req_entry = trim($_REQUEST['entry']);
}
if (isset($_REQUEST['show']) and !empty($_REQUEST['show'])) {
- $req_show = trim($_REQUEST['show']);
+ $maj_req_show = trim($_REQUEST['show']);
}
if (isset($_REQUEST['find']) and !empty($_REQUEST['find'])) {
- $req_find = trim($_REQUEST['find']);
- $req_find = str_replace(" ","-",$req_find);
- $req_find = strtolower($req_find);
- $req_find = strip_tags($req_find);
+ $maj_req_find = trim($_REQUEST['find']);
+ $maj_req_find = str_replace(" ","-",$maj_req_find);
+ $maj_req_find = strtolower($maj_req_find);
+ $maj_req_find = strip_tags($maj_req_find);
}
if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
- $req_category = trim($_REQUEST['category']);
- $req_category = str_replace(" ","-",$req_category);
- $req_category = strtolower($req_category);
- $req_category = strip_tags($req_category);
+ $maj_req_category = trim($_REQUEST['category']);
+ $maj_req_category = str_replace(" ","-",$maj_req_category);
+ $maj_req_category = strtolower($maj_req_category);
+ $maj_req_category = strip_tags($maj_req_category);
}
if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
- $req_archive = trim($_REQUEST['archive']);
+ $maj_req_archive = trim($_REQUEST['archive']);
}
if (isset($_REQUEST['author']) and !empty($_REQUEST['author'])) {
- $req_author = trim($_REQUEST['author']);
- $req_author = str_replace(" ","-",$req_author);
- $req_author = strtolower($req_author);
- $req_author = strip_tags($req_author);
+ $maj_req_author = trim($_REQUEST['author']);
+ $maj_req_author = str_replace(" ","-",$maj_req_author);
+ $maj_req_author = strtolower($maj_req_author);
+ $maj_req_author = strip_tags($maj_req_author);
}
if (file_exists("data/offset.txt")) {
- $offset = file_get_contents("data/offset.txt");
+ $maj_offset = file_get_contents("data/offset.txt");
}
else {
- $offset = 0;
+ $maj_offset = 0;
}
if (file_exists("data/increase.txt")) {
- $increase = file_get_contents("data/increase.txt");
+ $maj_increase = file_get_contents("data/increase.txt");
}
else {
- $increase = 5;
+ $maj_increase = 5;
}
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
- $wmain = "610";
+ $maj_wmain = "610";
}
else {
- $wmain = "525";
+ $maj_wmain = "525";
}
-$wside = "175";
-$wspace = "10";
+$maj_wside = "175";
+$maj_wspace = "10";
-$wtable = $wside + $wspace + $wmain + $wspace + $wside;
+$maj_wtable = $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside;
-$default_blog_title = "My Activity Journal";
-$default_username = "maj";
-$default_password = "php";
-$default_blog_profile = 'This cool site is powered by <a href="http://maj.sourceforge.net/" target="_maj">My Activity Journal</a>, a simple, <a href="http://php.net/" target="_maj">PHP</a>-based, <a href="http://www.opensource.org/licenses/gpl-license.php" target="_maj">Open Source</a> blog written from scratch as a spare time family project by <a href="http://psylocke.org/" target="_maj">Psylocke</a>, <a href="http://gaffud.com/" target="_maj">Magie</a>, and <a href="http://engels.mortega.net/" target="_maj">Engels</a> Antonio.';
-$default_blog_author = "My Activity Journal";
+$maj_default_blog_title = "My Activity Journal";
+$maj_default_username = "maj";
+$maj_default_password = "php";
+$maj_default_blog_profile = 'This cool site is powered by <a href="http://maj.sourceforge.net/" target="_maj">My Activity Journal</a>, a simple, <a href="http://php.net/" target="_maj">PHP</a>-based, <a href="http://www.opensource.org/licenses/gpl-license.php" target="_maj">Open Source</a> blog written from scratch as a spare time family project by <a href="http://psylocke.org/" target="_maj">Psylocke</a>, <a href="http://gaffud.com/" target="_maj">Magie</a>, and <a href="http://engels.mortega.net/" target="_maj">Engels</a> Antonio.';
+$maj_default_blog_author = "My Activity Journal";
if (!file_exists("data")) {
mkdir("data");
}
if (!file_exists("data/.htaccess")) {
- $htaccess = "Order deny,allow\nDeny from all";
- $fp_htaccess_txt = fopen("data/.htaccess","w");
- fwrite($fp_htaccess_txt,$htaccess);
- fclose($fp_htaccess_txt);
+ $maj_htaccess = "Order deny,allow\nDeny from all";
+ $maj_fp_htaccess_txt = fopen("data/.htaccess","w");
+ fwrite($maj_fp_htaccess_txt,$maj_htaccess);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/title.txt")) {
- $fp_default_title_txt = fopen("data/title.txt","w");
- fwrite($fp_default_title_txt,$default_blog_title);
- fclose($fp_default_title_txt);
+ $maj_fp_default_title_txt = fopen("data/title.txt","w");
+ fwrite($maj_fp_default_title_txt,$maj_default_blog_title);
+ fclose($maj_fp_default_title_txt);
}
if (!file_exists("data/username.txt")) {
- $fp_htaccess_txt = fopen("data/username.txt","w");
- fwrite($fp_htaccess_txt,$default_username);
- fclose($fp_htaccess_txt);
+ $maj_fp_htaccess_txt = fopen("data/username.txt","w");
+ fwrite($maj_fp_htaccess_txt,$maj_default_username);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/password.txt")) {
- $default_password = sha1($default_password);
- $default_password = md5($default_password);
- $default_password = crypt($default_password,$default_password);
- $fp_htaccess_txt = fopen("data/password.txt","w");
- fwrite($fp_htaccess_txt,$default_password);
- fclose($fp_htaccess_txt);
+ $maj_default_password = sha1($maj_default_password);
+ $maj_default_password = md5($maj_default_password);
+ $maj_default_password = crypt($maj_default_password,$maj_default_password);
+ $maj_fp_htaccess_txt = fopen("data/password.txt","w");
+ fwrite($maj_fp_htaccess_txt,$maj_default_password);
+ fclose($maj_fp_htaccess_txt);
}
if (!file_exists("data/profile.php")) {
- $fp_default_profile_txt = fopen("data/profile.php","w");
- fwrite($fp_default_profile_txt,$default_blog_profile);
- fclose($fp_default_profile_txt);
+ $maj_fp_default_profile_txt = fopen("data/profile.php","w");
+ fwrite($maj_fp_default_profile_txt,$maj_default_blog_profile);
+ fclose($maj_fp_default_profile_txt);
}
if (!file_exists("data/author.txt")) {
- $fp_default_author_txt = fopen("data/author.txt","w");
- fwrite($fp_default_author_txt,$default_blog_author);
- fclose($fp_default_author_txt);
+ $maj_fp_default_author_txt = fopen("data/author.txt","w");
+ fwrite($maj_fp_default_author_txt,$maj_default_blog_author);
+ fclose($maj_fp_default_author_txt);
}
-$default_title = file_get_contents("data/title.txt");
-$login_username = file_get_contents("data/username.txt");
+$maj_default_title = file_get_contents("data/title.txt");
+$maj_login_username = file_get_contents("data/username.txt");
-if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
+if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) {
if (file_exists("data/hits.txt")) {
- $global_hits_count = file_get_contents("data/hits.txt");
+ $maj_global_hits_count = file_get_contents("data/hits.txt");
}
else {
- $global_hits_count = "0";
+ $maj_global_hits_count = "0";
}
- $global_hits_count = $global_hits_count + 1;
+ $maj_global_hits_count = $maj_global_hits_count + 1;
- $global_hits_file = fopen("data/hits.txt","w");
- fwrite($global_hits_file,$global_hits_count);
- fclose($global_hits_file);
+ $maj_global_hits_file = fopen("data/hits.txt","w");
+ fwrite($maj_global_hits_file,$maj_global_hits_count);
+ fclose($maj_global_hits_file);
}
if (@ereg("Google",$_SERVER['HTTP_USER_AGENT'])) {
if (file_exists("data/google.txt")) {
- $google_hits_count = file_get_contents("data/google.txt");
+ $maj_google_hits_count = file_get_contents("data/google.txt");
}
else {
- $google_hits_count = "0";
+ $maj_google_hits_count = "0";
}
- $google_hits_count = $google_hits_count + 1;
+ $maj_google_hits_count = $maj_google_hits_count + 1;
- $google_hits_file = fopen("data/google.txt","w");
- fwrite($google_hits_file,$google_hits_count);
- fclose($google_hits_file);
+ $maj_google_hits_file = fopen("data/google.txt","w");
+ fwrite($maj_google_hits_file,$maj_google_hits_count);
+ fclose($maj_google_hits_file);
}
-function str_rand($length = 8,$seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
- $str = '';
- $seeds_count = strlen($seeds);
+function str_rand($maj_length = 8,$maj_seeds = 'abcdefghijklmnopqrstuvwxyz0123456789') {
+ $maj_str = '';
+ $maj_seeds_count = strlen($maj_seeds);
- list($usec,$sec) = explode(' ',microtime());
- $seed = (float) $sec + ((float) $usec * 100000);
- mt_srand($seed);
+ list($maj_usec,$maj_sec) = explode(' ',microtime());
+ $maj_seed = (float) $maj_sec + ((float) $maj_usec * 100000);
+ mt_srand($maj_seed);
- for ($i = 0; $length > $i; $i++) {
- $str .= $seeds{mt_rand(0,$seeds_count - 1)};
+ for ($maj_i = 0; $maj_length > $maj_i; $maj_i++) {
+ $maj_str .= $maj_seeds{mt_rand(0,$maj_seeds_count - 1)};
}
- return $str;
+ return $maj_str;
}
-function rmdirr($recurse_dirname) {
+function rmdirr($maj_recurse_dirname) {
- if (!file_exists($recurse_dirname)) {
+ if (!file_exists($maj_recurse_dirname)) {
return false;
}
- if (is_file($recurse_dirname)) {
- return unlink($recurse_dirname);
+ if (is_file($maj_recurse_dirname)) {
+ return unlink($maj_recurse_dirname);
}
- $recurse_dir = dir($recurse_dirname);
+ $maj_recurse_dir = dir($maj_recurse_dirname);
- while (false !== $recurse_entry = $recurse_dir->read()) {
+ while (false !== $maj_recurse_entry = $maj_recurse_dir->read()) {
- if ($recurse_entry == '.' || $recurse_entry == '..') {
+ if ($maj_recurse_entry == '.' || $maj_recurse_entry == '..') {
continue;
}
- rmdirr("$recurse_dirname/$recurse_entry");
+ rmdirr("$maj_recurse_dirname/$maj_recurse_entry");
}
- $recurse_dir->close();
- return rmdir($recurse_dirname);
+ $maj_recurse_dir->close();
+ return rmdir($maj_recurse_dirname);
}
if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
ini_set("zlib.output_compression","off");
- $dl_file = str_replace("../","",@$_REQUEST['download']);
- go_download($dl_file);
+ $maj_dl_file = str_replace("../","",@$_REQUEST['download']);
+ go_download($maj_dl_file);
die();
}
-function go_download($dl_file) {
+function go_download($maj_dl_file) {
- $req_entry = trim($_REQUEST['entry']);
+ $maj_req_entry = trim($_REQUEST['entry']);
if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == "pdf")) {
- $dl_path = "data/items/$req_entry/pdf/file";
- $count_path = "data/items/$req_entry/pdf/count";
- $count_file = "dl.txt";
+ $maj_dl_path = "data/items/$maj_req_entry/pdf/file";
+ $maj_count_path = "data/items/$maj_req_entry/pdf/count";
+ $maj_count_file = "dl.txt";
}
if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == "filedrop")) {
- $dl_path = "data/items/$req_entry/filedrop/files";
- $count_path = "data/items/$req_entry/filedrop/count";
- $count_file = "{$dl_file}.txt";
+ $maj_dl_path = "data/items/$maj_req_entry/filedrop/files";
+ $maj_count_path = "data/items/$maj_req_entry/filedrop/count";
+ $maj_count_file = "{$maj_dl_file}.txt";
}
- $dl_file_size = filesize("$dl_path/$dl_file");
+ $maj_dl_file_size = filesize("$maj_dl_path/$maj_dl_file");
header("Cache-Control: ");
header("Pragma: ");
header("Content-type: application/octet-stream");
- header("Content-Disposition: attachment; filename=$dl_file");
- header("Content-length: $dl_file_size");
+ header("Content-Disposition: attachment; filename=$maj_dl_file");
+ header("Content-length: $maj_dl_file_size");
- $get_it = fopen("$dl_path/$dl_file","rb");
+ $maj_get_it = fopen("$maj_dl_path/$maj_dl_file","rb");
- while (!feof($get_it)) {
- $buf = fread($get_it,4096);
- echo $buf;
- $bytes_sent += strlen($buf);
+ while (!feof($maj_get_it)) {
+ $maj_buf = fread($maj_get_it,4096);
+ echo $maj_buf;
+ $maj_bytes_sent += strlen($maj_buf);
}
- if ($bytes_sent == $dl_file_size) {
+ if ($maj_bytes_sent == $maj_dl_file_size) {
- if (!file_exists($count_path)) {
- mkdir($count_path);
+ if (!file_exists($maj_count_path)) {
+ mkdir($maj_count_path);
}
- $unique_downloads = "$count_path/$count_file";
+ $maj_unique_downloads = "$maj_count_path/$maj_count_file";
- if (file_exists($unique_downloads)) {
- $count_unique_downloads = file_get_contents($unique_downloads);
+ if (file_exists($maj_unique_downloads)) {
+ $maj_count_unique_downloads = file_get_contents($maj_unique_downloads);
}
else {
- $count_unique_downloads = "0";
+ $maj_count_unique_downloads = "0";
}
- $count_unique_downloads = $count_unique_downloads + 1;
+ $maj_count_unique_downloads = $maj_count_unique_downloads + 1;
- $fp_unique_downloads = fopen($unique_downloads,"w");
- fwrite($fp_unique_downloads,$count_unique_downloads);
- fclose($fp_unique_downloads);
+ $maj_fp_unique_downloads = fopen($maj_unique_downloads,"w");
+ fwrite($maj_fp_unique_downloads,$maj_count_unique_downloads);
+ fclose($maj_fp_unique_downloads);
}
}
-function entry2date($f_entry) {
+function entry2date($maj_f_entry) {
- $f_entry_year = substr($f_entry,0,4);
- $f_entry_month = substr($f_entry,4,2);
- $f_entry_day = substr($f_entry,6,2);
- $f_entry_hour = substr($f_entry,8,2);
- $f_entry_min = substr($f_entry,10,2);
- $f_entry_sec = substr($f_entry,12,2);
+ $maj_f_entry_year = substr($maj_f_entry,0,4);
+ $maj_f_entry_month = substr($maj_f_entry,4,2);
+ $maj_f_entry_day = substr($maj_f_entry,6,2);
+ $maj_f_entry_hour = substr($maj_f_entry,8,2);
+ $maj_f_entry_min = substr($maj_f_entry,10,2);
+ $maj_f_entry_sec = substr($maj_f_entry,12,2);
- echo date("l, M j, Y, g:i A",mktime($f_entry_hour,$f_entry_min,$f_entry_sec,$f_entry_month,$f_entry_day,$f_entry_year));
+ echo date("l, M j, Y, g:i A",mktime($maj_f_entry_hour,$maj_f_entry_min,$maj_f_entry_sec,$maj_f_entry_month,$maj_f_entry_day,$maj_f_entry_year));
}
-if (isset($req_entry) and !empty($req_entry) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['key']) and !empty($_REQUEST['key']) and isset($_REQUEST['action']) and !empty($_REQUEST['action'])) {
+if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['key']) and !empty($_REQUEST['key']) and isset($_REQUEST['action']) and !empty($_REQUEST['action'])) {
- $comment_dir = "data/items/$req_entry/comments/pending/{$_REQUEST['comment']}";
+ $maj_comment_dir = "data/items/$maj_req_entry/comments/pending/{$_REQUEST['comment']}";
- $login_key = file_get_contents("$comment_dir/key.txt");
+ $maj_login_key = file_get_contents("$maj_comment_dir/key.txt");
- if ($_REQUEST['key'] == $login_key) {
+ if ($_REQUEST['key'] == $maj_login_key) {
if ($_REQUEST['action'] == "approve") {
- $live_dir = "data/items/$req_entry/comments/live/{$_REQUEST['comment']}";
+ $maj_live_dir = "data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}";
- if (!file_exists("data/items/$req_entry/comments/live")) {
- mkdir("data/items/$req_entry/comments/live");
+ if (!file_exists("data/items/$maj_req_entry/comments/live")) {
+ mkdir("data/items/$maj_req_entry/comments/live");
}
- if (!file_exists("data/items/$req_entry/comments/live/{$_REQUEST['comment']}")) {
- mkdir("data/items/$req_entry/comments/live/{$_REQUEST['comment']}");
+ if (!file_exists("data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}")) {
+ mkdir("data/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}");
}
- rename($comment_dir,$live_dir);
+ rename($maj_comment_dir,$maj_live_dir);
- unlink("$live_dir/key.txt");
+ unlink("$maj_live_dir/key.txt");
// clean-up old latest comments dir
@@ -322,363 +322,363 @@ if (isset($req_entry) and !empty($req_entry) and isset($_REQUEST['comment']) and
mkdir("data/comments/unread");
}
- if (!file_exists("data/comments/unread/$req_entry")) {
- mkdir("data/comments/unread/$req_entry");
+ if (!file_exists("data/comments/unread/$maj_req_entry")) {
+ mkdir("data/comments/unread/$maj_req_entry");
}
- if ($dh_unread_active_members = opendir("data/members/active")) {
+ if ($maj_dh_unread_active_members = opendir("data/members/active")) {
- while (($unread_active_member = readdir($dh_unread_active_members)) !== false) {
+ while (($maj_unread_active_member = readdir($maj_dh_unread_active_members)) !== false) {
- if ($unread_active_member != "." && $unread_active_member != "..") {
+ if ($maj_unread_active_member != "." && $maj_unread_active_member != "..") {
- if (!file_exists("data/members/active/$unread_active_member/comments")) {
- mkdir("data/members/active/$unread_active_member/comments");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments");
}
- if (!file_exists("data/members/active/$unread_active_member/comments/unread")) {
- mkdir("data/members/active/$unread_active_member/comments/unread");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments/unread")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments/unread");
}
- if (!file_exists("data/members/active/$unread_active_member/comments/unread/$req_entry")) {
- mkdir("data/members/active/$unread_active_member/comments/unread/$req_entry");
+ if (!file_exists("data/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry")) {
+ mkdir("data/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry");
}
}
}
- closedir($dh_unread_active_members);
+ closedir($maj_dh_unread_active_members);
}
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$req_entry/categories")) {
+ if (file_exists("data/items/$maj_req_entry/categories")) {
- if ($dh_entry_categories = opendir("data/items/$req_entry/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_req_entry/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
- if (file_exists("data/categories/$entry_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_exists("data/email.txt") and !file_exists("data/items/$req_entry/private.txt") and ($private_categories == "0")) {
+ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_exists("data/email.txt") and !file_exists("data/items/$maj_req_entry/private.txt") and ($maj_private_categories == "0")) {
if (file_exists("data/ml-reply2.txt")) {
- $ml_reply2 = file_get_contents("data/ml-reply2.txt");
+ $maj_ml_reply2 = file_get_contents("data/ml-reply2.txt");
}
if (file_exists("data/ml-from.txt")) {
- $ml_from = $ml_reply2;
+ $maj_ml_from = $maj_ml_reply2;
}
else {
- $ml_from = file_get_contents("$live_dir/email.txt");
+ $maj_ml_from = file_get_contents("$maj_live_dir/email.txt");
}
- $ml_from = str_replace(" at ","@",$ml_from);
+ $maj_ml_from = str_replace(" at ","@",$maj_ml_from);
- $ml_from_firstname = file_get_contents("$live_dir/firstname.txt");
- $ml_from_lastname = file_get_contents("$live_dir/lastname.txt");
+ $maj_ml_from_firstname = file_get_contents("$maj_live_dir/firstname.txt");
+ $maj_ml_from_lastname = file_get_contents("$maj_live_dir/lastname.txt");
- $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
+ $maj_ml_from = '"' . "$maj_ml_from_firstname $maj_ml_from_lastname" . '" <' . $maj_ml_from . '>';
- $ml_subject = file_get_contents("data/items/$req_entry/title.txt");
+ $maj_ml_subject = file_get_contents("data/items/$maj_req_entry/title.txt");
if (file_exists("data/ml-prepend.txt")) {
- $ml_prepend = file_get_contents("data/ml-prepend.txt");
- $ml_subject = str_replace($ml_prepend,"",$ml_subject);
- $ml_subject = $ml_prepend . " " . $ml_subject;
- }
-
- $ml_subject = str_replace("Re:","",$ml_subject);
- $ml_subject = "Re: " . $ml_subject;
-
- $ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
-
- $ml_body = file_get_contents("$live_dir/comment.txt");
- $ml_body = str_replace('<br />',"\n",$ml_body);
- $ml_body = str_replace('<img src="images/smileys/crying.png" border="0">',':((',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/frown.png" border="0">',':(',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/indifferent.png" border="0">',':|',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/laughing.png" border="0">',':D',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/lick.png" border="0">',':P',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/ohno.png" border="0">',':O',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/smile.png" border="0">',':)',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/surprised.png" border="0">','=)',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/undecided.png" border="0">',':\\',$ml_body);
- $ml_body = str_replace('<img src="images/smileys/wink.png" border="0">',';)',$ml_body);
- $ml_body = str_replace('&','&',$ml_body);
- $ml_body = str_replace('<','<',$ml_body);
- $ml_body = str_replace('>','>',$ml_body);
- $ml_body = str_replace('®','(R)',$ml_body);
+ $maj_ml_prepend = file_get_contents("data/ml-prepend.txt");
+ $maj_ml_subject = str_replace($maj_ml_prepend,"",$maj_ml_subject);
+ $maj_ml_subject = $maj_ml_prepend . " " . $maj_ml_subject;
+ }
+
+ $maj_ml_subject = str_replace("Re:","",$maj_ml_subject);
+ $maj_ml_subject = "Re: " . $maj_ml_subject;
+
+ $maj_ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+
+ $maj_ml_body = file_get_contents("$maj_live_dir/comment.txt");
+ $maj_ml_body = str_replace('<br />',"\n",$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/crying.png" border="0">',':((',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/frown.png" border="0">',':(',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/indifferent.png" border="0">',':|',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/laughing.png" border="0">',':D',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/lick.png" border="0">',':P',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/ohno.png" border="0">',':O',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/smile.png" border="0">',':)',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/surprised.png" border="0">','=)',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/undecided.png" border="0">',':\\',$maj_ml_body);
+ $maj_ml_body = str_replace('<img src="images/smileys/wink.png" border="0">',';)',$maj_ml_body);
+ $maj_ml_body = str_replace('&','&',$maj_ml_body);
+ $maj_ml_body = str_replace('<','<',$maj_ml_body);
+ $maj_ml_body = str_replace('>','>',$maj_ml_body);
+ $maj_ml_body = str_replace('®','(R)',$maj_ml_body);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt")) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $ml_body = preg_replace("/\b($badwords)\b/i",$censor,$ml_body);
+ $maj_ml_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_ml_body);
}
if (file_exists("data/ml-header.txt")) {
- $ml_header = file_get_contents("data/ml-header.txt");
- $ml_body = $ml_header . "\n\n" . $ml_body;
+ $maj_ml_header = file_get_contents("data/ml-header.txt");
+ $maj_ml_body = $maj_ml_header . "\n\n" . $maj_ml_body;
}
- $ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
- $ml_url = str_replace('//','/',$ml_url);
- $ml_url = "http://$ml_url/index.php?entry=$req_entry&show=comments";
+ $maj_ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
+ $maj_ml_url = str_replace('//','/',$maj_ml_url);
+ $maj_ml_url = "http://$maj_ml_url/index.php?entry=$maj_req_entry&show=comments";
- $ml_body = $ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $ml_url;
+ $maj_ml_body = $maj_ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $maj_ml_url;
- if (file_exists("data/items/$req_entry/member.txt")) {
- $ml_body = $ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
+ if (file_exists("data/items/$maj_req_entry/member.txt")) {
+ $maj_ml_body = $maj_ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
}
if (file_exists("data/ml-footer.txt")) {
- $ml_footer = file_get_contents("data/ml-footer.txt");
- $ml_body = $ml_body . "\n\n" . $ml_footer;
+ $maj_ml_footer = file_get_contents("data/ml-footer.txt");
+ $maj_ml_body = $maj_ml_body . "\n\n" . $maj_ml_footer;
}
- if ($dh_ml_member = opendir("data/members/active")) {
- while (($ml_member = readdir($dh_ml_member)) !== false) {
- if ($ml_member != "." && $ml_member != "..") {
+ if ($maj_dh_ml_member = opendir("data/members/active")) {
+ while (($maj_ml_member = readdir($maj_dh_ml_member)) !== false) {
+ if ($maj_ml_member != "." && $maj_ml_member != "..") {
- if (file_exists("data/members/active/$ml_member/noml.txt")) {
+ if (file_exists("data/members/active/$maj_ml_member/noml.txt")) {
continue;
}
- if (file_exists("data/members/active/$ml_member/vacation.txt")) {
+ if (file_exists("data/members/active/$maj_ml_member/vacation.txt")) {
continue;
}
- $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
- $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
- $ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
- $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <'. $ml_to . '>';
+ $maj_ml_to_firstname = file_get_contents("data/members/active/$maj_ml_member/firstname.txt");
+ $maj_ml_to_lastname = file_get_contents("data/members/active/$maj_ml_member/lastname.txt");
+ $maj_ml_to = file_get_contents("data/members/active/$maj_ml_member/email.txt");
+ $maj_ml_to = '"' . "$maj_ml_to_firstname $maj_ml_to_lastname" . '" <'. $maj_ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
- mail($ml_to,$ml_subject,$ml_body,
- "From: $ml_from\r\n" .
- "Reply-To: $ml_reply2\r\n" .
- "References: $req_entry\r\n" .
- "X-Mailer: $ml_mailer");
+ mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
+ "From: $maj_ml_from\r\n" .
+ "Reply-To: $maj_ml_reply2\r\n" .
+ "References: $maj_req_entry\r\n" .
+ "X-Mailer: $maj_ml_mailer");
}
else {
- mail($ml_to,$ml_subject,$ml_body,
- "From: $ml_from\r\n" .
- "References: $req_entry\r\n" .
- "X-Mailer: $ml_mailer");
+ mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
+ "From: $maj_ml_from\r\n" .
+ "References: $maj_req_entry\r\n" .
+ "X-Mailer: $maj_ml_mailer");
}
}
}
- closedir($dh_ml_member);
+ closedir($maj_dh_ml_member);
}
}
}
if ($_REQUEST['action'] == "delete") {
- rmdirr($comment_dir);
+ rmdirr($maj_comment_dir);
}
- $pending_comment_flag_dir = $req_entry;
+ $maj_pending_comment_flag_dir = $maj_req_entry;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
- $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","r");
+ $maj_comment_count_value = fread($maj_fp_comment_count_txt,filesize("data/comments/pending/$maj_pending_comment_flag_dir/count.txt"));
+ fclose($maj_fp_comment_count_txt);
- if ($comment_count_value <= 1) {
- rmdirr("data/comments/pending/$pending_comment_flag_dir");
+ if ($maj_comment_count_value <= 1) {
+ rmdirr("data/comments/pending/$maj_pending_comment_flag_dir");
}
else {
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
- $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","r");
+ $maj_comment_count_value = fread($maj_fp_comment_count_txt,filesize("data/comments/pending/$maj_pending_comment_flag_dir/count.txt"));
+ fclose($maj_fp_comment_count_txt);
- $comment_count_value = $comment_count_value - 1;
+ $maj_comment_count_value = $maj_comment_count_value - 1;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
- fwrite($fp_comment_count_txt,$comment_count_value);
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag_dir/count.txt","w");
+ fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
+ fclose($maj_fp_comment_count_txt);
}
- header("Location: index.php?entry=$req_entry&show=comments");
+ header("Location: index.php?entry=$maj_req_entry&show=comments");
}
}
-if (isset($req_entry) and !empty($req_entry)) {
+if (isset($maj_req_entry) and !empty($maj_req_entry)) {
- if (file_exists("data/items/$req_entry")) {
+ if (file_exists("data/items/$maj_req_entry")) {
- $title = file_get_contents("data/items/$req_entry/title.txt");
+ $maj_title = file_get_contents("data/items/$maj_req_entry/title.txt");
- echo "<title>$title</title>";
+ echo "<title>$maj_title</title>";
- if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
- if (file_exists("data/items/$req_entry/views.txt")) {
- $count_views = file_get_contents("data/items/$req_entry/views.txt");
+ if (file_exists("data/items/$maj_req_entry/views.txt")) {
+ $maj_count_views = file_get_contents("data/items/$maj_req_entry/views.txt");
}
else {
- $count_views = "0";
+ $maj_count_views = "0";
}
- $count_views = $count_views + 1;
+ $maj_count_views = $maj_count_views + 1;
- $fp_views = fopen("data/items/$req_entry/views.txt","w");
- fwrite($fp_views,$count_views);
- fclose($fp_views);
+ $maj_fp_views = fopen("data/items/$maj_req_entry/views.txt","w");
+ fwrite($maj_fp_views,$maj_count_views);
+ fclose($maj_fp_views);
}
- if (isset($req_show) and !empty($req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['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['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == $_POST['captcha_put']) and (ereg("@",$_POST['email'])) and (ereg("\.",$_POST['email']))) {
+ if (isset($maj_req_show) and !empty($maj_req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['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['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == $_POST['captcha_put']) and (ereg("@",$_POST['email'])) and (ereg("\.",$_POST['email']))) {
- if (!file_exists("data/items/$req_entry/comments")) {
- mkdir("data/items/$req_entry/comments");
+ if (!file_exists("data/items/$maj_req_entry/comments")) {
+ mkdir("data/items/$maj_req_entry/comments");
}
- if (!file_exists("data/items/$req_entry/comments/pending")) {
- mkdir("data/items/$req_entry/comments/pending");
+ if (!file_exists("data/items/$maj_req_entry/comments/pending")) {
+ mkdir("data/items/$maj_req_entry/comments/pending");
}
- if (!file_exists("data/items/$req_entry/comments/live")) {
- mkdir("data/items/$req_entry/comments/live");
+ if (!file_exists("data/items/$maj_req_entry/comments/live")) {
+ mkdir("data/items/$maj_req_entry/comments/live");
}
- $timestamp = date("l, M j, Y, g:i A",time() + $offset);
+ $maj_timestamp = date("l, M j, Y, g:i A",time() + $maj_offset);
- $comment_entry_dir = date("YmdHis",time() + $offset);
+ $maj_comment_entry_dir = date("YmdHis",time() + $maj_offset);
- mkdir("data/items/$req_entry/comments/pending/$comment_entry_dir");
+ mkdir("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir");
- $body_content = ucfirst($_POST['new_comment']);
- $body_content = htmlentities($body_content,ENT_NOQUOTES);
- $body_content = str_replace("\n",'<br />',$body_content);
- $body_content = trim($body_content);
- $body_content = str_replace(':((','<img src="images/smileys/crying.png" border="0">',$body_content);
- $body_content = str_replace(':(','<img src="images/smileys/frown.png" border="0">',$body_content);
- $body_content = str_replace(':|','<img src="images/smileys/indifferent.png" border="0">',$body_content);
- $body_content = str_replace(':D','<img src="images/smileys/laughing.png" border="0">',$body_content);
- $body_content = str_replace(':P','<img src="images/smileys/lick.png" border="0">',$body_content);
- $body_content = str_replace(':O','<img src="images/smileys/ohno.png" border="0">',$body_content);
- $body_content = str_replace(':)','<img src="images/smileys/smile.png" border="0">',$body_content);
- $body_content = str_replace('=)','<img src="images/smileys/surprised.png" border="0">',$body_content);
- $body_content = str_replace(':\\','<img src="images/smileys/undecided.png" border="0">',$body_content);
- $body_content = str_replace(';)','<img src="images/smileys/wink.png" border="0">',$body_content);
-
- $fp_body_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/comment.txt","w");
- fwrite($fp_body_txt,$body_content);
- fclose($fp_body_txt);
-
- $fp_timestamp_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/timestamp.txt","w");
- fwrite($fp_timestamp_txt,$timestamp);
- fclose($fp_timestamp_txt);
-
- $fp_firstname_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/firstname.txt","w");
- $firstname = strtolower($_POST['firstname']);
- $firstname = ucwords($firstname);
- $firstname = trim($firstname);
- $firstname = htmlentities($firstname,ENT_NOQUOTES);
- fwrite($fp_firstname_txt,$firstname);
- fclose($fp_firstname_txt);
-
- $fp_lastname_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/lastname.txt","w");
- $lastname = strtolower($_POST['lastname']);
- $lastname = ucwords($lastname);
- $lastname = trim($lastname);
- $lastname = htmlentities($lastname,ENT_NOQUOTES);
- fwrite($fp_lastname_txt,$lastname);
- fclose($fp_lastname_txt);
-
- $fp_email_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/email.txt","w");
- $email = strtolower($_POST['email']);
- $email = trim($email);
- $email = htmlentities($email,ENT_NOQUOTES);
- fwrite($fp_email_txt,$email);
- fclose($fp_email_txt);
+ $maj_body_content = ucfirst($_POST['new_comment']);
+ $maj_body_content = htmlentities($maj_body_content,ENT_NOQUOTES);
+ $maj_body_content = str_replace("\n",'<br />',$maj_body_content);
+ $maj_body_content = trim($maj_body_content);
+ $maj_body_content = str_replace(':((','<img src="images/smileys/crying.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':(','<img src="images/smileys/frown.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':|','<img src="images/smileys/indifferent.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':D','<img src="images/smileys/laughing.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':P','<img src="images/smileys/lick.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':O','<img src="images/smileys/ohno.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':)','<img src="images/smileys/smile.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace('=)','<img src="images/smileys/surprised.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(':\\','<img src="images/smileys/undecided.png" border="0">',$maj_body_content);
+ $maj_body_content = str_replace(';)','<img src="images/smileys/wink.png" border="0">',$maj_body_content);
+
+ $maj_fp_body_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/comment.txt","w");
+ fwrite($maj_fp_body_txt,$maj_body_content);
+ fclose($maj_fp_body_txt);
+
+ $maj_fp_timestamp_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/timestamp.txt","w");
+ fwrite($maj_fp_timestamp_txt,$maj_timestamp);
+ fclose($maj_fp_timestamp_txt);
+
+ $maj_fp_firstname_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/firstname.txt","w");
+ $maj_firstname = strtolower($_POST['firstname']);
+ $maj_firstname = ucwords($maj_firstname);
+ $maj_firstname = trim($maj_firstname);
+ $maj_firstname = htmlentities($maj_firstname,ENT_NOQUOTES);
+ fwrite($maj_fp_firstname_txt,$maj_firstname);
+ fclose($maj_fp_firstname_txt);
+
+ $maj_fp_lastname_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/lastname.txt","w");
+ $maj_lastname = strtolower($_POST['lastname']);
+ $maj_lastname = ucwords($maj_lastname);
+ $maj_lastname = trim($maj_lastname);
+ $maj_lastname = htmlentities($maj_lastname,ENT_NOQUOTES);
+ fwrite($maj_fp_lastname_txt,$maj_lastname);
+ fclose($maj_fp_lastname_txt);
+
+ $maj_fp_email_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/email.txt","w");
+ $maj_email = strtolower($_POST['email']);
+ $maj_email = trim($maj_email);
+ $maj_email = htmlentities($maj_email,ENT_NOQUOTES);
+ fwrite($maj_fp_email_txt,$maj_email);
+ fclose($maj_fp_email_txt);
if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.",$_POST['url']))) {
- $fp_url_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/url.txt","w");
- $url = str_replace("http://","",$_POST['url']);
- $url = strtolower($url);
- $url = trim($url);
- $url = "http://" . $url;
- $url = htmlentities($url,ENT_NOQUOTES);
- fwrite($fp_url_txt,$url);
- fclose($fp_url_txt);
+ $maj_fp_url_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/url.txt","w");
+ $maj_url = str_replace("http://","",$_POST['url']);
+ $maj_url = strtolower($maj_url);
+ $maj_url = trim($maj_url);
+ $maj_url = "http://" . $maj_url;
+ $maj_url = htmlentities($maj_url,ENT_NOQUOTES);
+ fwrite($maj_fp_url_txt,$maj_url);
+ fclose($maj_fp_url_txt);
}
if (isset($_POST['cauthor']) and !empty($_POST['cauthor'])) {
- $fp_cauthor_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/author.txt","w");
- fwrite($fp_cauthor_txt,$_POST['cauthor']);
- fclose($fp_cauthor_txt);
+ $maj_fp_cauthor_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/author.txt","w");
+ fwrite($maj_fp_cauthor_txt,$_POST['cauthor']);
+ fclose($maj_fp_cauthor_txt);
}
- $key_rand = str_rand(14);
- $fp_key_txt = fopen("data/items/$req_entry/comments/pending/$comment_entry_dir/key.txt","w");
- fwrite($fp_key_txt,$key_rand);
- fclose($fp_key_txt);
+ $maj_key_rand = str_rand(14);
+ $maj_fp_key_txt = fopen("data/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/key.txt","w");
+ fwrite($maj_fp_key_txt,$maj_key_rand);
+ fclose($maj_fp_key_txt);
- $comment_quote = ucfirst($_POST['new_comment']);
+ $maj_comment_quote = ucfirst($_POST['new_comment']);
- $sig_author_file = "data/author.txt";
- $fp_sig_author = fopen($sig_author_file,"r");
- $sig_author = fread($fp_sig_author,filesize($sig_author_file));
- fclose($fp_sig_author);
+ $maj_sig_author_file = "data/author.txt";
+ $maj_fp_sig_author = fopen($maj_sig_author_file,"r");
+ $maj_sig_author = fread($maj_fp_sig_author,filesize($maj_sig_author_file));
+ fclose($maj_fp_sig_author);
- $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
- $sig_url = str_replace('//','/',$sig_url);
- $sig_url = "http://" . $sig_url;
+ $maj_sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
+ $maj_sig_url = str_replace('//','/',$maj_sig_url);
+ $maj_sig_url = "http://" . $maj_sig_url;
- $email_to = strtolower($_POST['email']);
- $email_to = '"' . "$firstname $lastname" . '" <' . $email_to . '>';
+ $maj_email_to = strtolower($_POST['email']);
+ $maj_email_to = '"' . "$maj_firstname $maj_lastname" . '" <' . $maj_email_to . '>';
if (file_exists("data/email.txt")) {
- $from_email_author = file_get_contents("data/author.txt");
- $from_email = file_get_contents("data/email.txt");
- $from_email = '"' . $from_email_author . '" <' . $from_email . '>';
+ $maj_from_email_author = file_get_contents("data/author.txt");
+ $maj_from_email = file_get_contents("data/email.txt");
+ $maj_from_email = '"' . $maj_from_email_author . '" <' . $maj_from_email . '>';
}
- $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+ $maj_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
- $commented_entry_title_file = "data/items/$req_entry/title.txt";
- $fp_commented_entry_title = fopen($commented_entry_title_file,"r");
- $commented_entry_title = fread($fp_commented_entry_title,filesize($commented_entry_title_file));
- fclose($fp_commented_entry_title);
+ $maj_commented_entry_title_file = "data/items/$maj_req_entry/title.txt";
+ $maj_fp_commented_entry_title = fopen($maj_commented_entry_title_file,"r");
+ $maj_commented_entry_title = fread($maj_fp_commented_entry_title,filesize($maj_commented_entry_title_file));
+ fclose($maj_fp_commented_entry_title);
if (!file_exists("data/nak.txt") and file_exists("data/email.txt")) {
- $comment_thanks = "Hi $firstname,\n\nThanks for submitting the following comment last $timestamp:\n\n\"$comment_quote\"\n\nIt will be e-mailed to me first for approval. Please visit the following URL to see if it has been posted:\n\n{$sig_url}index.php?entry=$req_entry&show=comments\n\nThanks again! =)\n\n--\n$sig_author\n$sig_url\n";
- $comment_thanks = wordwrap($comment_thanks);
+ $maj_comment_thanks = "Hi $maj_firstname,\n\nThanks for submitting the following comment last $maj_timestamp:\n\n\"$maj_comment_quote\"\n\nIt will be e-mailed to me first for approval. Please visit the following URL to see if it has been posted:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&show=comments\n\nThanks again! =)\n\n--\n$maj_sig_author\n$maj_sig_url\n";
+ $maj_comment_thanks = wordwrap($maj_comment_thanks);
- mail($email_to,"Thanks for sharing your thoughts!",$comment_thanks,
- "From: $from_email\r\n" .
- "Reply-To: $from_email\r\n" .
- "X-Mailer: $mailer");
+ mail($maj_email_to,"Thanks for sharing your thoughts!",$maj_comment_thanks,
+ "From: $maj_from_email\r\n" .
+ "Reply-To: $maj_from_email\r\n" .
+ "X-Mailer: $maj_mailer");
}
if (file_exists("data/email.txt") and !file_exists("data/xscreen.txt")) {
- $comment_notice = "The following comment was submitted by $email_to last $timestamp for the entry \"$commented_entry_title\":\n\n\"$comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$sig_url}index.php?entry=$req_entry&comment={$comment_entry_dir}&key={$key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$sig_url}index.php?entry=$req_entry&comment={$comment_entry_dir}&key={$key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
- $comment_notice = wordwrap($comment_notice);
+ $maj_comment_notice = "The following comment was submitted by $maj_email_to last $maj_timestamp for the entry \"$maj_commented_entry_title\":\n\n\"$maj_comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
+ $maj_comment_notice = wordwrap($maj_comment_notice);
- mail($from_email,"Pending Comment",$comment_notice,
- "From: $from_email\r\n" .
- "Reply-To: $from_email\r\n" .
- "X-Mailer: $mailer");
+ mail($maj_from_email,"Pending Comment",$maj_comment_notice,
+ "From: $maj_from_email\r\n" .
+ "Reply-To: $maj_from_email\r\n" .
+ "X-Mailer: $maj_mailer");
}
if (!file_exists("data/comments")) {
@@ -689,60 +689,60 @@ if (isset($req_entry) and !empty($req_entry)) {
mkdir("data/comments/pending");
}
- $pending_comment_flag = $req_entry;
+ $maj_pending_comment_flag = $maj_req_entry;
- if (!file_exists("data/comments/pending/$pending_comment_flag")) {
- mkdir("data/comments/pending/$pending_comment_flag");
+ if (!file_exists("data/comments/pending/$maj_pending_comment_flag")) {
+ mkdir("data/comments/pending/$maj_pending_comment_flag");
}
- if (file_exists("data/comments/pending/$pending_comment_flag/count.txt")) {
- $comment_count_value = file_get_contents("data/comments/pending/$pending_comment_flag/count.txt");
+ if (file_exists("data/comments/pending/$maj_pending_comment_flag/count.txt")) {
+ $maj_comment_count_value = file_get_contents("data/comments/pending/$maj_pending_comment_flag/count.txt");
}
else {
- $comment_count_value = "0";
+ $maj_comment_count_value = "0";
}
- $comment_count_value = $comment_count_value + 1;
+ $maj_comment_count_value = $maj_comment_count_value + 1;
- $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
- fwrite($fp_comment_count_txt,$comment_count_value);
- fclose($fp_comment_count_txt);
+ $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_pending_comment_flag/count.txt","w");
+ fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
+ fclose($maj_fp_comment_count_txt);
}
}
}
else {
- echo "<title>$default_title</title>";
+ echo "<title>$maj_default_title</title>";
}
if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
- if ($dh_xscreen_comments = opendir("data/comments/pending")) {
+ if ($maj_dh_xscreen_comments = opendir("data/comments/pending")) {
- while (($xscreen_comment = readdir($dh_xscreen_comments)) !== false) {
+ while (($maj_xscreen_comment = readdir($maj_dh_xscreen_comments)) !== false) {
- if ($xscreen_comment != "." && $xscreen_comment != "..") {
- $xscreen_comments[] = $xscreen_comment;
+ if ($maj_xscreen_comment != "." && $maj_xscreen_comment != "..") {
+ $maj_xscreen_comments[] = $maj_xscreen_comment;
}
}
- closedir($dh_xscreen_comments);
+ closedir($maj_dh_xscreen_comments);
}
- rsort($xscreen_comments);
- reset($xscreen_comments);
+ rsort($maj_xscreen_comments);
+ reset($maj_xscreen_comments);
- if (count($xscreen_comments) > 0) {
+ if (count($maj_xscreen_comments) > 0) {
- foreach ($xscreen_comments as $xscreen_dir) {
+ foreach ($maj_xscreen_comments as $maj_xscreen_dir) {
- if ($dh_xscreen_pending = opendir("data/items/$xscreen_dir/comments/pending")) {
+ if ($maj_dh_xscreen_pending = opendir("data/items/$maj_xscreen_dir/comments/pending")) {
- while (($xscreen_entry = readdir($dh_xscreen_pending)) !== false) {
+ while (($maj_xscreen_entry = readdir($maj_dh_xscreen_pending)) !== false) {
- if ($xscreen_entry != "." && $xscreen_entry != "..") {
+ if ($maj_xscreen_entry != "." && $maj_xscreen_entry != "..") {
- $xscreen_key = file_get_contents("data/items/$xscreen_dir/comments/pending/$xscreen_entry/key.txt");
+ $maj_xscreen_key = file_get_contents("data/items/$maj_xscreen_dir/comments/pending/$maj_xscreen_entry/key.txt");
- header("Location: index.php?entry={$xscreen_dir}&comment={$xscreen_entry}&key={$xscreen_key}&action=approve");
+ header("Location: index.php?entry={$maj_xscreen_dir}&comment={$maj_xscreen_entry}&key={$maj_xscreen_key}&action=approve");
}
}
}
@@ -751,101 +751,145 @@ if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
}
}
-if (isset($req_entry) and !empty($req_entry) and file_exists("data/items/$req_entry")) {
+if (isset($maj_req_entry) and !empty($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$req_entry/categories")) {
+ if (file_exists("data/items/$maj_req_entry/categories")) {
- if ($dh_entry_categories = opendir("data/items/$req_entry/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_req_entry/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
- if (file_exists("data/categories/$entry_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if ($private_categories == "0") {
+ if ($maj_private_categories == "0") {
- if (!file_exists("data/items/$req_entry/passwd.txt")) {
+ if (!file_exists("data/items/$maj_req_entry/passwd.txt")) {
- if (!file_exists("data/items/$req_entry/private.txt")) {
+ if (!file_exists("data/items/$maj_req_entry/private.txt")) {
- $description = file_get_contents("data/items/$req_entry/body.txt");
- $description = strip_tags($description);
- $description = html_entity_decode($description);
- $description = str_replace("&","&",$description);
- $description = str_replace("<","<",$description);
- $description = str_replace(">",">",$description);
- $description = str_replace("<br />"," ",$description);
- $description = str_replace("<br>"," ",$description);
- $description = str_replace("\r"," ",$description);
- $description = str_replace("\n"," ",$description);
- $description = str_replace(chr(10)," ",$description);
- $description = str_replace(chr(13)," ",$description);
- $description = trim($description);
- $description = substr($description,0,210);
- $description = htmlentities($description,ENT_NOQUOTES);
+ $maj_description = file_get_contents("data/items/$maj_req_entry/body.txt");
+ $maj_description = strip_tags($maj_description);
+ $maj_description = html_entity_decode($maj_description);
+ $maj_description = str_replace("&","&",$maj_description);
+ $maj_description = str_replace("<","<",$maj_description);
+ $maj_description = str_replace(">",">",$maj_description);
+ $maj_description = str_replace("<br />"," ",$maj_description);
+ $maj_description = str_replace("<br>"," ",$maj_description);
+ $maj_description = str_replace("\r"," ",$maj_description);
+ $maj_description = str_replace("\n"," ",$maj_description);
+ $maj_description = str_replace(chr(10)," ",$maj_description);
+ $maj_description = str_replace(chr(13)," ",$maj_description);
+ $maj_description = trim($maj_description);
+ $maj_description = substr($maj_description,0,210);
+ $maj_description = htmlentities($maj_description,ENT_NOQUOTES);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $description = preg_replace("/\b($badwords)\b/i",$censor,$description);
+ $maj_description = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_description);
}
- echo "<meta name=\"description\" content=\"{$description}\">";
+ echo "<meta name=\"description\" content=\"{$maj_description}\">";
}
}
}
}
+if (file_exists("data/fonts/body-size.txt")) {
+ $maj_body_px = file_get_contents("data/fonts/body-size.txt") . "px";
+}
+else {
+ $maj_body_px = "11px";
+}
+
+if (file_exists("data/fonts/input-size.txt")) {
+ $maj_input_px = file_get_contents("data/fonts/input-size.txt") . "px";
+}
+else {
+ $maj_input_px = "11px";
+}
+
+if (file_exists("data/fonts/panel-title-size.txt")) {
+ $maj_font_12px = file_get_contents("data/fonts/panel-title-size.txt") . "px";
+}
+else {
+ $maj_font_12px = "12px";
+}
+
+if (file_exists("data/fonts/panel-body-size.txt")) {
+ $maj_font_11px = file_get_contents("data/fonts/panel-body-size.txt") . "px";
+}
+else {
+ $maj_font_11px = "11px";
+}
+
+if (file_exists("data/fonts/panel-footer-size.txt")) {
+ $maj_font_10px = file_get_contents("data/fonts/panel-footer-size.txt") . "px";
+}
+else {
+ $maj_font_10px = "10px";
+}
+
?>
<style>
+html {
+ font-size: <?php echo $maj_font_11px; ?>;
+}
+
body {
+ margin: 0px 0px 10px 10px;
+ padding: 0px;
+ text-align: left;
+
+ font-size: <?php echo $maj_body_px; ?>;
+
color: <?php
if (file_exists("data/colors/font.txt")) {
- $font_color = file_get_contents("data/colors/font.txt");
- echo $font_color;
+ $maj_font_color = file_get_contents("data/colors/font.txt");
+ echo $maj_font_color;
}
else {
echo "#666666";
}
?>;
- margin: 0px 0px 10px 10px;
- padding: 0px;
- text-align: left;
+
font-family: <?php
if (file_exists("data/fonts/body.txt")) {
- $font_body = file_get_contents("data/fonts/body.txt");
- echo "{$font_body},";
+ $maj_font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$maj_font_body},";
}
?> arial,helvetica,sans-serif;
+
background-color: <?php
if (file_exists("data/colors/bg.txt")) {
- $background_color = file_get_contents("data/colors/bg.txt");
- if ($background_color == "transparent") {
+ $maj_background_color = file_get_contents("data/colors/bg.txt");
+ if ($maj_background_color == "transparent") {
echo "#ffffff";
}
else {
- echo $background_color;
+ echo $maj_background_color;
}
}
else {
@@ -879,7 +923,7 @@ body {
}
p,td {
- font-size: 11px;
+ font-size: <?php echo $maj_font_11px; ?>;
}
a {
@@ -890,8 +934,8 @@ a {
a:link {
color: <?php
if (file_exists("data/colors/link.txt")) {
- $a_link_color = file_get_contents("data/colors/link.txt");
- echo $a_link_color;
+ $maj_a_link_color = file_get_contents("data/colors/link.txt");
+ echo $maj_a_link_color;
}
else {
echo "#666666";
@@ -902,8 +946,8 @@ a:link {
a:visited {
color: <?php
if (file_exists("data/colors/vlink.txt")) {
- $a_visited_color = file_get_contents("data/colors/vlink.txt");
- echo $a_visited_color;
+ $maj_a_visited_color = file_get_contents("data/colors/vlink.txt");
+ echo $maj_a_visited_color;
}
else {
echo "#666666";
@@ -914,8 +958,8 @@ a:visited {
a:hover {
color: <?php
if (file_exists("data/colors/hover.txt")) {
- $a_hover_color = file_get_contents("data/colors/hover.txt");
- echo $a_hover_color;
+ $maj_a_hover_color = file_get_contents("data/colors/hover.txt");
+ echo $maj_a_hover_color;
}
else {
echo "#336699";
@@ -926,8 +970,8 @@ a:hover {
a:active {
color: <?php
if (file_exists("data/colors/hover.txt")) {
- $a_active_color = file_get_contents("data/colors/hover.txt");
- echo $a_active_color;
+ $maj_a_active_color = file_get_contents("data/colors/hover.txt");
+ echo $maj_a_active_color;
}
else {
echo "#336699";
@@ -940,60 +984,67 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
text-decoration: none;
}
-#panel_title {
+.panel_title {
+ padding: 5px 5px 5px 5px;
+ margin: 0px 0px 0px 0px;
+ border-width: 1px 1px 0px 1px;
+ border-style: solid solid none solid;
+ font-weight: bold;
+
+ font-size: <?php echo $maj_font_12px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
- $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "{$font_panel_title},";
+ $maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$maj_font_panel_title},";
}
?> arial,helvetica,sans-serif;
- font-size: 12px;
- font-weight: bold;
+
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
+ $maj_panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $maj_panel_title_font_color;
}
else {
echo "#666666";
}
?>;
- padding: 5px 5px 5px 5px;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
}
?>;
- border-width: 1px 1px 0px 1px;
- border-style: solid solid none solid;
}
-#panel_body {
+.panel_body {
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
- $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "{$font_panel_body},";
+ $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$maj_font_panel_body},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
+
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
+ $maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $maj_panel_body_font_color;
}
else {
echo "#666666";
@@ -1008,10 +1059,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
+ $maj_panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_body_background_color;
}
else {
echo "transparent";
@@ -1029,13 +1081,14 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
+ $maj_panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_body_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1048,23 +1101,30 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
?>
}
-#panel_footer {
+.panel_footer {
+ text-align: right;
+
+ font-size: <?php echo $maj_font_10px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-footer.txt")) {
- $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
- echo "{$font_panel_footer},";
+ $maj_font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$maj_font_panel_footer},";
}
?> arial,helvetica,sans-serif;
- font-size: 10px;
+
+
+
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
- $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_footer_font_color;
+ $maj_panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $maj_panel_footer_font_color;
}
else {
echo "#999999";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -1073,10 +1133,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_footer_background_color;
+ $maj_panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_footer_background_color;
}
else {
echo "transparent";
@@ -1094,13 +1155,14 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
+ $maj_panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_footer_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1111,37 +1173,40 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'border-style: none solid solid solid;';
}
?>
- text-align: right;
}
.input {
+ width: 300px;
+ background: #ffffff;
+
+ font-size: <?php echo $maj_input_px; ?>;
+
color: <?php
if (file_exists("data/colors/border.txt")) {
- $input_color = file_get_contents("data/colors/border.txt");
- echo $input_color;
+ $maj_input_color = file_get_contents("data/colors/border.txt");
+ echo $maj_input_color;
}
else {
echo "#666666";
}
?>;
- background: #ffffff;
+
border: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
+ $maj_panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_footer_border_color;
}
else {
echo "#999999";
}
?> solid 1px;
- width: 300px;
+
font-family: <?php
if (file_exists("data/fonts/input.txt")) {
- $font_input = file_get_contents("data/fonts/input.txt");
- echo "{$font_input},";
+ $maj_font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$maj_font_input},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
}
.search {
@@ -1149,16 +1214,17 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
background: #ffffff;
width: 100%;
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/input.txt")) {
- $font_input = file_get_contents("data/fonts/input.txt");
- echo "{$font_input},";
+ $maj_font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$maj_font_input},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
}
-#panel_free {
+.panel_free {
padding: 0px 0px 0px 0px;
margin: 0px 0px 10px 0px;
}
@@ -1187,21 +1253,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2t,.rb3t,.rb4t {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1210,21 +1278,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2b,.rb3b,.rb4b {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1233,21 +1303,23 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
.rb2e,.rb3e,.rb4e {
+ border-left: 1px solid;
+ border-right: 1px solid;
+
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
- border-left: 1px solid;
- border-right: 1px solid;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1257,10 +1329,11 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
.rb1t,.rb1b,.rb1e {
margin: 0 5px;
+
background: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1288,34 +1361,40 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
border-width:0 1px;
padding: 1px 5px 5px 5px;
font-weight: bold;
+
+ font-size: <?php echo $maj_font_12px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
- $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "{$font_panel_title},";
+ $maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$maj_font_panel_title},";
}
?> arial,helvetica,sans-serif;
+
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
+ $maj_panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $maj_panel_title_font_color;
}
else {
echo "#666666";
}
?>;
+
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
+ $maj_panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $maj_panel_title_background_color;
}
else {
echo "transparent";
}
?>;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
+ $maj_panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_title_border_color;
}
else {
echo "#cccccc";
@@ -1327,23 +1406,28 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
height: 3px;
}
-#panel_entry_body {
+.panel_entry_body {
+ margin: 0px 0px 0px 0px;
+
+ font-size: <?php echo $maj_font_11px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
- $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "{$font_panel_body},";
+ $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$maj_font_panel_body},";
}
?> arial,helvetica,sans-serif;
- font-size: 11px;
+
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
+ $maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $maj_panel_body_font_color;
}
else {
echo "#666666";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -1352,25 +1436,27 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'padding: 5px 5px 5px 5px;';
}
?>
+
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
+ $maj_panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $maj_panel_body_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
+
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
+ $maj_panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_body_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1383,47 +1469,50 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
?>
}
-#panel_category {
+.panel_category {
+ padding: 5px 5px 5px 5px;
+ margin: 0px 0px 0px 0px;
+ text-align: left;
+
+ font-size: <?php echo $maj_font_10px; ?>;
+
font-family: <?php
if (file_exists("data/fonts/panel-footer.txt")) {
- $font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
- echo "{$font_panel_category},";
+ $maj_font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$maj_font_panel_category},";
}
?> arial,helvetica,sans-serif;
- font-size: 10px;
+
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
- $panel_category_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_category_font_color;
+ $maj_panel_category_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $maj_panel_category_font_color;
}
else {
echo "#999999";
}
?>;
- padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
- $panel_category_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_category_background_color;
+ $maj_panel_category_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $maj_panel_category_background_color;
}
else {
echo "transparent";
}
?>;
- margin: 0px 0px 0px 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
- $panel_category_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_category_border_color;
+ $maj_panel_category_border_color = file_get_contents("data/colors/border.txt");
+ echo $maj_panel_category_border_color;
}
else {
echo "#cccccc";
}
?>;
+
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -1434,7 +1523,6 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
echo 'border-style: none solid solid solid;';
}
?>
- text-align: left;
}
<?php if (file_exists("data/css.txt")) { readfile("data/css.txt"); } ?>
@@ -1453,78 +1541,78 @@ if (file_exists("data/center.txt")) {
if (file_exists("data/header.txt")) {
- $header_panel = file_get_contents("data/header.txt");
+ $maj_header_panel = file_get_contents("data/header.txt");
- if (file_exists("data/panels/$header_panel") and (!file_exists("data/panels/$header_panel/private.txt") or isset($_SESSION['logged_in']))) {
- include("data/panels/$header_panel/panel.php");
+ if (file_exists("data/panels/$maj_header_panel") and (!file_exists("data/panels/$maj_header_panel/private.txt") or isset($_SESSION['logged_in']))) {
+ include("data/panels/$maj_header_panel/panel.php");
}
}
-echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$wtable\">";
-echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
-echo "<tr><td width=\"$wside\" valign=\"top\">";
+echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">";
+echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+echo "<tr><td width=\"$maj_wside\" valign=\"top\">";
if (file_exists("data/round.txt")) {
echo "<b class=\"rbtop\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
}
else {
- echo "<div id=\"panel_title\">";
+ echo "<div class=\"panel_title\">";
}
?>
Profile</div>
-<div id="panel_body">
+<div class="panel_body">
<?php
if (file_exists("images/profile.gif")) {
- $profile_gif_image_size = getimagesize("images/profile.gif");
- $profile_gif_image_width = $profile_gif_image_size[0];
- $profile_gif_image_height = $profile_gif_image_size[1];
+ $maj_profile_gif_image_size = getimagesize("images/profile.gif");
+ $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
+ $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
- $max_profile_gif_image_width = 163;
+ $maj_max_profile_gif_image_width = 163;
- if ($profile_gif_image_width > $max_profile_gif_image_width) {
- $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
- $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
- $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
+ if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
+ $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
+ $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$profile_gif_image_width\" height=\"$profile_gif_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\">";
}
if (file_exists("images/profile.jpg")) {
- $profile_jpg_image_size = getimagesize("images/profile.jpg");
- $profile_jpg_image_width = $profile_jpg_image_size[0];
- $profile_jpg_image_height = $profile_jpg_image_size[1];
+ $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
+ $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
+ $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
- $max_profile_jpg_image_width = 163;
+ $maj_max_profile_jpg_image_width = 163;
- if ($profile_jpg_image_width > $max_profile_jpg_image_width) {
- $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
- $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
- $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
+ if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
+ $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
+ $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$profile_jpg_image_width\" height=\"$profile_jpg_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\">";
}
if (file_exists("images/profile.png")) {
- $profile_png_image_size = getimagesize("images/profile.png");
- $profile_png_image_width = $profile_png_image_size[0];
- $profile_png_image_height = $profile_png_image_size[1];
+ $maj_profile_png_image_size = getimagesize("images/profile.png");
+ $maj_profile_png_image_width = $maj_profile_png_image_size[0];
+ $maj_profile_png_image_height = $maj_profile_png_image_size[1];
- $max_profile_png_image_width = 163;
+ $maj_max_profile_png_image_width = 163;
- if ($profile_png_image_width > $max_profile_png_image_width) {
- $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
- $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
- $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
+ if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
+ $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
+ $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/profile.png\" border=\"0\" width=\"$profile_png_image_width\" height=\"$profile_png_image_height\" align=\"left\">";
+ echo "<img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\">";
}
include("data/profile.php");
@@ -1543,22 +1631,22 @@ if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
?>
Navigation</div>
-<div id="panel_body">
+<div class="panel_body">
<a class="navlink" href="index.php">Home</a><br>
<?php
if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a class="navlink" href="member.php?id=all">Members</a><br>';
+ echo '<a class="navlink" href="member.php?class=all">Members</a><br>';
}
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
echo '<a class="navlink" href="add.php">Add Entry</a><br>';
echo '<a class="navlink" href="settings.php">Settings</a><br>';
echo '<a class="navlink" href="panels.php">Panels</a><br>';
@@ -1567,16 +1655,16 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<a class="navlink" href="fonts.php">Fonts</a><br>';
echo '<a class="navlink" href="login.php">Logout</a>';
}
-elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
+elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
- if (!file_exists("data/categories/$req_category")) {
- rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$req_category");
+ if (!file_exists("data/categories/$maj_req_category")) {
+ rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
}
}
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
echo '<a class="navlink" href="add.php">Add Entry</a><br>';
}
@@ -1603,68 +1691,68 @@ if (file_exists("data/round.txt")) {
if (file_exists("data/sticky")) {
- if ($dh_sticky = opendir("data/sticky")) {
+ if ($maj_dh_sticky = opendir("data/sticky")) {
- while (($sticky_entry = readdir($dh_sticky)) !== false) {
+ while (($maj_sticky_entry = readdir($maj_dh_sticky)) !== false) {
- if (file_exists("data/items/$sticky_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/items/$maj_sticky_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- if (file_exists("data/items/$sticky_entry/member.txt") and (!isset($_SESSION['logged_in']))) {
+ if (file_exists("data/items/$maj_sticky_entry/member.txt") and (!isset($_SESSION['logged_in']))) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$sticky_entry/categories")) {
+ if (file_exists("data/items/$maj_sticky_entry/categories")) {
- if ($dh_sticky_categories = opendir("data/items/$sticky_entry/categories")) {
+ if ($maj_dh_sticky_categories = opendir("data/items/$maj_sticky_entry/categories")) {
- while (($sticky_category = readdir($dh_sticky_categories)) !== false) {
+ while (($maj_sticky_category = readdir($maj_dh_sticky_categories)) !== false) {
- if ($sticky_category != "." && $sticky_category != "..") {
+ if ($maj_sticky_category != "." && $maj_sticky_category != "..") {
- if (file_exists("data/categories/$sticky_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_sticky_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_sticky_categories);
+ closedir($maj_dh_sticky_categories);
}
}
- if (($private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$sticky_entry/cat.txt")) {
+ if (($maj_private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and !file_exists("data/items/$maj_sticky_entry/cat.txt")) {
continue;
}
- if ($sticky_entry != "." && $sticky_entry != "..") {
- $sticky_entries[] = $sticky_entry;
+ if ($maj_sticky_entry != "." && $maj_sticky_entry != "..") {
+ $maj_sticky_entries[] = $maj_sticky_entry;
}
}
- closedir($dh_sticky);
+ closedir($maj_dh_sticky);
}
- sort($sticky_entries);
- reset($sticky_entries);
+ sort($maj_sticky_entries);
+ reset($maj_sticky_entries);
- $count_sticky_list = count($sticky_entries);
+ $maj_count_sticky_list = count($maj_sticky_entries);
- if ($count_sticky_list > 0) {
+ if ($maj_count_sticky_list > 0) {
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
echo 'Quick Links</div>';
- echo '<div id="panel_body">';
+ echo '<div class="panel_body">';
- foreach ($sticky_entries as $sticky_list_entry) {
- echo "<a class=\"navlink\" href=\"index.php?entry=$sticky_list_entry\">";
- readfile("data/items/$sticky_list_entry/title.txt");
+ foreach ($maj_sticky_entries as $maj_sticky_list_entry) {
+ echo "<a class=\"navlink\" href=\"index.php?entry=$maj_sticky_list_entry\">";
+ readfile("data/items/$maj_sticky_list_entry/title.txt");
echo "</a><br>";
}
@@ -1678,123 +1766,123 @@ if (file_exists("data/sticky")) {
if (file_exists("data/panels")) {
- if ($dh_panels = opendir("data/panels")) {
+ if ($maj_dh_panels = opendir("data/panels")) {
- while (($panel = readdir($dh_panels)) !== false) {
+ while (($maj_panel = readdir($maj_dh_panels)) !== false) {
- if ($panel != "." && $panel != "..") {
+ if ($maj_panel != "." && $maj_panel != "..") {
- if (file_exists("data/panels/$panel/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/panels/$maj_panel/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- if (file_exists("data/panels/$panel/top.txt")) {
- $top_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/top.txt")) {
+ $maj_top_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/center.txt")) {
- $center_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/center.txt")) {
+ $maj_center_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/entry.txt")) {
- $entry_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/entry.txt")) {
+ $maj_entry_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/panels/$panel/right.txt")) {
- $right_panels[] = $panel;
+ if (file_exists("data/panels/$maj_panel/right.txt")) {
+ $maj_right_panels[] = $maj_panel;
continue;
}
- if (file_exists("data/header.txt") and (file_get_contents("data/header.txt") == $panel)) {
+ if (file_exists("data/header.txt") and (file_get_contents("data/header.txt") == $maj_panel)) {
continue;
}
- if (file_exists("data/footer.txt") and (file_get_contents("data/footer.txt") == $panel)) {
+ if (file_exists("data/footer.txt") and (file_get_contents("data/footer.txt") == $maj_panel)) {
continue;
}
- $left_panels[] = $panel;
+ $maj_left_panels[] = $maj_panel;
}
}
- closedir($dh_panels);
+ closedir($maj_dh_panels);
}
- sort($left_panels);
- reset($left_panels);
+ sort($maj_left_panels);
+ reset($maj_left_panels);
- $count_left_panels = count($left_panels);
+ $maj_count_left_panels = count($maj_left_panels);
- sort($top_panels);
- reset($top_panels);
+ sort($maj_top_panels);
+ reset($maj_top_panels);
- $count_top_panels = count($top_panels);
+ $maj_count_top_panels = count($maj_top_panels);
- sort($center_panels);
- reset($center_panels);
+ sort($maj_center_panels);
+ reset($maj_center_panels);
- $count_center_panels = count($center_panels);
+ $maj_count_center_panels = count($maj_center_panels);
- sort($entry_panels);
- reset($entry_panels);
+ sort($maj_entry_panels);
+ reset($maj_entry_panels);
- $count_entry_panels = count($entry_panels);
+ $maj_count_entry_panels = count($maj_entry_panels);
- sort($right_panels);
- reset($right_panels);
+ sort($maj_right_panels);
+ reset($maj_right_panels);
- $count_right_panels = count($right_panels);
+ $maj_count_right_panels = count($maj_right_panels);
- if ($count_left_panels > 0) {
+ if ($maj_count_left_panels > 0) {
- foreach ($left_panels as $left_panel) {
+ foreach ($maj_left_panels as $maj_left_panel) {
- if (!file_exists("data/panels/$left_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_left_panel/free.txt")) {
- if (file_exists("data/panels/$left_panel/border.txt")) {
- $left_panel_border = file_get_contents("data/panels/$left_panel/border.txt");
+ if (file_exists("data/panels/$maj_left_panel/border.txt")) {
+ $maj_left_panel_border = file_get_contents("data/panels/$maj_left_panel/border.txt");
}
else {
- if (isset($left_panel_border)) {
- unset($left_panel_border);
+ if (isset($maj_left_panel_border)) {
+ unset($maj_left_panel_border);
}
}
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
- $left_panel_bgcolor_t = file_get_contents("data/panels/$left_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_left_panel/bgcolor-t.txt")) {
+ $maj_left_panel_bgcolor_t = file_get_contents("data/panels/$maj_left_panel/bgcolor-t.txt");
}
else {
- if (isset($left_panel_bgcolor_t)) {
- unset($left_panel_bgcolor_t);
+ if (isset($maj_left_panel_bgcolor_t)) {
+ unset($maj_left_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
- $left_panel_bgcolor_c = file_get_contents("data/panels/$left_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_left_panel/bgcolor-c.txt")) {
+ $maj_left_panel_bgcolor_c = file_get_contents("data/panels/$maj_left_panel/bgcolor-c.txt");
}
else {
- if (isset($left_panel_bgcolor_c)) {
- unset($left_panel_bgcolor_c);
+ if (isset($maj_left_panel_bgcolor_c)) {
+ unset($maj_left_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
- $left_panel_text_t = file_get_contents("data/panels/$left_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_left_panel/text-t.txt")) {
+ $maj_left_panel_text_t = file_get_contents("data/panels/$maj_left_panel/text-t.txt");
}
else {
- if (isset($left_panel_text_t)) {
- unset($left_panel_text_t);
+ if (isset($maj_left_panel_text_t)) {
+ unset($maj_left_panel_text_t);
}
}
- if (file_exists("data/panels/$left_panel/text-c.txt")) {
- $left_panel_text_c = file_get_contents("data/panels/$left_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_left_panel/text-c.txt")) {
+ $maj_left_panel_text_c = file_get_contents("data/panels/$maj_left_panel/text-c.txt");
}
else {
- if (isset($left_panel_text_c)) {
- unset($left_panel_text_c);
+ if (isset($maj_left_panel_text_c)) {
+ unset($maj_left_panel_text_c);
}
}
@@ -1802,220 +1890,220 @@ if (file_exists("data/panels")) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($left_panel_border)) {
- echo " style=\"background-color: $left_panel_border;\"";
+ if (isset($maj_left_panel_border)) {
+ echo " style=\"background-color: $maj_left_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_text_t)) {
- echo "color: $left_panel_text_t;";
+ if (isset($maj_left_panel_text_t)) {
+ echo "color: $maj_left_panel_text_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_t)) {
- echo "background-color: $left_panel_bgcolor_t;";
+ if (isset($maj_left_panel_bgcolor_t)) {
+ echo "background-color: $maj_left_panel_bgcolor_t;";
}
- if (isset($left_panel_text_t)) {
- echo "color: $left_panel_text_t;";
+ if (isset($maj_left_panel_text_t)) {
+ echo "color: $maj_left_panel_text_t;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$left_panel/title.txt");
+ readfile("data/panels/$maj_left_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$left_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_left_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$left_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_left_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_text_c)) {
- echo "color: $left_panel_text_c;";
+ if (isset($maj_left_panel_text_c)) {
+ echo "color: $maj_left_panel_text_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$left_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_left_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$left_panel/panel.php");
+ include("data/panels/$maj_left_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_left_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($left_panel_bgcolor_c)) {
- echo "background-color: $left_panel_bgcolor_c;";
+ if (isset($maj_left_panel_bgcolor_c)) {
+ echo "background-color: $maj_left_panel_bgcolor_c;";
}
- if (isset($left_panel_border)) {
- echo "border-color: $left_panel_border;";
+ if (isset($maj_left_panel_border)) {
+ echo "border-color: $maj_left_panel_border;";
}
- if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($left_panel_border)) {
- echo " style=\"background-color: $left_panel_border;\"";
+ if (isset($maj_left_panel_border)) {
+ echo " style=\"background-color: $maj_left_panel_border;\"";
}
echo '></b></b>';
@@ -2024,60 +2112,60 @@ if (file_exists("data/panels")) {
}
}
-echo "</td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td>";
+echo "</td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td>";
// main
-echo "<td valign=\"top\" width=\"$wmain\">";
+echo "<td valign=\"top\" width=\"$maj_wmain\">";
-if ($count_top_panels > 0) {
+if ($maj_count_top_panels > 0) {
- foreach ($top_panels as $top_panel) {
+ foreach ($maj_top_panels as $maj_top_panel) {
- if (!file_exists("data/panels/$top_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_top_panel/free.txt")) {
- if (file_exists("data/panels/$top_panel/border.txt")) {
- $top_panel_border = file_get_contents("data/panels/$top_panel/border.txt");
+ if (file_exists("data/panels/$maj_top_panel/border.txt")) {
+ $maj_top_panel_border = file_get_contents("data/panels/$maj_top_panel/border.txt");
}
else {
- if (isset($top_panel_border)) {
- unset($top_panel_border);
+ if (isset($maj_top_panel_border)) {
+ unset($maj_top_panel_border);
}
}
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
- $top_panel_bgcolor_t = file_get_contents("data/panels/$top_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_top_panel/bgcolor-t.txt")) {
+ $maj_top_panel_bgcolor_t = file_get_contents("data/panels/$maj_top_panel/bgcolor-t.txt");
}
else {
- if (isset($top_panel_bgcolor_t)) {
- unset($top_panel_bgcolor_t);
+ if (isset($maj_top_panel_bgcolor_t)) {
+ unset($maj_top_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
- $top_panel_bgcolor_c = file_get_contents("data/panels/$top_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_top_panel/bgcolor-c.txt")) {
+ $maj_top_panel_bgcolor_c = file_get_contents("data/panels/$maj_top_panel/bgcolor-c.txt");
}
else {
- if (isset($top_panel_bgcolor_c)) {
- unset($top_panel_bgcolor_c);
+ if (isset($maj_top_panel_bgcolor_c)) {
+ unset($maj_top_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
- $top_panel_text_t = file_get_contents("data/panels/$top_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_top_panel/text-t.txt")) {
+ $maj_top_panel_text_t = file_get_contents("data/panels/$maj_top_panel/text-t.txt");
}
else {
- if (isset($top_panel_text_t)) {
- unset($top_panel_text_t);
+ if (isset($maj_top_panel_text_t)) {
+ unset($maj_top_panel_text_t);
}
}
- if (file_exists("data/panels/$top_panel/text-c.txt")) {
- $top_panel_text_c = file_get_contents("data/panels/$top_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_top_panel/text-c.txt")) {
+ $maj_top_panel_text_c = file_get_contents("data/panels/$maj_top_panel/text-c.txt");
}
else {
- if (isset($top_panel_text_c)) {
- unset($top_panel_text_c);
+ if (isset($maj_top_panel_text_c)) {
+ unset($maj_top_panel_text_c);
}
}
@@ -2085,220 +2173,220 @@ if ($count_top_panels > 0) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($top_panel_border)) {
- echo " style=\"background-color: $top_panel_border;\"";
+ if (isset($maj_top_panel_border)) {
+ echo " style=\"background-color: $maj_top_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_text_t)) {
- echo "color: $top_panel_text_t;";
+ if (isset($maj_top_panel_text_t)) {
+ echo "color: $maj_top_panel_text_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_t)) {
- echo "background-color: $top_panel_bgcolor_t;";
+ if (isset($maj_top_panel_bgcolor_t)) {
+ echo "background-color: $maj_top_panel_bgcolor_t;";
}
- if (isset($top_panel_text_t)) {
- echo "color: $top_panel_text_t;";
+ if (isset($maj_top_panel_text_t)) {
+ echo "color: $maj_top_panel_text_t;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$top_panel/title.txt");
+ readfile("data/panels/$maj_top_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$top_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_top_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$top_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_top_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c) or isset($maj_top_panel_text_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_text_c)) {
- echo "color: $top_panel_text_c;";
+ if (isset($maj_top_panel_text_c)) {
+ echo "color: $maj_top_panel_text_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c) or isset($maj_top_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$top_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_top_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$top_panel/panel.php");
+ include("data/panels/$maj_top_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_top_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($top_panel_bgcolor_c)) {
- echo "background-color: $top_panel_bgcolor_c;";
+ if (isset($maj_top_panel_bgcolor_c)) {
+ echo "background-color: $maj_top_panel_bgcolor_c;";
}
- if (isset($top_panel_border)) {
- echo "border-color: $top_panel_border;";
+ if (isset($maj_top_panel_border)) {
+ echo "border-color: $maj_top_panel_border;";
}
- if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($top_panel_border)) {
- echo " style=\"background-color: $top_panel_border;\"";
+ if (isset($maj_top_panel_border)) {
+ echo " style=\"background-color: $maj_top_panel_border;\"";
}
echo '></b></b>';
@@ -2316,331 +2404,331 @@ if (file_exists("data/albums")) {
// global entry items (start)
-if ($dh_items = opendir("data/items")) {
+if ($maj_dh_items = opendir("data/items")) {
- while (($item = readdir($dh_items)) !== false) {
+ while (($maj_item = readdir($maj_dh_items)) !== false) {
- if ($item != "." && $item != "..") {
+ if ($maj_item != "." && $maj_item != "..") {
- if (file_exists("data/items/$item/comments/live") and (count(glob("data/items/$item/comments/live/*")) < 1)) {
- rmdirr("data/items/$item/comments/live");
+ if (file_exists("data/items/$maj_item/comments/live") and (count(glob("data/items/$maj_item/comments/live/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments/live");
}
- if (file_exists("data/items/$item/comments/pending") and (count(glob("data/items/$item/comments/pending/*")) < 1)) {
- rmdirr("data/items/$item/comments/pending");
+ if (file_exists("data/items/$maj_item/comments/pending") and (count(glob("data/items/$maj_item/comments/pending/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments/pending");
}
- if (file_exists("data/items/$item/comments") and (count(glob("data/items/$item/comments/*")) < 1)) {
- rmdirr("data/items/$item/comments");
+ if (file_exists("data/items/$maj_item/comments") and (count(glob("data/items/$maj_item/comments/*")) < 1)) {
+ rmdirr("data/items/$maj_item/comments");
}
- if (file_exists("data/items/$item/filedrop/files") and (count(glob("data/items/$item/filedrop/files/*")) < 1)) {
- rmdirr("data/items/$item/filedrop/files");
+ if (file_exists("data/items/$maj_item/filedrop/files") and (count(glob("data/items/$maj_item/filedrop/files/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop/files");
}
- if (file_exists("data/items/$item/filedrop/count") and (count(glob("data/items/$item/filedrop/count/*")) < 1)) {
- rmdirr("data/items/$item/filedrop/count");
+ if (file_exists("data/items/$maj_item/filedrop/count") and (count(glob("data/items/$maj_item/filedrop/count/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop/count");
}
- if (file_exists("data/items/$item/filedrop") and (count(glob("data/items/$item/filedrop/*")) < 1)) {
- rmdirr("data/items/$item/filedrop");
+ if (file_exists("data/items/$maj_item/filedrop") and (count(glob("data/items/$maj_item/filedrop/*")) < 1)) {
+ rmdirr("data/items/$maj_item/filedrop");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album/captions") and (count(glob("data/items/$item/album/captions/*")) < 1)) {
- rmdirr("data/items/$item/album/captions");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album/captions") and (count(glob("data/items/$maj_item/album/captions/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album/captions");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album/count") and (count(glob("data/items/$item/album/count/*")) < 1)) {
- rmdirr("data/items/$item/album/count");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album/count") and (count(glob("data/items/$maj_item/album/count/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album/count");
}
- if ((!file_exists("images/$item/album") or (count(glob("images/$item/album/*")) < 1)) and file_exists("data/items/$item/album") and (count(glob("data/items/$item/album/*")) < 1)) {
- rmdirr("data/items/$item/album");
+ if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("data/items/$maj_item/album") and (count(glob("data/items/$maj_item/album/*")) < 1)) {
+ rmdirr("data/items/$maj_item/album");
}
- if (file_exists("images/$item/album") and (count(glob("images/$item/album/*")) < 1)) {
- rmdirr("images/$item/album");
+ if (file_exists("images/$maj_item/album") and (count(glob("images/$maj_item/album/*")) < 1)) {
+ rmdirr("images/$maj_item/album");
}
- if (file_exists("images/$item") and (count(glob("images/$item/*")) < 1)) {
- rmdirr("images/$item");
+ if (file_exists("images/$maj_item") and (count(glob("images/$maj_item/*")) < 1)) {
+ rmdirr("images/$maj_item");
}
- if (file_exists("images/$item/categories") and (count(glob("images/$item/categories/*")) < 1)) {
- rmdirr("images/$item/categories");
+ if (file_exists("images/$maj_item/categories") and (count(glob("images/$maj_item/categories/*")) < 1)) {
+ rmdirr("images/$maj_item/categories");
}
- $grand[] = $item;
+ $maj_grand[] = $maj_item;
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- if (isset($req_entry) or isset($req_category) or isset($req_archive) or isset($req_find) or isset($req_author)) {
+ if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
- if (isset($req_entry) and file_exists("data/items/$req_entry")) {
- $items[] = $req_entry;
+ if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
+ $maj_items[] = $maj_req_entry;
}
- if (isset($req_category) and file_exists("data/categories/$req_category") and file_exists("data/items/$item/categories/$req_category")) {
- $items[] = $item;
+ if (isset($maj_req_category) and file_exists("data/categories/$maj_req_category") and file_exists("data/items/$maj_item/categories/$maj_req_category")) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_archive) and fnmatch("$req_archive*",$item)) {
- $items[] = $item;
+ if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_author) and (file_exists("data/members/active/$req_author") or (file_get_contents("data/username.txt") == $req_author)) and (file_get_contents("data/items/$item/author.txt") == $req_author)) {
- $items[] = $item;
+ if (isset($maj_req_author) and (file_exists("data/members/active/$maj_req_author") or (file_get_contents("data/username.txt") == $maj_req_author)) and (file_get_contents("data/items/$maj_item/author.txt") == $maj_req_author)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_find)) {
+ if (isset($maj_req_find)) {
- if ((($req_find == "private") or ($req_find == "member") or ($req_find == "passwd")) and file_exists("data/items/$item/{$req_find}.txt")) {
- $items[] = $item;
+ if ((($maj_req_find == "private") or ($maj_req_find == "member") or ($maj_req_find == "passwd")) and file_exists("data/items/$maj_item/{$maj_req_find}.txt")) {
+ $maj_items[] = $maj_item;
}
- if ((($req_find == "comments") or ($req_find == "filedrop") or ($req_find == "album")) and file_exists("data/items/$item/$req_find")) {
- $items[] = $item;
+ if ((($maj_req_find == "comments") or ($maj_req_find == "filedrop") or ($maj_req_find == "album")) and file_exists("data/items/$maj_item/$maj_req_find")) {
+ $maj_items[] = $maj_item;
}
- if (($req_find == "unfiled") and !file_exists("data/items/$item/categories")) {
- $items[] = $item;
+ if (($maj_req_find == "unfiled") and !file_exists("data/items/$maj_item/categories")) {
+ $maj_items[] = $maj_item;
}
}
}
else {
- $items[] = $item;
+ $maj_items[] = $maj_item;
}
- $latest[] = $item;
+ $maj_latest[] = $maj_item;
- if (file_exists("data/items/$item/album")) {
- $albums[] = $item;
+ if (file_exists("data/items/$maj_item/album")) {
+ $maj_albums[] = $maj_item;
}
- $random[] = $item;
+ $maj_random[] = $maj_item;
- $archives[] = substr($item,0,6);
+ $maj_archives[] = substr($maj_item,0,6);
}
else {
// non-admin stuff (start)
- $today = date("YmdHis",time() + $offset);
+ $maj_today = date("YmdHis",time() + $maj_offset);
- if ($item > $today) {
+ if ($maj_item > $maj_today) {
continue;
}
- if (file_exists("data/items/$item/private.txt")) {
+ if (file_exists("data/items/$maj_item/private.txt")) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$item/categories")) {
+ if (file_exists("data/items/$maj_item/categories")) {
- if ($dh_entry_categories = opendir("data/items/$item/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_item/categories")) {
- while (($item_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_item_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($item_category != "." && $item_category != "..") {
+ if ($maj_item_category != "." && $maj_item_category != "..") {
- if (file_exists("data/categories/$item_category/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_item_category/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
}
- if (($private_categories > 0) and !file_exists("data/items/$item/cat.txt")) {
+ if (($maj_private_categories > 0) and !file_exists("data/items/$maj_item/cat.txt")) {
continue;
}
- $latest[] = $item;
+ $maj_latest[] = $maj_item;
- if (file_exists("data/items/$item/member.txt") and (!isset($_SESSION['logged_in']))) {
+ if (file_exists("data/items/$maj_item/member.txt") and (!isset($_SESSION['logged_in']))) {
continue;
}
- if (file_exists("data/items/$item/album")) {
- $albums[] = $item;
+ if (file_exists("data/items/$maj_item/album")) {
+ $maj_albums[] = $maj_item;
}
- $random[] = $item;
- $archives[] = substr($item,0,6);
+ $maj_random[] = $maj_item;
+ $maj_archives[] = substr($maj_item,0,6);
- if (file_exists("data/nocat.txt") and file_exists("data/items/$item/categories") and !file_exists("data/items/$item/cat.txt") and (!isset($req_category) or empty($req_category)) and (!isset($req_entry) or empty($req_entry)) and (!isset($req_author) or empty($req_author))) {
+ if (file_exists("data/nocat.txt") and file_exists("data/items/$maj_item/categories") and !file_exists("data/items/$maj_item/cat.txt") and (!isset($maj_req_category) or empty($maj_req_category)) and (!isset($maj_req_entry) or empty($maj_req_entry)) and (!isset($maj_req_author) or empty($maj_req_author))) {
continue;
}
- if (isset($req_entry) or isset($req_category) or isset($req_archive) or isset($req_find) or isset($req_author)) {
+ if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
- if (isset($req_entry) and file_exists("data/items/$req_entry")) {
- $items[] = $req_entry;
+ if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
+ $maj_items[] = $maj_req_entry;
}
- if (isset($req_category) and file_exists("data/categories/$req_category") and file_exists("data/items/$item/categories/$req_category")) {
- $items[] = $item;
+ if (isset($maj_req_category) and file_exists("data/categories/$maj_req_category") and file_exists("data/items/$maj_item/categories/$maj_req_category")) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_archive) and fnmatch("$req_archive*",$item)) {
- $items[] = $item;
+ if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
+ $maj_items[] = $maj_item;
}
- if (isset($req_author) and (file_exists("data/members/active/$req_author") or (file_get_contents("data/username.txt") == $req_author)) and (file_get_contents("data/items/$item/author.txt") == $req_author)) {
- $items[] = $item;
+ if (isset($maj_req_author) and (file_exists("data/members/active/$maj_req_author") or (file_get_contents("data/username.txt") == $maj_req_author)) and (file_get_contents("data/items/$maj_item/author.txt") == $maj_req_author)) {
+ $maj_items[] = $maj_item;
}
}
else {
- $items[] = $item;
+ $maj_items[] = $maj_item;
}
// non-admin stuff (end)
}
}
}
- closedir($dh_items);
+ closedir($maj_dh_items);
}
-sort($grand);
-reset($grand);
+sort($maj_grand);
+reset($maj_grand);
-$count_grand = count($grand);
+$maj_count_grand = count($maj_grand);
-if (isset($req_entry) and file_exists("data/items/$req_entry")) {
+if (isset($maj_req_entry) and file_exists("data/items/$maj_req_entry")) {
- if (file_exists("data/items/$req_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
- unset($items);
+ if (file_exists("data/items/$maj_req_entry/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
+ unset($maj_items);
}
- if (file_exists("data/items/$req_entry/member.txt") and !isset($_SESSION['logged_in'])) {
- unset($items);
+ if (file_exists("data/items/$maj_req_entry/member.txt") and !isset($_SESSION['logged_in'])) {
+ unset($maj_items);
}
}
-$items = array_unique($items);
-$items = array_values($items);
+$maj_items = array_unique($maj_items);
+$maj_items = array_values($maj_items);
if (file_exists("data/old.txt")) {
- sort($items);
+ sort($maj_items);
}
else {
- rsort($items);
+ rsort($maj_items);
}
-reset($items);
+reset($maj_items);
-$count_items = count($items);
+$maj_count_items = count($maj_items);
-rsort($latest);
-reset($latest);
+rsort($maj_latest);
+reset($maj_latest);
-$count_latest = count($latest);
+$maj_count_latest = count($maj_latest);
-rsort($albums);
-reset($albums);
+rsort($maj_albums);
+reset($maj_albums);
-$count_albums = count($albums);
+$maj_count_albums = count($maj_albums);
-rsort($random);
-reset($random);
+rsort($maj_random);
+reset($maj_random);
-$count_random = count($random);
+$maj_count_random = count($maj_random);
-rsort($archives);
-reset($archives);
+rsort($maj_archives);
+reset($maj_archives);
-$count_archives = count($archives);
+$maj_count_archives = count($maj_archives);
-if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($req_entry) and !isset($req_category) and !isset($_REQUEST['start']) and !isset($req_author) and !isset($req_archive) and !isset($req_find)) {
+if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($maj_req_entry) and !isset($maj_req_category) and !isset($_REQUEST['start']) and !isset($maj_req_author) and !isset($maj_req_archive) and !isset($maj_req_find)) {
- if ($count_latest > 0) {
+ if ($maj_count_latest > 0) {
if (file_exists("data/round.txt")) {
echo "<b class=\"rbtop\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
}
else {
- echo "<div id=\"panel_title\">";
+ echo "<div class=\"panel_title\">";
}
- echo "Latest Entries</div><div id=\"panel_body\">";
+ echo "Latest Entries</div><div class=\"panel_body\">";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"100%\">";
echo "<tr><td bgcolor=\"#eeeeee\" align=\"center\">topic</td><td bgcolor=\"#eeeeee\" align=\"center\">author</td><td bgcolor=\"#eeeeee\" align=\"center\">views</td><td bgcolor=\"#eeeeee\" align=\"center\">comments</td><td bgcolor=\"#eeeeee\" align=\"center\">last post</td></tr>";
- $increment_latest = 0;
+ $maj_increment_latest = 0;
- while ($increment_latest <= 4) {
+ while ($maj_increment_latest <= 4) {
- echo "<tr><td bgcolor=\"#ffffff\"><a href=\"index.php?entry=$latest[$increment_latest]";
+ echo "<tr><td bgcolor=\"#ffffff\"><a href=\"index.php?entry=$maj_latest[$maj_increment_latest]";
- if ($dh_summary_comments = opendir("data/items/$latest[$increment_latest]/comments/live")) {
+ if ($maj_dh_summary_comments = opendir("data/items/$maj_latest[$maj_increment_latest]/comments/live")) {
- while (($entry_summary_comments = readdir($dh_summary_comments)) !== false) {
+ while (($maj_entry_summary_comments = readdir($maj_dh_summary_comments)) !== false) {
- if ($entry_summary_comments != "." && $entry_summary_comments != "..") {
- $items_summary_comments[] = $entry_summary_comments;
+ if ($maj_entry_summary_comments != "." && $maj_entry_summary_comments != "..") {
+ $maj_items_summary_comments[] = $maj_entry_summary_comments;
}
}
- closedir($dh_summary_comments);
+ closedir($maj_dh_summary_comments);
}
- rsort($items_summary_comments);
+ rsort($maj_items_summary_comments);
- $summary_comments = count($items_summary_comments);
+ $maj_summary_comments = count($maj_items_summary_comments);
- if ($summary_comments > 0) {
+ if ($maj_summary_comments > 0) {
echo "&show=comments";
}
echo "\">";
- readfile("data/items/$latest[$increment_latest]/title.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/title.txt");
echo "</a></td>";
- echo "<td bgcolor=\"#ffffff\"><a href=\"member.php?id=";
- readfile("data/items/$latest[$increment_latest]/author.txt");
+ echo "<td bgcolor=\"#ffffff\"><a href=\"member.php?class=";
+ readfile("data/items/$maj_latest[$maj_increment_latest]/author.txt");
echo "\">";
- readfile("data/items/$latest[$increment_latest]/author.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/author.txt");
echo "</a></td>";
echo "<td bgcolor=\"#ffffff\" align=\"right\">";
- if (!file_exists("data/items/$latest[$increment_latest]/views.txt")) {
+ if (!file_exists("data/items/$maj_latest[$maj_increment_latest]/views.txt")) {
echo 0;
}
else {
- readfile("data/items/$latest[$increment_latest]/views.txt");
+ readfile("data/items/$maj_latest[$maj_increment_latest]/views.txt");
}
echo "</td>";
- if ($summary_comments < 1) {
+ if ($maj_summary_comments < 1) {
- $iso_year = substr($latest[$increment_latest],0,4);
- $iso_month = substr($latest[$increment_latest],4,2);
- $iso_day = substr($latest[$increment_latest],6,2);
- $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
+ $maj_iso_year = substr($maj_latest[$maj_increment_latest],0,4);
+ $maj_iso_month = substr($maj_latest[$maj_increment_latest],4,2);
+ $maj_iso_day = substr($maj_latest[$maj_increment_latest],6,2);
+ $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
echo "<td bgcolor=\"#ffffff\" align=\"right\">0</td>";
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$iso_last</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
}
else {
- $iso_year = substr($items_summary_comments[0],0,4);
- $iso_month = substr($items_summary_comments[0],4,2);
- $iso_day = substr($items_summary_comments[0],6,2);
- $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
+ $maj_iso_year = substr($maj_items_summary_comments[0],0,4);
+ $maj_iso_month = substr($maj_items_summary_comments[0],4,2);
+ $maj_iso_day = substr($maj_items_summary_comments[0],6,2);
+ $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$summary_comments</td>";
- echo "<td bgcolor=\"#ffffff\" align=\"right\">$iso_last</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_summary_comments</td>";
+ echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
}
- unset($items_summary_comments);
+ unset($maj_items_summary_comments);
- $increment_latest = $increment_latest + 1;
+ $maj_increment_latest = $maj_increment_latest + 1;
}
}
- if ($count_latest > 0) {
+ if ($maj_count_latest > 0) {
echo "</table></div>";
@@ -2651,54 +2739,54 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_
}
-if ($count_center_panels > 0) {
+if ($maj_count_center_panels > 0) {
- foreach ($center_panels as $center_panel) {
+ foreach ($maj_center_panels as $maj_center_panel) {
- if (!file_exists("data/panels/$center_panel/free.txt")) {
+ if (!file_exists("data/panels/$maj_center_panel/free.txt")) {
- if (file_exists("data/panels/$center_panel/border.txt")) {
- $center_panel_border = file_get_contents("data/panels/$center_panel/border.txt");
+ if (file_exists("data/panels/$maj_center_panel/border.txt")) {
+ $maj_center_panel_border = file_get_contents("data/panels/$maj_center_panel/border.txt");
}
else {
- if (isset($center_panel_border)) {
- unset($center_panel_border);
+ if (isset($maj_center_panel_border)) {
+ unset($maj_center_panel_border);
}
}
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
- $center_panel_bgcolor_t = file_get_contents("data/panels/$center_panel/bgcolor-t.txt");
+ if (file_exists("data/panels/$maj_center_panel/bgcolor-t.txt")) {
+ $maj_center_panel_bgcolor_t = file_get_contents("data/panels/$maj_center_panel/bgcolor-t.txt");
}
else {
- if (isset($center_panel_bgcolor_t)) {
- unset($center_panel_bgcolor_t);
+ if (isset($maj_center_panel_bgcolor_t)) {
+ unset($maj_center_panel_bgcolor_t);
}
}
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
- $center_panel_bgcolor_c = file_get_contents("data/panels/$center_panel/bgcolor-c.txt");
+ if (file_exists("data/panels/$maj_center_panel/bgcolor-c.txt")) {
+ $maj_center_panel_bgcolor_c = file_get_contents("data/panels/$maj_center_panel/bgcolor-c.txt");
}
else {
- if (isset($center_panel_bgcolor_c)) {
- unset($center_panel_bgcolor_c);
+ if (isset($maj_center_panel_bgcolor_c)) {
+ unset($maj_center_panel_bgcolor_c);
}
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
- $center_panel_text_t = file_get_contents("data/panels/$center_panel/text-t.txt");
+ if (file_exists("data/panels/$maj_center_panel/text-t.txt")) {
+ $maj_center_panel_text_t = file_get_contents("data/panels/$maj_center_panel/text-t.txt");
}
else {
- if (isset($center_panel_text_t)) {
- unset($center_panel_text_t);
+ if (isset($maj_center_panel_text_t)) {
+ unset($maj_center_panel_text_t);
}
}
- if (file_exists("data/panels/$center_panel/text-c.txt")) {
- $center_panel_text_c = file_get_contents("data/panels/$center_panel/text-c.txt");
+ if (file_exists("data/panels/$maj_center_panel/text-c.txt")) {
+ $maj_center_panel_text_c = file_get_contents("data/panels/$maj_center_panel/text-c.txt");
}
else {
- if (isset($center_panel_text_c)) {
- unset($center_panel_text_c);
+ if (isset($maj_center_panel_text_c)) {
+ unset($maj_center_panel_text_c);
}
}
@@ -2706,220 +2794,220 @@ if ($count_center_panels > 0) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($center_panel_border)) {
- echo " style=\"background-color: $center_panel_border;\"";
+ if (isset($maj_center_panel_border)) {
+ echo " style=\"background-color: $maj_center_panel_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_text_t)) {
- echo "color: $center_panel_text_t;";
+ if (isset($maj_center_panel_text_t)) {
+ echo "color: $maj_center_panel_text_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_t)) {
- echo "background-color: $center_panel_bgcolor_t;";
+ if (isset($maj_center_panel_bgcolor_t)) {
+ echo "background-color: $maj_center_panel_bgcolor_t;";
}
- if (isset($center_panel_text_t)) {
- echo "color: $center_panel_text_t;";
+ if (isset($maj_center_panel_text_t)) {
+ echo "color: $maj_center_panel_text_t;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_t) or isset($maj_center_panel_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/panels/$center_panel/title.txt");
+ readfile("data/panels/$maj_center_panel/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#{$center_panel}\">";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "<a href=\"panels.php#{$maj_center_panel}\">";
echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- if (file_exists("data/panels/$center_panel/private.txt")) {
+ if (file_exists("data/panels/$maj_center_panel/private.txt")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
echo '</div>';
- echo '<div id="panel_body"';
+ echo '<div class="panel_body"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c) or isset($maj_center_panel_text_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_text_c)) {
- echo "color: $center_panel_text_c;";
+ if (isset($maj_center_panel_text_c)) {
+ echo "color: $maj_center_panel_text_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c) or isset($maj_center_panel_text_c)) {
echo '"';
}
echo '>';
}
- if (file_exists("data/panels/$center_panel/free.txt")) {
- echo '<div id=panel_free>';
+ if (file_exists("data/panels/$maj_center_panel/free.txt")) {
+ echo '<div class=panel_free>';
}
- include("data/panels/$center_panel/panel.php");
+ include("data/panels/$maj_center_panel/panel.php");
echo '</div>';
- if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$maj_center_panel/free.txt")) {
echo '<b class="rbbottom"><b class="rb4b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb3b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb2b"';
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo ' style="';
}
- if (isset($center_panel_bgcolor_c)) {
- echo "background-color: $center_panel_bgcolor_c;";
+ if (isset($maj_center_panel_bgcolor_c)) {
+ echo "background-color: $maj_center_panel_bgcolor_c;";
}
- if (isset($center_panel_border)) {
- echo "border-color: $center_panel_border;";
+ if (isset($maj_center_panel_border)) {
+ echo "border-color: $maj_center_panel_border;";
}
- if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ if (isset($maj_center_panel_border) or isset($maj_center_panel_bgcolor_c)) {
echo '"';
}
echo '></b><b class="rb1b"';
- if (isset($center_panel_border)) {
- echo " style=\"background-color: $center_panel_border;\"";
+ if (isset($maj_center_panel_border)) {
+ echo " style=\"background-color: $maj_center_panel_border;\"";
}
echo '></b></b>';
@@ -2927,29 +3015,29 @@ if ($count_center_panels > 0) {
}
}
-if (isset($req_category) and !empty($req_category)) {
+if (isset($maj_req_category) and !empty($maj_req_category)) {
- if (file_exists("data/categories/$req_category/book.txt")) {
- sort($items);
- reset($items);
+ if (file_exists("data/categories/$maj_req_category/book.txt")) {
+ sort($maj_items);
+ reset($maj_items);
}
}
-if ($count_items == 0) {
+if ($maj_count_items == 0) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div class="panel_title">';
}
- echo "Oops!</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=4><tr>";
+ echo "Oops!</div><div class=panel_body><table border=0 cellspacing=0 cellpadding=4><tr>";
echo "<td valign=middle><img src=images/oops.png width=36 height=36 border=0></td><td valign=middle>";
- if (($count_grand == 0) and (count($_GET) == 0)) {
+ if (($maj_count_grand == 0) and (count($_GET) == 0)) {
echo "No entries found. Perhaps this is a fresh install.";
}
else {
@@ -2970,284 +3058,284 @@ if ($count_items == 0) {
echo "</td></tr></table>";
}
-$start = $_REQUEST['start'];
+$maj_start = $_REQUEST['start'];
if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
- $start = 0;
+ $maj_start = 0;
}
-$end = $start + $increase;
+$maj_end = $maj_start + $maj_increase;
-$disp = array_slice($items,$start,$increase);
+$maj_disp = array_slice($maj_items,$maj_start,$maj_increase);
-foreach ($disp as $d) {
+foreach ($maj_disp as $maj_d) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
- if (file_exists("data/items/$d/border.txt")) {
- $d_border = file_get_contents("data/items/$d/border.txt");
+ if (file_exists("data/items/$maj_d/border.txt")) {
+ $maj_d_border = file_get_contents("data/items/$maj_d/border.txt");
}
else {
- if (isset($d_border)) {
- unset($d_border);
+ if (isset($maj_d_border)) {
+ unset($maj_d_border);
}
}
- if (file_exists("data/items/$d/bgcolor-t.txt")) {
- $d_bgcolor_t = file_get_contents("data/items/$d/bgcolor-t.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-t.txt")) {
+ $maj_d_bgcolor_t = file_get_contents("data/items/$maj_d/bgcolor-t.txt");
}
else {
- if (isset($d_bgcolor_t)) {
- unset($d_bgcolor_t);
+ if (isset($maj_d_bgcolor_t)) {
+ unset($maj_d_bgcolor_t);
}
}
- if (file_exists("data/items/$d/bgcolor-b.txt")) {
- $d_bgcolor_b = file_get_contents("data/items/$d/bgcolor-b.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-b.txt")) {
+ $maj_d_bgcolor_b = file_get_contents("data/items/$maj_d/bgcolor-b.txt");
}
else {
- if (isset($d_bgcolor_b)) {
- unset($d_bgcolor_b);
+ if (isset($maj_d_bgcolor_b)) {
+ unset($maj_d_bgcolor_b);
}
}
- if (file_exists("data/items/$d/bgcolor-c.txt")) {
- $d_bgcolor_c = file_get_contents("data/items/$d/bgcolor-c.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-c.txt")) {
+ $maj_d_bgcolor_c = file_get_contents("data/items/$maj_d/bgcolor-c.txt");
}
else {
- if (isset($d_bgcolor_c)) {
- unset($d_bgcolor_c);
+ if (isset($maj_d_bgcolor_c)) {
+ unset($maj_d_bgcolor_c);
}
}
- if (file_exists("data/items/$d/bgcolor-f.txt")) {
- $d_bgcolor_f = file_get_contents("data/items/$d/bgcolor-f.txt");
+ if (file_exists("data/items/$maj_d/bgcolor-f.txt")) {
+ $maj_d_bgcolor_f = file_get_contents("data/items/$maj_d/bgcolor-f.txt");
}
else {
- if (isset($d_bgcolor_f)) {
- unset($d_bgcolor_f);
+ if (isset($maj_d_bgcolor_f)) {
+ unset($maj_d_bgcolor_f);
}
}
- if (file_exists("data/items/$d/text-t.txt")) {
- $d_text_t = file_get_contents("data/items/$d/text-t.txt");
+ if (file_exists("data/items/$maj_d/text-t.txt")) {
+ $maj_d_text_t = file_get_contents("data/items/$maj_d/text-t.txt");
}
else {
- if (isset($d_text_t)) {
- unset($d_text_t);
+ if (isset($maj_d_text_t)) {
+ unset($maj_d_text_t);
}
}
- if (file_exists("data/items/$d/text-b.txt")) {
- $d_text_b = file_get_contents("data/items/$d/text-b.txt");
+ if (file_exists("data/items/$maj_d/text-b.txt")) {
+ $maj_d_text_b = file_get_contents("data/items/$maj_d/text-b.txt");
}
else {
- if (isset($d_text_b)) {
- unset($d_text_b);
+ if (isset($maj_d_text_b)) {
+ unset($maj_d_text_b);
}
}
- if (file_exists("data/items/$d/text-c.txt")) {
- $d_text_c = file_get_contents("data/items/$d/text-c.txt");
+ if (file_exists("data/items/$maj_d/text-c.txt")) {
+ $maj_d_text_c = file_get_contents("data/items/$maj_d/text-c.txt");
}
else {
- if (isset($d_text_c)) {
- unset($d_text_c);
+ if (isset($maj_d_text_c)) {
+ unset($maj_d_text_c);
}
}
- if (file_exists("data/items/$d/text-f.txt")) {
- $d_text_f = file_get_contents("data/items/$d/text-f.txt");
+ if (file_exists("data/items/$maj_d/text-f.txt")) {
+ $maj_d_text_f = file_get_contents("data/items/$maj_d/text-f.txt");
}
else {
- if (isset($d_text_f)) {
- unset($d_text_f);
+ if (isset($maj_d_text_f)) {
+ unset($maj_d_text_f);
}
}
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"';
- if (isset($d_border)) {
- echo " style=\"background-color: $d_border;\"";
+ if (isset($maj_d_border)) {
+ echo " style=\"background-color: $maj_d_border;\"";
}
echo '></b><b class="rb2t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb3t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b><b class="rb4t"';
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t)) {
echo '"';
}
echo '></b></b><div class="xtitle"';
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_text_t)) {
- echo "color: $d_text_t;";
+ if (isset($maj_d_text_t)) {
+ echo "color: $maj_d_text_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo '"';
}
echo '>';
}
else {
- echo '<div id="panel_title"';
+ echo '<div class="panel_title"';
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo ' style="';
}
- if (isset($d_bgcolor_t)) {
- echo "background-color: $d_bgcolor_t;";
+ if (isset($maj_d_bgcolor_t)) {
+ echo "background-color: $maj_d_bgcolor_t;";
}
- if (isset($d_text_t)) {
- echo "color: $d_text_t;";
+ if (isset($maj_d_text_t)) {
+ echo "color: $maj_d_text_t;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
echo '"';
}
echo '>';
}
- readfile("data/items/$d/title.txt");
+ readfile("data/items/$maj_d/title.txt");
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/wiki.txt") and (file_exists("data/items/$d/edit.txt") or (file_get_contents("data/items/$d/author.txt") == $_SESSION['logged_in'])) and file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and !file_exists("data/items/$d/passwd.txt") and !file_exists("data/items/$d/lock.txt")) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/wiki.txt") and (file_exists("data/items/$maj_d/edit.txt") or (file_get_contents("data/items/$maj_d/author.txt") == $_SESSION['logged_in'])) and file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and !file_exists("data/items/$maj_d/passwd.txt") and !file_exists("data/items/$maj_d/lock.txt")) {
- if (file_exists("data/items/$d/wiki/delta") and (count(glob("data/items/$d/wiki/delta/*")) > 0)) {
- echo "<a href=\"wiki.php?entry=$d\">";
+ if (file_exists("data/items/$maj_d/wiki/delta") and (count(glob("data/items/$maj_d/wiki/delta/*")) > 0)) {
+ echo "<a href=\"wiki.php?entry=$maj_d\">";
echo "<img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\">";
echo "</a>";
}
- if (!file_exists("data/items/$d/lock.txt")) {
- echo "<a href=\"edit.php?entry=$d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
+ if (!file_exists("data/items/$maj_d/lock.txt")) {
+ echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
}
}
- if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- echo "<a href=\"del.php?entry=$d\"><img src=\"images/widget.del.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"delete entry\"></a>";
+ echo "<a href=\"del.php?entry=$maj_d\"><img src=\"images/widget.del.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"delete entry\"></a>";
- if (!file_exists("data/items/$d/private.txt") and !file_exists("data/items/$d/categories") and file_exists("data/bb.txt") and (count(glob("data/items/$d/comments/live/*")) === 0) and (count(glob("data/items/$d/comments/pending/*")) === 0)) {
- echo "<a href=\"move.php?entry=$d\"><img src=\"images/widget.move.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"move to comment\"></a>";
+ if (!file_exists("data/items/$maj_d/private.txt") and !file_exists("data/items/$maj_d/categories") and file_exists("data/bb.txt") and (count(glob("data/items/$maj_d/comments/live/*")) === 0) and (count(glob("data/items/$maj_d/comments/pending/*")) === 0)) {
+ echo "<a href=\"move.php?entry=$maj_d\"><img src=\"images/widget.move.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"move to comment\"></a>";
}
- if (file_exists("data/items/$d/wiki/delta") and (count(glob("data/items/$d/wiki/delta/*")) > 0)) {
- echo "<a href=\"wiki.php?entry=$d\"><img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\"></a>";
+ if (file_exists("data/items/$maj_d/wiki/delta") and (count(glob("data/items/$maj_d/wiki/delta/*")) > 0)) {
+ echo "<a href=\"wiki.php?entry=$maj_d\"><img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\"></a>";
}
- echo "<a href=\"edit.php?entry=$d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
+ echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
- if (file_exists("data/items/$d/passwd.txt")) {
+ if (file_exists("data/items/$maj_d/passwd.txt")) {
echo "<img src=\"images/widget.protected.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"protected entry\">";
}
- if (file_exists("data/items/$d/private.txt")) {
+ if (file_exists("data/items/$maj_d/private.txt")) {
echo "<img src=\"images/widget.private.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private entry\">";
}
- if (file_exists("data/items/$d/member.txt")) {
+ if (file_exists("data/items/$maj_d/member.txt")) {
echo "<img src=\"images/widget.member.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"members-only entry\">";
}
- if (file_exists("data/items/$d/cat.txt")) {
+ if (file_exists("data/items/$maj_d/cat.txt")) {
echo "<img src=\"images/widget.cat.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"always displayed\">";
}
- if (file_exists("data/items/$d/categories/$req_category")) {
+ if (file_exists("data/items/$maj_d/categories/$maj_req_category")) {
- $private_categories = "0";
- $book_categories = "0";
+ $maj_private_categories = "0";
+ $maj_book_categories = "0";
- if (file_exists("data/items/$d/categories")) {
+ if (file_exists("data/items/$maj_d/categories")) {
- if ($dh_read_cat_dir = opendir("data/items/$d/categories")) {
+ if ($maj_dh_read_cat_dir = opendir("data/items/$maj_d/categories")) {
- while (($read_cat_dir = readdir($dh_read_cat_dir)) !== false) {
+ while (($maj_read_cat_dir = readdir($maj_dh_read_cat_dir)) !== false) {
- if ($read_cat_dir != "." && $read_cat_dir != "..") {
+ if ($maj_read_cat_dir != "." && $maj_read_cat_dir != "..") {
- if (file_exists("data/categories/$read_cat_dir/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_read_cat_dir/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
- if (file_exists("data/categories/$read_cat_dir/book.txt")) {
- $book_categories = $book_categories + 1;
+ if (file_exists("data/categories/$maj_read_cat_dir/book.txt")) {
+ $maj_book_categories = $maj_book_categories + 1;
}
}
}
- closedir($dh_read_cat_dir);
+ closedir($maj_dh_read_cat_dir);
}
}
- if ($private_categories > 0) {
+ if ($maj_private_categories > 0) {
echo "<img src=\"images/widget.hidden.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private category\">";
}
@@ -3255,7 +3343,7 @@ foreach ($disp as $d) {
echo "<img src=\"images/widget.isolated.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"isolated category\">";
}
- if ($book_categories > 0) {
+ if ($maj_book_categories > 0) {
echo "<img src=\"images/widget.booked.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"book category\">";
}
@@ -3264,25 +3352,25 @@ foreach ($disp as $d) {
}
- echo "</div><div id=\"panel_entry_body\"";
+ echo "</div><div class=\"panel_entry_body\"";
- if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo ' style="';
}
- if (isset($d_bgcolor_b)) {
- echo "background-color: $d_bgcolor_b;";
+ if (isset($maj_d_bgcolor_b)) {
+ echo "background-color: $maj_d_bgcolor_b;";
}
- if (isset($d_text_b)) {
- echo "color: $d_text_b;";
+ if (isset($maj_d_text_b)) {
+ echo "color: $maj_d_text_b;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo '"';
}
@@ -3290,193 +3378,193 @@ foreach ($disp as $d) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
- if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$d/author.txt")) {
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt")) {
echo "<td width=\"85\" valign=\"top\">";
- $author = file_get_contents("data/items/$d/author.txt");
+ $maj_author = file_get_contents("data/items/$maj_d/author.txt");
- echo "<a href=\"member.php?id=$author\">";
+ echo "<a href=\"member.php?class=$maj_author\">";
- if ((file_get_contents("data/username.txt") == $author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
+ if ((file_get_contents("data/username.txt") == $maj_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
if (file_exists("images/avatar.gif")) {
- $avatar_gif_image_size = getimagesize("images/avatar.gif");
- $avatar_gif_image_width = $avatar_gif_image_size[0];
- $avatar_gif_image_height = $avatar_gif_image_size[1];
+ $maj_avatar_gif_image_size = getimagesize("images/avatar.gif");
+ $maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
+ $maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 80;
- if ($avatar_gif_image_width > $max_avatar_gif_image_width) {
- $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
- $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
- $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
+ if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_gif_image_width / $maj_avatar_gif_image_width) ;
+ $maj_avatar_gif_image_width = (int) ($maj_avatar_gif_image_width * $maj_sizefactor);
+ $maj_avatar_gif_image_height = (int) ($maj_avatar_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.gif\" border=\"0\" width=\"$avatar_gif_image_width\" height=\"$avatar_gif_image_height\">";
+ echo "<img src=\"images/avatar.gif\" border=\"0\" width=\"$maj_avatar_gif_image_width\" height=\"$maj_avatar_gif_image_height\">";
}
if (file_exists("images/avatar.jpg")) {
- $avatar_jpg_image_size = getimagesize("images/avatar.jpg");
- $avatar_jpg_image_width = $avatar_jpg_image_size[0];
- $avatar_jpg_image_height = $avatar_jpg_image_size[1];
+ $maj_avatar_jpg_image_size = getimagesize("images/avatar.jpg");
+ $maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
+ $maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 80;
- if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {
- $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
- $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
- $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
+ if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_jpg_image_width / $maj_avatar_jpg_image_width) ;
+ $maj_avatar_jpg_image_width = (int) ($maj_avatar_jpg_image_width * $maj_sizefactor);
+ $maj_avatar_jpg_image_height = (int) ($maj_avatar_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.jpg\" border=\"0\" width=\"$avatar_jpg_image_width\" height=\"$avatar_jpg_image_height\">";
+ echo "<img src=\"images/avatar.jpg\" border=\"0\" width=\"$maj_avatar_jpg_image_width\" height=\"$maj_avatar_jpg_image_height\">";
}
if (file_exists("images/avatar.png")) {
- $avatar_png_image_size = getimagesize("images/avatar.png");
- $avatar_png_image_width = $avatar_png_image_size[0];
- $avatar_png_image_height = $avatar_png_image_size[1];
+ $maj_avatar_png_image_size = getimagesize("images/avatar.png");
+ $maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
+ $maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 80;
- if ($avatar_png_image_width > $max_avatar_png_image_width) {
- $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
- $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
- $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
+ if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
+ $maj_avatar_png_image_width = (int) ($maj_avatar_png_image_width * $maj_sizefactor);
+ $maj_avatar_png_image_height = (int) ($maj_avatar_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/avatar.png\" border=\"0\" width=\"$avatar_png_image_width\" height=\"$avatar_png_image_height\">";
+ echo "<img src=\"images/avatar.png\" border=\"0\" width=\"$maj_avatar_png_image_width\" height=\"$maj_avatar_png_image_height\">";
}
echo "<br>";
}
- elseif (file_exists("images/members/$author/avatar.jpg") or file_exists("images/members/$author/avatar.gif") or file_exists("images/members/$author/avatar.png")) {
+ elseif (file_exists("images/members/$maj_author/avatar.jpg") or file_exists("images/members/$maj_author/avatar.gif") or file_exists("images/members/$maj_author/avatar.png")) {
- if (file_exists("images/members/$author/avatar.gif")) {
+ if (file_exists("images/members/$maj_author/avatar.gif")) {
- $avatar_gif_image_size = getimagesize("images/members/$author/avatar.gif");
- $avatar_gif_image_width = $avatar_gif_image_size[0];
- $avatar_gif_image_height = $avatar_gif_image_size[1];
+ $maj_avatar_gif_image_size = getimagesize("images/members/$maj_author/avatar.gif");
+ $maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
+ $maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 80;
- if ($avatar_gif_image_width > $max_avatar_gif_image_width) {
- $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
- $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
- $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
+ if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_gif_image_width / $maj_avatar_gif_image_width) ;
+ $maj_avatar_gif_image_width = (int) ($maj_avatar_gif_image_width * $maj_sizefactor);
+ $maj_avatar_gif_image_height = (int) ($maj_avatar_gif_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.gif\" border=\"0\" width=\"$avatar_gif_image_width\" height=\"$avatar_gif_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.gif\" border=\"0\" width=\"$maj_avatar_gif_image_width\" height=\"$maj_avatar_gif_image_height\">";
}
- if (file_exists("images/members/$author/avatar.jpg")) {
+ if (file_exists("images/members/$maj_author/avatar.jpg")) {
- $avatar_jpg_image_size = getimagesize("images/members/$author/avatar.jpg");
- $avatar_jpg_image_width = $avatar_jpg_image_size[0];
- $avatar_jpg_image_height = $avatar_jpg_image_size[1];
+ $maj_avatar_jpg_image_size = getimagesize("images/members/$maj_author/avatar.jpg");
+ $maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
+ $maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 80;
- if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {
- $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
- $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
- $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
+ if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_jpg_image_width / $maj_avatar_jpg_image_width) ;
+ $maj_avatar_jpg_image_width = (int) ($maj_avatar_jpg_image_width * $maj_sizefactor);
+ $maj_avatar_jpg_image_height = (int) ($maj_avatar_jpg_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.jpg\" border=\"0\" width=\"$avatar_jpg_image_width\" height=\"$avatar_jpg_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.jpg\" border=\"0\" width=\"$maj_avatar_jpg_image_width\" height=\"$maj_avatar_jpg_image_height\">";
}
- if (file_exists("images/members/$author/avatar.png")) {
+ if (file_exists("images/members/$maj_author/avatar.png")) {
- $avatar_png_image_size = getimagesize("images/members/$author/avatar.png");
- $avatar_png_image_width = $avatar_png_image_size[0];
- $avatar_png_image_height = $avatar_png_image_size[1];
+ $maj_avatar_png_image_size = getimagesize("images/members/$maj_author/avatar.png");
+ $maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
+ $maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 80;
- if ($avatar_png_image_width > $max_avatar_png_image_width) {
- $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
- $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
- $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
+ if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
+ $maj_avatar_png_image_width = (int) ($maj_avatar_png_image_width * $maj_sizefactor);
+ $maj_avatar_png_image_height = (int) ($maj_avatar_png_image_height * $maj_sizefactor);
}
- echo "<img src=\"images/members/$author/avatar.png\" border=\"0\" width=\"$avatar_png_image_width\" height=\"$avatar_png_image_height\">";
+ echo "<img src=\"images/members/$maj_author/avatar.png\" border=\"0\" width=\"$maj_avatar_png_image_width\" height=\"$maj_avatar_png_image_height\">";
}
echo "<br>";
}
- echo "<b>$author</b></a><br>";
+ echo "<b>$maj_author</b></a><br>";
- if ((file_get_contents("data/username.txt") == $author) and file_exists("data/rank.txt")) {
+ if ((file_get_contents("data/username.txt") == $maj_author) and file_exists("data/rank.txt")) {
echo "administrator<br>";
}
- elseif (file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
- $rank = file_get_contents("data/members/active/$author/rank.txt");
- echo "$rank<br>";
+ elseif (file_exists("data/members/active/$maj_author/rank.txt") and file_exists("data/rank.txt")) {
+ $maj_rank = file_get_contents("data/members/active/$maj_author/rank.txt");
+ echo "$maj_rank<br>";
}
- elseif (!file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
+ elseif (!file_exists("data/members/active/$maj_author/rank.txt") and file_exists("data/rank.txt")) {
echo "member<br>";
}
- if ($dh_author_posts = opendir("data/items")) {
+ if ($maj_dh_author_posts = opendir("data/items")) {
- while (($author_post = readdir($dh_author_posts)) !== false) {
+ while (($maj_author_post = readdir($maj_dh_author_posts)) !== false) {
- if ($author_post != "." && $author_post != "..") {
+ if ($maj_author_post != "." && $maj_author_post != "..") {
- if (file_exists("data/items/$author_post/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ if (file_exists("data/items/$maj_author_post/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
continue;
}
- $private_categories = "0";
+ $maj_private_categories = "0";
- if (file_exists("data/items/$author_post/categories")) {
+ if (file_exists("data/items/$maj_author_post/categories")) {
- if ($dh_entry_categories_posts = opendir("data/items/$author_post/categories")) {
+ if ($maj_dh_entry_categories_posts = opendir("data/items/$maj_author_post/categories")) {
- while (($entry_category_posts = readdir($dh_entry_categories_posts)) !== false) {
+ while (($maj_entry_category_posts = readdir($maj_dh_entry_categories_posts)) !== false) {
- if ($entry_category_posts != "." && $entry_category_posts != "..") {
+ if ($maj_entry_category_posts != "." && $maj_entry_category_posts != "..") {
- if (file_exists("data/categories/$entry_category_posts/private.txt")) {
- $private_categories = $private_categories + 1;
+ if (file_exists("data/categories/$maj_entry_category_posts/private.txt")) {
+ $maj_private_categories = $maj_private_categories + 1;
}
}
}
- closedir($dh_entry_categories_posts);
+ closedir($maj_dh_entry_categories_posts);
}
}
- if (($private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$author_post/cat.txt")) {
+ if (($maj_private_categories > 0) and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and !file_exists("data/items/$maj_author_post/cat.txt")) {
continue;
}
- if (file_exists("data/members/active/$author") and file_exists("data/bb.txt")) {
+ if (file_exists("data/members/active/$maj_author") and file_exists("data/bb.txt")) {
- if (file_exists("data/items/$author_post/author.txt") and (file_get_contents("data/items/$author_post/author.txt") == $author)) {
- $items_posts[] = $author_post;
+ if (file_exists("data/items/$maj_author_post/author.txt") and (file_get_contents("data/items/$maj_author_post/author.txt") == $maj_author)) {
+ $maj_items_posts[] = $maj_author_post;
}
}
- elseif (!file_exists("data/members/active/$author") and (file_get_contents("data/username.txt") == $author) and file_exists("data/bb.txt")) {
+ elseif (!file_exists("data/members/active/$maj_author") and (file_get_contents("data/username.txt") == $maj_author) and file_exists("data/bb.txt")) {
- if (file_exists("data/items/$author_post/author.txt") and (file_get_contents("data/items/$author_post/author.txt") == $author)) {
- $items_posts[] = $author_post;
+ if (file_exists("data/items/$maj_author_post/author.txt") and (file_get_contents("data/items/$maj_author_post/author.txt") == $maj_author)) {
+ $maj_items_posts[] = $maj_author_post;
}
}
}
}
- closedir($dh_author_posts);
+ closedir($maj_dh_author_posts);
}
- $posts = count($items_posts);
+ $maj_posts = count($maj_items_posts);
- if ($posts == 1) {
- echo "$posts post";
+ if ($maj_posts == 1) {
+ echo "$maj_posts post";
}
- if ($posts > 1) {
- echo "$posts posts";
+ if ($maj_posts > 1) {
+ echo "$maj_posts posts";
}
- unset($items_posts);
+ unset($maj_items_posts);
echo "</td><td width=513 valign=top>";
}
@@ -3484,86 +3572,86 @@ foreach ($disp as $d) {
echo "<td width=598 valign=top>";
}
- if (file_exists("data/items/$d/passwd.txt")) {
- $passwd = file_get_contents("data/items/$d/passwd.txt");
+ if (file_exists("data/items/$maj_d/passwd.txt")) {
+ $maj_passwd = file_get_contents("data/items/$maj_d/passwd.txt");
}
if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
- $crypt_passwd = sha1($_REQUEST['passwd']);
- $crypt_passwd = md5($crypt_passwd);
- $crypt_passwd = crypt($crypt_passwd,$crypt_passwd);
+ $maj_crypt_passwd = sha1($_REQUEST['passwd']);
+ $maj_crypt_passwd = md5($maj_crypt_passwd);
+ $maj_crypt_passwd = crypt($maj_crypt_passwd,$maj_crypt_passwd);
}
- echo "<font style=\"font-size: 10px; color: #999999;\">";
+ echo "<font style=\"font-size: $maj_font_10px; color: #999999;\">";
- if ((file_exists("data/items/$d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and !file_exists("data/avatar.txt"))))) {
- $xavatar_author = file_get_contents("data/items/$d/author.txt");
- echo "$xavatar_author - ";
+ if ((file_exists("data/items/$maj_d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
+ $maj_xavatar_author = file_get_contents("data/items/$maj_d/author.txt");
+ echo "$maj_xavatar_author - ";
}
- entry2date($d);
+ entry2date($maj_d);
- if ((isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) or file_exists("data/items/$d/lastmod.txt")) {
+ if ((isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) or file_exists("data/items/$maj_d/lastmod.txt")) {
- if (file_exists("data/items/$d/revisions.txt")) {
+ if (file_exists("data/items/$maj_d/revisions.txt")) {
echo " (Revision ";
- readfile("data/items/$d/revisions.txt");
+ readfile("data/items/$maj_d/revisions.txt");
echo " - ";
- echo date("l, M j, Y, g:i A",filemtime("data/items/$d/body.txt"));
+ echo date("l, M j, Y, g:i A",filemtime("data/items/$maj_d/body.txt"));
echo ")";
}
}
echo "</font><font style=\"font-size: 5px;\"><br><br></font>";
- if (isset($d_text_b)) {
- echo "<font style=\"color: $d_text_b;\">";
+ if (isset($maj_d_text_b)) {
+ echo "<font style=\"color: $maj_d_text_b;\">";
}
- if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
+ if (file_exists("data/items/$maj_d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
+ echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$maj_d\">here</a> to enter it.";
}
else {
- $entry_body = file_get_contents("data/items/$d/body.txt");
+ $maj_entry_body = file_get_contents("data/items/$maj_d/body.txt");
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
- $badwords = file_get_contents("data/pf-badwords.txt");
+ $maj_badwords = file_get_contents("data/pf-badwords.txt");
if (file_exists("data/pf-censor.txt")) {
- $censor = file_get_contents("data/pf-censor.txt");
+ $maj_censor = file_get_contents("data/pf-censor.txt");
}
else {
- $censor = "[expletive]";
+ $maj_censor = "[expletive]";
}
- $entry_body = preg_replace("/\b($badwords)\b/i",$censor,$entry_body);
+ $maj_entry_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_body);
}
- if (file_exists("data/items/$d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
+ if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
- $entry_shorten = file_get_contents("data/items/$d/maxlines.txt");
+ $maj_entry_shorten = file_get_contents("data/items/$maj_d/maxlines.txt");
- $entry_lines = explode("\r",$entry_body);
+ $maj_entry_lines = explode("\r",$maj_entry_body);
- if (count($entry_lines) > $entry_shorten) {
- $entry_body = implode("",array_slice($entry_lines,0,$entry_shorten));
- $entry_body = $entry_body . "<br><br><a href=\"index.php?entry=$d&view=full\">read more</a>";
+ if (count($maj_entry_lines) > $maj_entry_shorten) {
+ $maj_entry_body = implode("",array_slice($maj_entry_lines,0,$maj_entry_shorten));
+ $maj_entry_body = $maj_entry_body . "<br><br><a href=\"index.php?entry=$maj_d&view=full\">read more</a>";
}
}
- echo $entry_body;
+ echo $maj_entry_body;
}
- if ((file_get_contents("data/username.txt") == $author) and file_exists("data/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
- $sig = file_get_contents("data/sig.txt");
- echo "<br><br>--<br>$sig";
+ if ((file_get_contents("data/username.txt") == $maj_author) and file_exists("data/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
+ $maj_sig = file_get_contents("data/sig.txt");
+ echo "<br><br>--<br>$maj_sig";
}
- elseif (file_exists("data/members/active/$author/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
- $sig = file_get_contents("data/members/active/$author/sig.txt");
- echo "<br><br>--<br>$sig";
+ elseif (file_exists("data/members/active/$maj_author/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
+ $maj_sig = file_get_contents("data/members/active/$maj_author/sig.txt");
+ echo "<br><br>--<br>$maj_sig";
}
- if (isset($d_text_b)) {
+ if (isset($maj_d_text_b)) {
echo "</font>";
}
@@ -3575,81 +3663,81 @@ foreach ($disp as $d) {
echo "</div>";
- if (file_exists("data/items/$d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
+ if (file_exists("data/items/$maj_d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
- if ($dh_entry_categories = opendir("data/items/$d/categories")) {
+ if ($maj_dh_entry_categories = opendir("data/items/$maj_d/categories")) {
- while (($entry_category = readdir($dh_entry_categories)) !== false) {
+ while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
- if ($entry_category != "." && $entry_category != "..") {
- $entry_categories[] = $entry_category;
+ if ($maj_entry_category != "." && $maj_entry_category != "..") {
+ $maj_entry_categories[] = $maj_entry_category;
}
}
- closedir($dh_entry_categories);
+ closedir($maj_dh_entry_categories);
}
- sort($entry_categories);
- reset($entry_categories);
+ sort($maj_entry_categories);
+ reset($maj_entry_categories);
- if (count($entry_categories) > 0) {
+ if (count($maj_entry_categories) > 0) {
- if (count($entry_categories) > 1) {
- $category_list = "categories";
+ if (count($maj_entry_categories) > 1) {
+ $maj_category_list = "categories";
}
else {
- $category_list = "category";
+ $maj_category_list = "category";
}
- foreach ($entry_categories as $filed_under) {
- $category_list = $category_list . " | <a href=\"index.php?category=$filed_under\">$filed_under</a>";
+ foreach ($maj_entry_categories as $maj_filed_under) {
+ $maj_category_list = $maj_category_list . " | <a href=\"index.php?category=$maj_filed_under\">$maj_filed_under</a>";
}
- echo "<div id=\"panel_category\"";
+ echo "<div class=\"panel_category\"";
- if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo ' style="';
}
- if (isset($d_bgcolor_c)) {
- echo "background-color: $d_bgcolor_c;";
+ if (isset($maj_d_bgcolor_c)) {
+ echo "background-color: $maj_d_bgcolor_c;";
}
- if (isset($d_text_c)) {
- echo "color: $d_text_c;";
+ if (isset($maj_d_text_c)) {
+ echo "color: $maj_d_text_c;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo '"';
}
- echo ">$category_list</div>";
+ echo ">$maj_category_list</div>";
}
- unset($entry_categories);
+ unset($maj_entry_categories);
}
- echo "<div id=\"panel_footer\"";
+ echo "<div class=\"panel_footer\"";
- if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo ' style="';
}
- if (isset($d_bgcolor_f)) {
- echo "background-color: $d_bgcolor_f;";
+ if (isset($maj_d_bgcolor_f)) {
+ echo "background-color: $maj_d_bgcolor_f;";
}
- if (isset($d_text_f)) {
- echo "color: $d_text_f;";
+ if (isset($maj_d_text_f)) {
+ echo "color: $maj_d_text_f;";
}
- if (isset($d_border)) {
- echo "border-color: $d_border;";
+ if (isset($maj_d_border)) {
+ echo "border-color: $maj_d_border;";
}
- if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo '"';
}
@@ -3657,210 +3745,210 @@ foreach ($disp as $d) {
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in']))) {
- if (!file_exists("data/items/$d/comments/live")) {
- echo "<a href=\"index.php?entry=$d&show=comments\">add comment</a>";
+ if (!file_exists("data/items/$maj_d/comments/live")) {
+ echo "<a href=\"index.php?entry=$maj_d&show=comments\">add comment</a>";
}
else {
- if ($dh_comments = opendir("data/items/$d/comments/live")) {
+ if ($maj_dh_comments = opendir("data/items/$maj_d/comments/live")) {
- while (($live_comment = readdir($dh_comments)) !== false) {
+ while (($maj_live_comment = readdir($maj_dh_comments)) !== false) {
- if ($live_comment != "." && $live_comment != "..") {
- $live_comments[] = $live_comment;
+