diff --git a/Rocksolid_Light/common/config.inc.php b/Rocksolid_Light/common/config.inc.php
index 98e6dbc..2bb316d 100644
--- a/Rocksolid_Light/common/config.inc.php
+++ b/Rocksolid_Light/common/config.inc.php
@@ -15,5 +15,7 @@ if(isset($config_name) && file_exists($config_dir.$config_name.'.inc.php')) {
/* Include main config file for rslight */
$CONFIG = include $config_file;
-ini_set('error_reporting', E_ERROR );
+if(!file_exists($config_dir.'/DEBUG')) {
+ ini_set('error_reporting', E_ERROR );
+}
?>
diff --git a/Rocksolid_Light/common/header.php b/Rocksolid_Light/common/header.php
index 057a2a4..929e876 100644
--- a/Rocksolid_Light/common/header.php
+++ b/Rocksolid_Light/common/header.php
@@ -1,7 +1,6 @@
';
} else {
echo '';
}
-if (file_exists($rootdir.'common/themes/'.$_SESSION['theme'].'/images/rocksolidlight.png')) {
+if ((isset($_SESSION['theme'])) && file_exists($rootdir.'common/themes/'.$_SESSION['theme'].'/images/rocksolidlight.png')) {
$header_image=$rootdir.'common/themes/'.$_SESSION['theme'].'/images/rocksolidlight.png';
} else {
$header_image=$rootdir.'common/images/rocksolidlight.png';
@@ -61,7 +61,7 @@ if (file_exists($rootdir.'common/themes/'.$_SESSION['theme'].'/images/rocksolidl
';
echo '';
}
- $groupdisplay.="\n";
- flush();
- if(isset($userdata[$g->name])) {
- $subs[] = $groupdisplay;
- } else {
- $nonsubs[] = $groupdisplay;
+ if(isset($groupdisplay)) {
+ $groupdisplay.="\n";
+ flush();
+ if(isset($userdata[$g->name])) {
+ $subs[] = $groupdisplay;
+ } else {
+ $nonsubs[] = $groupdisplay;
+ }
}
} // END
foreach($subs as $sub) {
@@ -1090,6 +1092,10 @@ function group_display_name($gname)
function check_bbs_auth($username, $password) {
global $config_dir,$CONFIG;
+ if($username == '' && $password == '') {
+ return false;
+ }
+
$workpath = $config_dir."users/";
$username = trim(strtolower($username));
$userFilename = $workpath.$username;
diff --git a/Rocksolid_Light/rocksolid/overboard.php b/Rocksolid_Light/rocksolid/overboard.php
index cae9d4f..6927772 100755
--- a/Rocksolid_Light/rocksolid/overboard.php
+++ b/Rocksolid_Light/rocksolid/overboard.php
@@ -322,7 +322,7 @@ function display_threads($threads, $oldest) {
}
function show_overboard_header($grouplist) {
- global $text_thread, $text_article, $file_index, $file_thread, $user_time;
+ global $text_thread, $frame, $text_article, $file_index, $file_thread, $user_time;
if (isset($_GET['thisgroup'])) {
echo '';
diff --git a/Rocksolid_Light/rocksolid/thread.php b/Rocksolid_Light/rocksolid/thread.php
index a407a87..74fba6f 100644
--- a/Rocksolid_Light/rocksolid/thread.php
+++ b/Rocksolid_Light/rocksolid/thread.php
@@ -66,7 +66,9 @@ if(isset($frames_on) && $frames_on === true) {
$userdata[$group] = time();
file_put_contents($userfile, serialize($userdata));
}
-
+ if(!isset($_SERVER['REQUEST_STRING'])) {
+ $_SERVER['REQUEST_STRING'] = '';
+ }
$_SESSION['return_page'] = $_SERVER['REQUEST_URI'].$_SERVER['REQUEST_STRING'];
echo '';
diff --git a/Rocksolid_Light/spoolnews/files.php b/Rocksolid_Light/spoolnews/files.php
index 7e51f21..7d0bd47 100644
--- a/Rocksolid_Light/spoolnews/files.php
+++ b/Rocksolid_Light/spoolnews/files.php
@@ -11,7 +11,7 @@ include "newsportal.php";
$offset=$CONFIG['timezone'];
}
- if($_REQUEST['command'] == 'Show' && password_verify($CONFIG['thissitekey'], $_REQUEST['key'])) {
+ if((isset($_REQUEST['command']) && $_REQUEST['command'] == 'Show') && password_verify($CONFIG['thissitekey'], $_REQUEST['key'])) {
$getfilename = $spooldir.'/upload/'.$_REQUEST['showfile'];
$getfh = fopen($getfilename, "rb");
$getfile = fread($getfh, filesize($getfilename));
@@ -30,8 +30,6 @@ include "head.inc";
echo '';
echo '';
echo ' | ';
@@ -39,8 +37,6 @@ include "head.inc";
echo '';
echo '';
echo ' | ';
@@ -67,8 +63,6 @@ include "head.inc";
echo ' |