diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-03 21:52:30 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-03 21:52:30 +0000 |
commit | d5f09b7e4d802cdc2d5f3f876c48ea918c961488 (patch) | |
tree | aa1eb37219c17bef03b1515e5074b4743f89a9a3 /src/SemanticScuttle/header.php | |
parent | b7345f833dea849e94f2ce23fdbe6ab58ba98be3 (diff) | |
download | semanticscuttle-d5f09b7e4d802cdc2d5f3f876c48ea918c961488.tar.gz semanticscuttle-d5f09b7e4d802cdc2d5f3f876c48ea918c961488.tar.bz2 |
make the application work again
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@388 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/header.php')
-rw-r--r-- | src/SemanticScuttle/header.php | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php index 024cb06..b01679c 100644 --- a/src/SemanticScuttle/header.php +++ b/src/SemanticScuttle/header.php @@ -1,12 +1,17 @@ <?php -if(!file_exists(dirname(__FILE__) .'/config.inc.php')) { - die('Please copy "config.inc.php.dist" to "config.inc.php"'); +if(!file_exists(dirname(__FILE__) .'/../../data/config.php')) { + die('Please copy "config.php.dist" to "config.php"'); } +set_include_path( + get_include_path() . PATH_SEPARATOR + . dirname(__FILE__) . '/../' +); // 1 // First requirements part (before debug management) -require_once(dirname(__FILE__) .'/config.default.inc.php'); -require_once(dirname(__FILE__) .'/config.inc.php'); -require_once(dirname(__FILE__) .'/constants.inc.php'); // some constants are based on variables from config file +$datadir = dirname(__FILE__) . '/../../data/'; +require_once($datadir . '/config.default.php'); +require_once($datadir . '/config.php'); +require_once 'SemanticScuttle/constants.php'; // some constants are based on variables from config file // Debug Management using constants @@ -21,17 +26,18 @@ if(DEBUG_MODE) { } // 2 // Second requirements part which could display bugs (must come after debug management) -require_once(dirname(__FILE__) .'/services/servicefactory.php'); -require_once(dirname(__FILE__) .'/functions.inc.php'); +require_once 'SemanticScuttle/Service.php'; +require_once 'SemanticScuttle/Service/Factory.php'; +require_once 'SemanticScuttle/functions.php'; // 3 // Third requirements part which import functions from includes/ directory // UTF-8 functions -require_once(dirname(__FILE__) .'/includes/utf8.php'); +require_once 'SemanticScuttle/utf8.php'; // Translation -require_once(dirname(__FILE__) .'/includes/php-gettext/gettext.inc'); +require_once 'php-gettext/gettext.inc'; $domain = 'messages'; T_setlocale(LC_MESSAGES, $locale); T_bindtextdomain($domain, dirname(__FILE__) .'/locales'); @@ -42,10 +48,10 @@ T_textdomain($domain); session_start(); // 5 // Create mandatory services and objects -$userservice =& ServiceFactory::getServiceInstance('UserService'); +$userservice =SemanticScuttle_Service_Factory::getServiceInstance('User'); $currentUser = $userservice->getCurrentObjectUser(); -$templateservice =& ServiceFactory::getServiceInstance('TemplateService'); +$templateservice =SemanticScuttle_Service_Factory::getServiceInstance('Template'); $tplVars = array(); $tplVars['currentUser'] = $currentUser; $tplVars['userservice'] = $userservice; |