missing files
This commit is contained in:
parent
bef6d3a6dd
commit
d3d6218b2c
19
index.php
Normal file
19
index.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
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, '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')));
|
||||
|
||||
$page = new \SYSTEM\PAGE\PageApi(new SYSTEM\verifyclass(), new PageApi());
|
||||
echo $page->CALL(array_merge($_POST,$_GET))->html();
|
||||
4
redestoff/autoload.inc.php
Normal file
4
redestoff/autoload.inc.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
require_once dirname(__FILE__).'/path/register_path_classes.php';
|
||||
require_once dirname(__FILE__).'/page/register_page_classes.php';
|
||||
8
redestoff/page/PageApi.php
Normal file
8
redestoff/page/PageApi.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class PageApi extends \SYSTEM\PAGE\PageClass {
|
||||
|
||||
public static function default_page(){
|
||||
return new default_page();
|
||||
}
|
||||
}
|
||||
8
redestoff/page/default_page/default_page.php
Normal file
8
redestoff/page/default_page/default_page.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class default_page extends SYSTEM\PAGE\Page {
|
||||
public function html(){
|
||||
$vars = array();
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/redestoff.html'), $vars);
|
||||
}
|
||||
}
|
||||
6
redestoff/page/register_page_classes.php
Normal file
6
redestoff/page/register_page_classes.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$autoload = SYSTEM\autoload::getInstance();
|
||||
|
||||
$autoload->registerFolder(dirname(__FILE__),'');
|
||||
$autoload->registerFolder(dirname(__FILE__).'/default_page','');
|
||||
5
redestoff/path/PPAGE.php
Normal file
5
redestoff/path/PPAGE.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class PPAGE extends \SYSTEM\PATH {
|
||||
public static function getPath(){
|
||||
return \SYSTEM\C_ROOT.'redestoff/page/'.\SYSTEM\C_SUBPATH;}
|
||||
}
|
||||
5
redestoff/path/register_path_classes.php
Normal file
5
redestoff/path/register_path_classes.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
$autoload = SYSTEM\autoload::getInstance();
|
||||
|
||||
$autoload->registerFolder(dirname(__FILE__),'');
|
||||
Loading…
x
Reference in New Issue
Block a user