summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/header-standalone.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/header-standalone.php')
-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