summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/config/session.php21
-rw-r--r--core/helpers/core_installer.php8
2 files changed, 24 insertions, 5 deletions
diff --git a/core/config/session.php b/core/config/session.php
index 56498316..1e3bcf9a 100644
--- a/core/config/session.php
+++ b/core/config/session.php
@@ -1,4 +1,23 @@
-<?php defined('SYSPATH') OR die('No direct access allowed.');
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2008 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
/**
* @package Session
*
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index f71bec6d..9dffeb8d 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -83,10 +83,10 @@ class core_installer {
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
$db->query("CREATE TABLE `sessions` (
- `session_id` varchar(127) NOT NULL,
- `last_activity` int(10) UNSIGNED NOT NULL,
- `data` text NOT NULL,
- PRIMARY KEY (`session_id`))
+ `session_id` varchar(127) NOT NULL,
+ `last_activity` int(10) UNSIGNED NOT NULL,
+ `data` text NOT NULL,
+ PRIMARY KEY (`session_id`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
$db->query("CREATE TABLE `vars` (