aboutsummaryrefslogtreecommitdiff
path: root/header.inc.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-03 14:00:33 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-03 14:00:33 +0000
commit29422fa55379aa61a61019b832c83dab6d450264 (patch)
treee5884ce6fed2cf1d02165a1b5667b99cd80262e5 /header.inc.php
parentb8b1d06b2d899658fae64d0de506439ca0ea067c (diff)
downloadsemanticscuttle-29422fa55379aa61a61019b832c83dab6d450264.tar.gz
semanticscuttle-29422fa55379aa61a61019b832c83dab6d450264.tar.bz2
move files to new locations
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@386 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'header.inc.php')
-rw-r--r--header.inc.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/header.inc.php b/header.inc.php
deleted file mode 100644
index 024cb06..0000000
--- a/header.inc.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-if(!file_exists(dirname(__FILE__) .'/config.inc.php')) {
- die('Please copy "config.inc.php.dist" to "config.inc.php"');
-}
-
-// 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
-
-
-// Debug Management using constants
-if(DEBUG_MODE) {
- ini_set('display_errors', '1');
- ini_set('mysql.trace_mode', '1');
- error_reporting(E_ALL);
-} else {
- ini_set('display_errors', '0');
- ini_set('mysql.trace_mode', '0');
- error_reporting(0);
-}
-
-// 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');
-
-
-// 3 // Third requirements part which import functions from includes/ directory
-
-// UTF-8 functions
-require_once(dirname(__FILE__) .'/includes/utf8.php');
-
-// Translation
-require_once(dirname(__FILE__) .'/includes/php-gettext/gettext.inc');
-$domain = 'messages';
-T_setlocale(LC_MESSAGES, $locale);
-T_bindtextdomain($domain, dirname(__FILE__) .'/locales');
-T_bind_textdomain_codeset($domain, 'UTF-8');
-T_textdomain($domain);
-
-// 4 // Session
-session_start();
-
-// 5 // Create mandatory services and objects
-$userservice =& ServiceFactory::getServiceInstance('UserService');
-$currentUser = $userservice->getCurrentObjectUser();
-
-$templateservice =& ServiceFactory::getServiceInstance('TemplateService');
-$tplVars = array();
-$tplVars['currentUser'] = $currentUser;
-$tplVars['userservice'] = $userservice;
-
-// 6 // Force UTF-8 behaviour for server (cannot be move into top.inc.php which is not included into every file)
-header('Content-Type: text/html; charset=utf-8');
-?>