update php base

This commit is contained in:
Ulf Gebhardt 2024-02-27 01:41:18 +01:00
parent 58df833783
commit 7ae8ad0977
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
6 changed files with 30 additions and 20 deletions

View 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','\SYSTEM\API\api_system',array_merge($_POST,$_GET));
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");

19
config.php.dist Normal file
View 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
View 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__)));

View 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.");

View File

@ -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();

View File

@ -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();