From 0075ff484fe66005a86d8b4fd80d49e5df2d827e Mon Sep 17 00:00:00 2001 From: rylon Date: Wed, 26 Jun 2013 18:05:44 +0200 Subject: [PATCH] danube multilang(huHU),system reference updated --- api.php | 11 ++--------- config.php | 15 +++++++++++++++ danube/page/default_page/default_page.php | 5 ++--- index.php | 11 ++--------- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 config.php diff --git a/api.php b/api.php index 76b13bc..1419d0f 100644 --- a/api.php +++ b/api.php @@ -5,15 +5,8 @@ require_once 'danube/autoload.inc.php'; require_once '../system/log/register_exception_shortcut.php'; //allow ERROR() instead of \SYSTEM\LOG\ERROR() require_once '../system/log/register_errorhandler_jsonoutput.php'; //print errors as json to caller -SYSTEM\system::start(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/danube/'), - array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/danube/'), - 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_danube'))); +require_once 'config.php'; +SYSTEM\system::start($danube_config); $api = new \SYSTEM\API\Api (new SYSTEM\verifyclass(), new ApiClass()); echo $api->CALL(array_merge($_POST,$_GET)); \ No newline at end of file diff --git a/config.php b/config.php new file mode 100644 index 0000000..eb41157 --- /dev/null +++ b/config.php @@ -0,0 +1,15 @@ +CALL(array_merge($_POST,$_GET))->html(); \ No newline at end of file