diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8220a5c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/system"] + path = lib/system + url = git@mojotrollz.eu:system.git diff --git a/api.php b/api.php index 997c65a..e70e644 100644 --- a/api.php +++ b/api.php @@ -1,9 +1,9 @@ © WebCraft Media 2013'), - array(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL, '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_CRON_LOG2SQLITE_PATH, '/home/web/webdir/Neopolimatrix/neopolimatrix/files/log/')); \ No newline at end of file diff --git a/index.php b/index.php index 9d22170..18c9af7 100644 --- a/index.php +++ b/index.php @@ -1,13 +1,13 @@ html(); +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."); \ No newline at end of file diff --git a/lib/system b/lib/system new file mode 160000 index 0000000..90ce83b --- /dev/null +++ b/lib/system @@ -0,0 +1 @@ +Subproject commit 90ce83ba36c6081b1395b555575260cb13358693 diff --git a/neopolimatrix/page/default_page/default_page.php b/neopolimatrix/page/default_page/default_page.php index bce8b1c..31089c5 100644 --- a/neopolimatrix/page/default_page/default_page.php +++ b/neopolimatrix/page/default_page/default_page.php @@ -19,21 +19,12 @@ class default_page extends \SYSTEM\PAGE\Page { ''; } - /*public function generate_elementlist(){ - $result = ''; - $elements = elements::getAllElementsOfTag('%'); - foreach($elements as $element){ - $element['title'] = $element['id']; - $result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/element.tpl'), $element); - } - return $result; - }*/ - - public function html(){ - $vars = array(); - $vars['js'] = $this->js(); + public function html($_escaped_fragment_ = NULL){ + $vars = array(); + $vars['js'] = ''; + if(!$_escaped_fragment_){ + $vars['js'] = $this->js();} $vars['css'] = $this->css(); - //$vars['content'] = $this->generate_elementlist(); return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/default_page.tpl'), $vars); } } diff --git a/neopolimatrix/page/page_neopolimatrix.php b/neopolimatrix/page/page_neopolimatrix.php index 03d09eb..95091b4 100644 --- a/neopolimatrix/page/page_neopolimatrix.php +++ b/neopolimatrix/page/page_neopolimatrix.php @@ -1,20 +1,19 @@ html($_escaped_fragment_);} public static function page_list($filter=1){ - return new default_list($filter);} + return (new default_list($filter))->html();} public static function page_article($id){ - return new default_article($id);} + return (new default_article($id))->html();} public static function page_search($param){ - new SYSTEM\LOG\INFO($param); - return new default_search($param);} + return (new default_search($param))->html();} public static function page_impressum(){ - return new default_impressum();} + return (new default_impressum())->html();} } \ No newline at end of file diff --git a/sai.php b/sai.php index c4562c6..83253a4 100644 --- a/sai.php +++ b/sai.php @@ -1,9 +1,9 @@