2013-06-06 06:04:46 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require( '../config.php' );
|
|
|
|
require( '../../ams_lib/libinclude.php' );
|
|
|
|
|
2013-06-07 11:05:28 +00:00
|
|
|
if ( isset( $_POST["function"] ) ){
|
|
|
|
require( "inc/" . $_POST["function"] . ".php" );
|
|
|
|
$return = $_POST["function"]();
|
|
|
|
}
|
2013-06-06 06:04:46 +00:00
|
|
|
|
2013-06-07 11:05:28 +00:00
|
|
|
function loadpage ( $page ){
|
|
|
|
require_once( 'autoload/' . $page . '.php' );
|
|
|
|
}
|
2013-06-06 06:04:46 +00:00
|
|
|
|
|
|
|
$page = 'home';
|
2013-06-07 11:05:28 +00:00
|
|
|
if ( isset( $_GET["page"] ) ){
|
|
|
|
$page = $_GET["page"];
|
|
|
|
}
|
|
|
|
|
|
|
|
helpers :: loadTemplate( 'register' , $return );
|