mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-27 11:20:54 +00:00
8f2f0a3ad7
--HG-- branch : quitta-gsoc-2013
35 lines
872 B
PHP
35 lines
872 B
PHP
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 'on');
|
|
require( '../config.php' );
|
|
require( '../../ams_lib/libinclude.php' );
|
|
//default page
|
|
$page = 'login';
|
|
|
|
|
|
if ( isset( $_POST["function"] ) ){
|
|
require( "inc/" . $_POST["function"] . ".php" );
|
|
$tempReturn = $_POST["function"]();
|
|
}
|
|
|
|
function loadpage ( $page ){
|
|
require_once( 'autoload/' . $page . '.php' );
|
|
}
|
|
|
|
if ( isset( $_GET["page"] ) ){
|
|
$page = $_GET["page"];
|
|
}
|
|
|
|
//Page Handling
|
|
if($page == 'login' || $page == 'register'){
|
|
$no_visible_elements = 'TRUE';
|
|
}
|
|
|
|
if ( isset($functionReturn) ){
|
|
$return = array_merge(array( 'permission' => 1, 'no_visible_elements' => $no_visible_elements ),$functionReturn);
|
|
}else{
|
|
$return = array( 'permission' => 1, 'no_visible_elements' => $no_visible_elements );
|
|
}
|
|
//print_r($return);
|
|
|
|
helpers :: loadTemplate( $page , $return );
|