mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 08:28:44 +00:00
1c4bb138e9
--HG-- branch : quitta-gsoc-2013
27 lines
667 B
PHP
27 lines
667 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 = 'login';
|
|
if ( isset( $_GET["page"] ) ){
|
|
$page = $_GET["page"];
|
|
}
|
|
|
|
//Page Handling
|
|
if($page == 'login' || $page == 'register'){
|
|
$no_visible_elements = 'TRUE';
|
|
}
|
|
// temporary set permission to 2 which = admin mode
|
|
$return = array( 'permission' => 1, 'no_visible_elements' => $no_visible_elements );
|
|
|
|
helpers :: loadTemplate( $page , $return );
|