app menu - and a demo application 'tictac'
This commit is contained in:
parent
0bf8e418a8
commit
642a71ffde
4 changed files with 677 additions and 3 deletions
12
index.php
12
index.php
|
|
@ -113,6 +113,13 @@ else
|
|||
check_config($a);
|
||||
|
||||
|
||||
$arr = array('app_menu' => $a->apps);
|
||||
|
||||
call_hooks('app_menu', $arr);
|
||||
|
||||
$a->apps = $arr['app_menu'];
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* We have already parsed the server path into $->argc and $a->argv
|
||||
|
|
@ -132,10 +139,9 @@ else
|
|||
* further processing.
|
||||
*/
|
||||
|
||||
|
||||
if(strlen($a->module)) {
|
||||
if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) {
|
||||
include("addon/{$a->module}/{$a->module}.php");
|
||||
include_once("addon/{$a->module}/{$a->module}.php");
|
||||
if(function_exists($a->module . '_module'))
|
||||
$a->module_loaded = true;
|
||||
}
|
||||
|
|
@ -155,6 +161,8 @@ if(strlen($a->module)) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* initialise content region */
|
||||
|
||||
if(! x($a->page,'content'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue