aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-19 22:58:19 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-01-19 22:58:19 +0000
commita2b518b1b356264b7db7dacea25121b105c13107 (patch)
treecdcae179abbcc71ece076798fb45a52e298699b5 /src/SemanticScuttle
parent777f7f072c92bb2db3db393a7607fb68b5e5b56a (diff)
downloadsemanticscuttle-a2b518b1b356264b7db7dacea25121b105c13107.tar.gz
semanticscuttle-a2b518b1b356264b7db7dacea25121b105c13107.tar.bz2
special header file for standalone scripts
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@618 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/header-standalone.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/SemanticScuttle/header-standalone.php b/src/SemanticScuttle/header-standalone.php
new file mode 100644
index 0000000..cc1b0bd
--- /dev/null
+++ b/src/SemanticScuttle/header-standalone.php
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Load this file instead of header.php if you
+ * are using it in a standalone non-webserver script.
+ *
+ * SemanticScuttle - your social bookmark manager.
+ *
+ * PHP version 5.
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
+$_SERVER['HTTP_HOST'] = 'http://localhost/';
+define('UNIT_TEST_MODE', true);
+
+require_once dirname(__FILE__) . '/header.php';
+?> \ No newline at end of file