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