diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-06-05 22:55:43 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-06-05 22:55:43 -0700 |
commit | d64af3489dc17c011394b9facedacb0d27169e67 (patch) | |
tree | 7ab9debd1e84e19c2ef2bcf2f608061a742fd0ac | |
parent | be3f89c7581c9156c03f47f3d4f774b6a634afc3 (diff) | |
download | pathery-d64af3489dc17c011394b9facedacb0d27169e67.tar.xz |
Changes to $accepted and some includes moved around.
-rw-r--r-- | globe.php | 10 | ||||
-rw-r--r-- | index.php | 13 |
2 files changed, 16 insertions, 7 deletions
@@ -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 @@ -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();
|