summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/config/config.php21
-rw-r--r--core/controllers/welcome.php11
-rw-r--r--core/views/welcome.html.php1
-rw-r--r--index.php1
-rw-r--r--modules/gallery_unit_test/controllers/test.php4
5 files changed, 25 insertions, 13 deletions
diff --git a/core/config/config.php b/core/config/config.php
index 94f22364..efd7b2e8 100644
--- a/core/config/config.php
+++ b/core/config/config.php
@@ -1,4 +1,23 @@
-<?php defined('SYSPATH') or die('No direct script access.');
+<?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.
+ */
+
/**
* Base path of the web site. If this includes a domain, eg: localhost/kohana/
* then a full URL will be used, eg: http://localhost/kohana/. If it only includes
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index a0b8d2c8..3329a402 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -1,5 +1,5 @@
-<?php
-/*
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2008 Bharat Mediratta
*
@@ -17,13 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
-/**
- * Enter Description Here
- * @package
- * @subpackage
- * @author Tim
- */
class Welcome_Controller extends Controller {
function Index() {
print new View('welcome.html');
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index 9757f6d5..da75ebcc 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -1,3 +1,4 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
<html>
<head>
<title>Gallery3 Scaffold</title>
diff --git a/index.php b/index.php
index ff3c5dda..a9310500 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
// Set this to true to disable demo/debugging controllers
define('IN_PRODUCTION', true);
diff --git a/modules/gallery_unit_test/controllers/test.php b/modules/gallery_unit_test/controllers/test.php
index 5f276bd5..f048ec4a 100644
--- a/modules/gallery_unit_test/controllers/test.php
+++ b/modules/gallery_unit_test/controllers/test.php
@@ -1,5 +1,5 @@
-<?php
-/*
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2008 Bharat Mediratta
*