www-fix redestoff, rhein, webcraft, removed orgin *,

This commit is contained in:
Ulf Gebhardt 2014-06-02 01:53:31 +02:00
parent 0411574267
commit 8cadac437c
4 changed files with 6 additions and 5 deletions

3
.htaccess Normal file
View File

@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.fewo\-rhein\-zwbg\.de$ [NC]
RewriteRule ^(.*)$ http://www.fewo-rhein-zwbg.de/$1 [R=301,L]

View File

@ -1,6 +1,6 @@
<?php
$rhein_config = array( array(config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT),
array(config_ids::SYS_CONFIG_PATH_BASEURL, 'http://fewo-rhein-zwbg.de/'),
array(config_ids::SYS_CONFIG_PATH_BASEURL, 'http://www.fewo-rhein-zwbg.de/'),
array(config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/rhein/'),
array(config_ids::SYS_CONFIG_DB_TYPE, SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_MYS),
array(config_ids::SYS_CONFIG_DB_HOST, '127.0.0.1'),
@ -9,9 +9,9 @@ $rhein_config = array( array(config_ids::SYS_CONFIG_ERRORREPORTING,
array(config_ids::SYS_CONFIG_DB_PASSWORD, 'dajsabeaisvd345'),
array(config_ids::SYS_CONFIG_DB_DBNAME, 'host_rhein'),
array(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(config_ids::SYS_SAI_CONFIG_BASEURL, 'http://fewo-rhein-zwbg.de/sai.php?'),
array(config_ids::SYS_SAI_CONFIG_BASEURL, 'http://www.fewo-rhein-zwbg.de/sai.php?'),
array(config_ids::SYS_SAI_CONFIG_TITLE, 'Fewo Rhein - Admin Bereich'),
array(config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="http://fewo-rhein-zwbg.de/" target="_blank">fewo rhein</a> &copy; WebCraft Media 2013'),
array(config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="http://www.fewo-rhein-zwbg.de/" target="_blank">fewo rhein</a> &copy; 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'),

View File

@ -9,6 +9,5 @@ require_once 'config.php';
\SYSTEM\system::register_errorhandler_dbwriter();
\SYSTEM\system::register_errorhandler_jsonoutput();
header('Access-Control-Allow-Origin: *');
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_rhein', array_merge($_POST,$_GET), 1, false, true)->html();
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");

View File

@ -9,6 +9,5 @@ SYSTEM\system::include_ResultShortcut();
SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register)
SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller
header('Access-Control-Allow-Origin: *');
$sai = new SYSTEM\SAI\saigui();
echo $sai->html();