updated system reference, install script
This commit is contained in:
parent
48de23465d
commit
0d5e85ccd5
6
api.php
6
api.php
@ -1,13 +1,9 @@
|
||||
<?php
|
||||
require_once 'lib/system/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'lib/autoload.inc';
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
\SYSTEM\system::include_ExceptionShortcut();
|
||||
\SYSTEM\system::include_ResultShortcut();
|
||||
\SYSTEM\system::register_errorhandler_dbwriter();
|
||||
\SYSTEM\system::register_errorhandler_jsonoutput();
|
||||
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify','api_neopolimatrix',array_merge($_POST,$_GET));
|
||||
new \SYSTEM\LOG\COUNTER("API was called sucessfully.");
|
||||
@ -1,14 +1,9 @@
|
||||
<?php
|
||||
require_once 'lib/system/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'lib/font_awesome/autoload.inc';
|
||||
require_once 'lib/autoload.inc';
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
\SYSTEM\system::include_ExceptionShortcut();
|
||||
\SYSTEM\system::include_ResultShortcut();
|
||||
\SYSTEM\system::register_errorhandler_dbwriter();
|
||||
\SYSTEM\system::register_errorhandler_jsonoutput();
|
||||
|
||||
echo \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_neopolimatrix', array_merge($_POST,$_GET), 1, true, true);
|
||||
new \SYSTEM\LOG\COUNTER("Page was called sucessfully.");
|
||||
3
lib/autoload.inc
Normal file
3
lib/autoload.inc
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
require_once 'system/autoload.inc';
|
||||
require_once 'font_awesome/autoload.inc';
|
||||
@ -1 +1 @@
|
||||
Subproject commit 82e4cca8a2f5732fd0730a6971824d4eebcb4334
|
||||
Subproject commit b004c49d8ef8202c23d2e33642819722469bc51f
|
||||
@ -2,4 +2,5 @@
|
||||
require_once dirname(__FILE__).'/path/autoload.inc';
|
||||
require_once dirname(__FILE__).'/page/autoload.inc';
|
||||
require_once dirname(__FILE__).'/files/autoload.inc';
|
||||
require_once dirname(__FILE__).'/api/autoload.inc';
|
||||
require_once dirname(__FILE__).'/api/autoload.inc';
|
||||
require_once dirname(__FILE__).'/sql/autoload.inc';
|
||||
5
neopolimatrix/path/PSQL.php
Normal file
5
neopolimatrix/path/PSQL.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class PSQL extends \SYSTEM\PATH {
|
||||
public static function getPath(){
|
||||
return \SYSTEM\C_ROOT.'neopolimatrix/sql/'.\SYSTEM\C_SUBPATH;}
|
||||
}
|
||||
10
neopolimatrix/sql/DATA_NEOPOLIMATRIX.php
Normal file
10
neopolimatrix/sql/DATA_NEOPOLIMATRIX.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace SQL;
|
||||
class DATA_NEOPOLIMATRIX extends \SYSTEM\DB\QI {
|
||||
public static function get_class(){return \get_class();}
|
||||
public static function files_mysql(){
|
||||
return array( \SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_page.sql'),
|
||||
\SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_api.sql'),
|
||||
\SYSTEM\SERVERPATH(new \PSQL(),'/mysql/system_text.sql'));
|
||||
}
|
||||
}
|
||||
4
neopolimatrix/sql/autoload.inc
Normal file
4
neopolimatrix/sql/autoload.inc
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SQL');
|
||||
|
||||
\SYSTEM\SQL\setup::register('SQL\\DATA_NEOPOLIMATRIX');
|
||||
3
neopolimatrix/sql/mysql/system_api.sql
Normal file
3
neopolimatrix/sql/mysql/system_api.sql
Normal file
@ -0,0 +1,3 @@
|
||||
INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (124, 1, 3, 1, 'list', 'tag', 'STRING');
|
||||
INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (126, 1, 2, 1, 'search', 'param', 'STRING');
|
||||
INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (125, 1, 2, 1, 'article', 'id', 'STRING');
|
||||
4
neopolimatrix/sql/mysql/system_page.sql
Normal file
4
neopolimatrix/sql/mysql/system_page.sql
Normal file
@ -0,0 +1,4 @@
|
||||
INSERT INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (10, 1, '', 'article', -1, 0, 0, '#div_content', './?page=article&id=${article}', 'init_article', 'default_article');
|
||||
INSERT INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (20, 1, '', 'impressum', -1, 0, 0, '#div_content', './?page=impressum', 'init_impressum', 'default_impressum');
|
||||
INSERT INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (30, 1, '', 'search', -1, 0, 0, '#div_content', './?page=search¶m=${param}', 'init_search', 'default_search');
|
||||
INSERT INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (40, 1, '', 'start', -1, 0, 0, '#div_content', './?page=list&tag=${tag}', 'init_start', 'default_list');
|
||||
196
neopolimatrix/sql/mysql/system_text.sql
Normal file
196
neopolimatrix/sql/mysql/system_text.sql
Normal file
File diff suppressed because one or more lines are too long
9
sai.php
9
sai.php
@ -1,13 +1,8 @@
|
||||
<?php
|
||||
require_once 'lib/system/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
SYSTEM\system::include_ExceptionShortcut(); //allow ERROR() instead of \SYSTEM\LOG\ERROR()
|
||||
SYSTEM\system::include_ResultShortcut(); //allow JsonResult() instead of \SYSTEM\LOG\JsonResult()
|
||||
SYSTEM\system::register_errorhandler_dbwriter(); //write errors to database (must be first errorhandler to register)
|
||||
SYSTEM\system::register_errorhandler_jsonoutput(); //print errors as json to caller
|
||||
|
||||
$sai = new SYSTEM\SAI\saigui();
|
||||
echo $sai->html();
|
||||
echo (new SYSTEM\SAI\saigui())->html();
|
||||
8
setup.php
Normal file
8
setup.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
require_once 'lib/autoload.inc'; //SYSTEM Classes
|
||||
require_once 'neopolimatrix/autoload.inc'; //Project Classes
|
||||
require_once '/home/web/web/config/get_config.php';
|
||||
|
||||
\SYSTEM\system::start(\WEBCRAFT\get_config(dirname(__FILE__)));
|
||||
|
||||
echo \SYSTEM\SQL\setup::install();
|
||||
Loading…
x
Reference in New Issue
Block a user