go trainer path update

This commit is contained in:
Ulf Gebhardt 2016-03-26 03:21:09 +01:00
parent f332b0acc1
commit 6f12906209
41 changed files with 25 additions and 15 deletions

View File

@ -1,9 +1,9 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'go-trainer/autoload.inc'; //Project Classes
require_once 'go_trainer/autoload.inc'; //Project Classes
require_once '/home/web/web/config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_demo_basic',array_merge($_POST,$_GET));
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_go_trainer',array_merge($_POST,$_GET));
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");

View File

@ -2,7 +2,7 @@
namespace WEBCRAFT;
function basic_config(){
return 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/test/go-trainer/'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL, 'http://www.mojotrollz.eu/web/test/go_trainer/'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH, '/server/path/to/project/'),
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'),
@ -10,9 +10,9 @@ function basic_config(){
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_USER, 'host'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_PASSWORD, 'db_pw'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_DBNAME, 'db_name'),
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT, 'go-trainer'),
array(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT, 'go_trainer'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, 'lib/system/'),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS, array('deDE','enUS')),
array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DEFAULT_LANG, 'deDE'),
array(\SYSTEM\CONFIG\config_ids::SYS_CRON_LOG2SQLITE_PATH, '/server/üath/to/projectlogextraction/'));
array(\SYSTEM\CONFIG\config_ids::SYS_CRON_LOG2SQLITE_PATH, '/server/path/to/go_trainer/'));
}

View File

@ -1,5 +1,5 @@
<?php
class page_demo_basic extends \SYSTEM\API\api_default {
class page_go_trainer extends \SYSTEM\API\api_default {
public static function get_apigroup(){
return 1;}
public static function get_class($params = null){

View File

@ -1,5 +1,5 @@
<?php
class PPAGE extends \SYSTEM\PATH {
public function __construct($subpath = '') {
parent::__construct(new \SYSTEM\PROOT(), 'go-trainer/page/', $subpath);}
parent::__construct(new \SYSTEM\PROOT(), 'go_trainer/page/', $subpath);}
}

View File

@ -1,5 +1,5 @@
<?php
class PSAI extends \SYSTEM\PATH {
public function __construct($subpath = '') {
parent::__construct(new \SYSTEM\PROOT(), 'go-trainer/sai/', $subpath);}
parent::__construct(new \SYSTEM\PROOT(), 'go_trainer/sai/', $subpath);}
}

View File

@ -1,5 +1,5 @@
<?php
class PSQL extends \SYSTEM\PATH {
public function __construct($subpath = '') {
parent::__construct(new \SYSTEM\PROOT(), 'go-trainer/sql/', $subpath);}
parent::__construct(new \SYSTEM\PROOT(), 'go_trainer/sql/', $subpath);}
}

View File

@ -1,9 +1,9 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'go-trainer/autoload.inc'; //Project Classes
require_once 'go_trainer/autoload.inc'; //Project Classes
require_once '/home/web/web/config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_demo_basic', array_merge($_POST,$_GET), 1, false, true);
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_go_trainer', array_merge($_POST,$_GET), 1, false, true);
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");

View File

@ -1,5 +1,15 @@
auxiliary.org-netbeans-modules-css-prep.less_2e_compiler_2e_options=
auxiliary.org-netbeans-modules-css-prep.less_2e_enabled=false
auxiliary.org-netbeans-modules-css-prep.less_2e_mappings=/less:/css
auxiliary.org-netbeans-modules-css-prep.sass_2e_compiler_2e_options=
auxiliary.org-netbeans-modules-css-prep.sass_2e_enabled=false
auxiliary.org-netbeans-modules-css-prep.sass_2e_mappings=/scss:/css
auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
include.path=${php.global.include.path}
browser.reload.on.save=true
code.analysis.excludes=
ignore.path=
include.path=\
${php.global.include.path}
php.version=PHP_56
source.encoding=UTF-8
src.dir=.

View File

@ -3,7 +3,7 @@
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>go-trainer</name>
<name>go_trainer</name>
</data>
</configuration>
</project>

View File

@ -1,6 +1,6 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'go-trainer/autoload.inc'; //Project Classes
require_once 'go_trainer/autoload.inc'; //Project Classes
require_once '/home/web/web/config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));

View File

@ -1,6 +1,6 @@
<?php
require_once 'lib/autoload.inc'; //SYSTEM Classes
require_once 'go-trainer/autoload.inc'; //Project Classes
require_once 'go_trainer/autoload.inc'; //Project Classes
require_once '/home/web/web/config/get_config.php';
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));