mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
0b8c4968e9
--HG-- branch : rc-botanic-webdev
23 lines
553 B
PHP
23 lines
553 B
PHP
<?php
|
|
|
|
require( '../config.php' );
|
|
require( '../../ams_lib/libinclude.php' );
|
|
|
|
if ( isset( $_POST["function"] ) ){
|
|
require( "inc/" . $_POST["function"] . ".php" );
|
|
$return = $_POST["function"]();
|
|
}
|
|
|
|
function loadpage ( $page ){
|
|
require_once( 'autoload/' . $page . '.php' );
|
|
}
|
|
|
|
$page = 'home';
|
|
if ( isset( $_GET["page"] ) ){
|
|
$page = $_GET["page"];
|
|
}
|
|
|
|
// temporary set permission to 1 which = admin mode
|
|
$return = array( 'permission' => 1, 'no_visible_elements' => 'TRUE' );
|
|
|
|
helpers :: loadTemplate( $page , $return );
|