summaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/create-testbookmarks.php5
-rw-r--r--scripts/create-testuser.php5
2 files changed, 2 insertions, 8 deletions
diff --git a/scripts/create-testbookmarks.php b/scripts/create-testbookmarks.php
index d92a007..cbacb85 100644
--- a/scripts/create-testbookmarks.php
+++ b/scripts/create-testbookmarks.php
@@ -2,10 +2,7 @@
/**
* Simply create some test bookmarks
*/
-$_SERVER['HTTP_HOST'] = 'http://localhost/';
-define('UNIT_TEST_MODE', true);
-
-require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
+require_once dirname(__FILE__) . '/../src/SemanticScuttle/header-standalone.php';
$us = SemanticScuttle_Service_Factory::get('User');
$uid = $us->addUser('dummy', 'dummy', 'dummy@example.org');
diff --git a/scripts/create-testuser.php b/scripts/create-testuser.php
index 4fa168b..0a74f6c 100644
--- a/scripts/create-testuser.php
+++ b/scripts/create-testuser.php
@@ -2,10 +2,7 @@
/**
* Simply create a test user in the database with "test" as password
*/
-$_SERVER['HTTP_HOST'] = 'http://localhost/';
-define('UNIT_TEST_MODE', true);
-
-require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
+require_once dirname(__FILE__) . '/../src/SemanticScuttle/header-standalone.php';
$us = SemanticScuttle_Service_Factory::get('User');
$us->addUser('test', 'test', 'test@example.org');