update php base
This commit is contained in:
parent
58df833783
commit
7ae8ad0977
6
api.php
6
api.php
@ -1,9 +1,5 @@
|
||||
<?php
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'redestoff/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
require_once 'index.inc';
|
||||
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','\SYSTEM\API\api_system',array_merge($_POST,$_GET));
|
||||
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");
|
||||
19
config.php.dist
Normal file
19
config.php.dist
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace WEBCRAFT;
|
||||
function config($basepath){
|
||||
return array( array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_ERRORREPORTING, E_ALL | E_STRICT),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL, 'http://localhost/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, $basepath.'/'),
|
||||
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, 'mariadb'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PORT, ''),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_USER, 'web'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'SECRET'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'system'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT, 'redestoffmusik'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'lib/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_CONFIG_PATH_CACHE, $basepath.'/cache/'),
|
||||
array(\SYSTEM\CONFIG\config_ids::SYS_CRON_LOG2SQLITE_PATH, $basepath.'/log/'));
|
||||
}
|
||||
7
index.inc
Normal file
7
index.inc
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'uvote/autoload.inc'; //Project Classes
|
||||
require_once 'config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\config(dirname(__FILE__)));
|
||||
@ -1,9 +1,5 @@
|
||||
<?php
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'redestoff/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
require_once 'index.inc';
|
||||
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_redestoff', array_merge($_POST,$_GET), 1, false, true);
|
||||
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");
|
||||
6
sai.php
6
sai.php
@ -1,8 +1,4 @@
|
||||
<?php
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'redestoff/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
require_once 'index.inc';
|
||||
|
||||
echo (new SYSTEM\SAI\saigui())->html();
|
||||
@ -1,8 +1,4 @@
|
||||
<?php
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'redestoff/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
require_once 'index.inc';
|
||||
|
||||
echo \SYSTEM\SQL\setup::install();
|
||||
Loading…
x
Reference in New Issue
Block a user