summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globe.php10
-rw-r--r--index.php13
2 files changed, 16 insertions, 7 deletions
diff --git a/globe.php b/globe.php
index 760a253..a251afd 100644
--- a/globe.php
+++ b/globe.php
@@ -1,13 +1,9 @@
<?PHP
date_default_timezone_set('America/New_York');
-if (!session_id())
- session_start();
-//session_regenerate_id();
-
-include_once "includes/sqlEmbedded.php";
+if (!session_id()) session_start();
+$accepted = isset($_SESSION['accepted']) && $_SESSION['accepted'] == 1;
function LogError($error) {
-
$today = date("Y-m-d H:i:s");
$fd = fopen("includes/errorlogs.txt", "a");
fwrite($fd, "$today:$error\n");
@@ -230,4 +226,4 @@ function EmailError($data, $subject = "Pathery Error Report") {
Return $mail_sent;
}
-?>
+?> \ No newline at end of file
diff --git a/index.php b/index.php
index ad5ed0b..0fa0b8a 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,18 @@
<?PHP
ob_start("ob_gzhandler");
+
+//$showUpdatePage = true;
+$showUpdatePage = false;
+if ($showUpdatePage AND $_GET['cu'] !== "true") {
+ require("updating.php");
+ exit;
+}
+
+include_once ('globe.php');
+include_once ('./includes/header.php');
+include_once ('./includes/sqlEmbedded.php');
+
+
//Start session
if (!session_id()) session_start();
//session_regenerate_id();