diff --git a/test.php b/test.php
index 5bf0e71..295451d 100644
--- a/test.php
+++ b/test.php
@@ -13,7 +13,7 @@ echo "Test date, time & microtime:
".date("jS M Y g:i:sa")." (".microt
$success = 0;
-echo 'TEST 1 of 3
PHP Version:
ICEcoder needs at least PHP 5.0, tho 5.3 and above is recommended:
';
+echo 'TEST 1 of 3: PHP Version:
ICEcoder needs at least PHP 5.0, tho 5.3 and above is recommended:
';
echo "Your PHP Version: ".phpversion()."
";
echo 'TEST RESULT: ';
@@ -28,9 +28,9 @@ echo "
";
if(!isset($_SESSION)) {@session_start();}
-echo 'TEST 2 of 3
Sessions:
These values should all be the same:
';
+echo 'TEST 2 of 3: Sessions:
These values should all be the same:
';
echo 'SESSION, BEFORE SET:
'.$_SESSION["string"]."
";
-if (!isset($_SESSION["string"])) {
+if (!isset($_GET["string"])) {
$_SESSION["string"] = md5(uniqid(mt_rand(), true));
header("Location: test.php?string=".$_SESSION["string"]);
echo "";
@@ -38,8 +38,8 @@ if (!isset($_SESSION["string"])) {
}
echo 'SESSION, AFTER SET:
'.$_SESSION["string"]."
";
-echo 'GET:
'.str_replace("<", "<", str_replace("<", "<", $_GET["string"]))."
";
-echo 'REQUEST:
'.str_replace("<", "<", str_replace("<", "<", $_REQUEST["string"]))."
";
+echo 'GET:
'.str_replace("<", "<", str_replace(">", ">", $_GET["string"]))."
";
+echo 'REQUEST:
'.str_replace("<", "<", str_replace(">", ">", $_REQUEST["string"]))."
";
echo '
...and hitting this button shouldn\'t change the values:
';
echo 'Reload page with GET param
';
echo "
";
@@ -55,10 +55,8 @@ echo "
";
-echo 'TEST 3 of 3
Includes:
Attempt to include settings file:
';
-
+echo 'TEST 3 of 3: Includes:
Attempt to include settings file:
';
$configSettings = 'config___settings.php';
-$configUsersTemplate = 'config___users-template.php';
// Load config settings
include(dirname(__FILE__)."/lib/".$configSettings);
@@ -77,6 +75,7 @@ echo "
";
echo "Overall Test result:
";
echo $success." of 3 tests passed successfully
";
?>
+