main php file changes

This commit is contained in:
Ulf Gebhardt 2024-02-25 06:41:39 +01:00
parent 7ab9545484
commit e78111befe
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
6 changed files with 28 additions and 8 deletions

View File

@ -1,5 +1,5 @@
<?php
require_once 'include.inc';
require_once 'index.inc';
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_uvote',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, 'uvote'),
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/'));
}

View File

@ -1,6 +1,7 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'uvote/autoload.inc'; //Project Classes
require_once '../../config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
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,5 +1,5 @@
<?php
require_once 'include.inc';
require_once 'index.inc';
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','page_uvote',array_merge($_POST,$_GET),1,false,true);
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");

View File

@ -1,4 +1,4 @@
<?php
require_once 'include.inc';
require_once 'index.inc';
echo (new SYSTEM\SAI\sai_gui())->html();

View File

@ -1,4 +1,4 @@
<?php
require_once 'include.inc';
require_once 'index.inc';
echo \SYSTEM\SQL\setup::install();