From 7dd863bba35391c84591c407e5d6df7e1143924b Mon Sep 17 00:00:00 2001 From: rylon Date: Sat, 17 Jan 2015 21:21:28 +0100 Subject: [PATCH] neo working --- .htaccess | 3 ++ api.php | 2 +- config.php | 35 +++++++++---------- index.php | 2 +- neopolimatrix/autoload.inc | 6 ++-- neopolimatrix/files/autoload.inc | 2 ++ neopolimatrix/files/log/dummy | 0 .../page/default_page/default_page.php | 5 +++ neopolimatrix/page/page_neopolimatrix.php | 9 ++--- ...register_path_classes.php => autoload.inc} | 0 sai.php | 2 +- system | 2 +- 12 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 .htaccess create mode 100644 neopolimatrix/files/autoload.inc create mode 100644 neopolimatrix/files/log/dummy create mode 100644 neopolimatrix/page/default_page/default_page.php rename neopolimatrix/path/{register_path_classes.php => autoload.inc} (100%) diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..91de882 --- /dev/null +++ b/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteCond %{HTTP_HOST} !^www\. +RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L] \ No newline at end of file diff --git a/api.php b/api.php index 1a14d4a..997c65a 100644 --- a/api.php +++ b/api.php @@ -1,6 +1,6 @@ © WebCraft Media 2013'), - array(config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'system/'), - array(config_ids::SYS_CONFIG_LANGS, array('deDE')), - array(config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'), - array(config_ids::WEBCRAFT_BILLING_TOKEN, ''), - array(config_ids::SYS_CRON_LOG2SQLITE_PATH, '/home/web/webdir/neopolimatrix/neopolimatrix/files/log/')); \ No newline at end of file +$neopolimatrix_config=array(array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL, 'http://www.mojotrollz.eu/web/Neopolimatrix/'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/Neopolimatrix/'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE, \SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_MYS), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_HOST, '127.0.0.1'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PORT, ''), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_USER, 'mojotrolls_mysql'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'host_neopolimatrix'), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/img/logo.png'),//not working, cuz paths are not set yet! \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/default_page/img/logo.png')), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_BASEURL, 'http://www.mojotrollz.eu/web/Neopolimatrix/sai.php?'), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE, 'Neopolimatrix - Admin Bereich'), + array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, ' © WebCraft Media 2013'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'system/'), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS, array('deDE')), + array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'), + array(\SYSTEM\CONFIG\config_ids::SYS_CRON_LOG2SQLITE_PATH, '/home/web/webdir/Neopolimatrix/neopolimatrix/files/log/')); \ No newline at end of file diff --git a/index.php b/index.php index 0290853..093ea24 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@