fixed uvote includes,fixed webcraft new api, fixed redestoff new api
This commit is contained in:
parent
56f62f6cfa
commit
db3a44d6fc
17
config.php
Normal file
17
config.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$redestoff_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/Redestoffmusik/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/Redestoffmusik/'),
|
||||
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'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG, '/web/system/sai/page/default_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.da-sense.de/test/?action=developer'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE, 'webcraft - Admin Area'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT, '<a href="http://www.mojotrollz.eu/web/webcraft/" target="_blank">danube</a>, © WebCraft Media 2013'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, '../system/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS, array('deDE', 'enUS')),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'));
|
||||
20
index.php
20
index.php
@ -2,18 +2,12 @@
|
||||
|
||||
require_once '../system/autoload.inc.php'; //SYSTEM Classes
|
||||
require_once 'redestoff/autoload.inc.php'; //Project Classes
|
||||
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/Redestoffmusik/'),
|
||||
array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/Redestoffmusik/'),
|
||||
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_unet')));
|
||||
require_once 'config.php';
|
||||
\SYSTEM\system::start($redestoff_config);
|
||||
\SYSTEM\system::include_ExceptionShortcut();
|
||||
\SYSTEM\system::include_ResultShortcut();
|
||||
\SYSTEM\system::register_errorhandler_dbwriter();
|
||||
\SYSTEM\system::register_errorhandler_jsonoutput();
|
||||
|
||||
$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\verifyclass(), new PageApi());
|
||||
echo $page->CALL(array_merge($_POST,$_GET))->html();
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','page_redestoff',array_merge($_POST,$_GET),1,false,true)->html();
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class PageApi extends \SYSTEM\PAGE\PageClass {
|
||||
class page_redestoff extends \SYSTEM\API\api_default {
|
||||
|
||||
public static function default_page(){
|
||||
return new default_page();
|
||||
@ -1,6 +1,3 @@
|
||||
<?php
|
||||
|
||||
$autoload = SYSTEM\autoload::getInstance();
|
||||
|
||||
$autoload->registerFolder(dirname(__FILE__),'');
|
||||
$autoload->registerFolder(dirname(__FILE__).'/default_page','');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_page','');
|
||||
@ -1,5 +1,2 @@
|
||||
<?php
|
||||
|
||||
$autoload = SYSTEM\autoload::getInstance();
|
||||
|
||||
$autoload->registerFolder(dirname(__FILE__),'');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
|
||||
Loading…
x
Reference in New Issue
Block a user