uvote api
This commit is contained in:
parent
b7e8138d86
commit
e92f67e0c1
19
api.php
Normal file
19
api.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
require_once '../system/autoload.inc.php'; //SYSTEM Classes
|
||||
require_once 'uVote/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/uVote/'),
|
||||
array(SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/home/web/webdir/uVote/'),
|
||||
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_uVote')));
|
||||
|
||||
$api = new \SYSTEM\API\Api (new SYSTEM\verifyclass(), new ApiClass());
|
||||
echo $api->CALL(array_merge($_POST,$_GET));
|
||||
5
uVote/api/ApiClass.php
Normal file
5
uVote/api/ApiClass.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
class ApiClass extends \SYSTEM\API\apiloginclass {
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user