small fixes of last night, still have to figure out a way to get the mkdir warning dissapear!

--HG--
branch : quitta-gsoc-2013
This commit is contained in:
Quitta 2013-06-19 21:05:12 +02:00
parent fb622a9eb7
commit c22e1de52d
3 changed files with 7 additions and 5 deletions

View file

@ -44,9 +44,9 @@ class Helpers{
foreach ( $variables[$template] as $key => $value ){
$smarty -> assign( $key, $value );
}
if( $vars['permission'] == 2 ){
if( isset($vars['permission']) && $vars['permission'] == 2 ){
$inherited = "extends:layout_admin.tpl|";
}else if($vars['permission'] == 1){
}else if( isset($vars['permission']) && $vars['permission'] == 1){
$inherited = "extends:layout_user.tpl|";
}else{
$inherited ="";

View file

@ -25,6 +25,7 @@ function add_user(){
$result['prevEmail'] = $_POST["Email"];
$result['no_visible_elements'] = 'TRUE';
helpers :: loadtemplate( 'register', $result);
exit;
}
}

View file

@ -1,5 +1,6 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
require( '../config.php' );
require( '../../ams_lib/libinclude.php' );
//default page
@ -9,11 +10,11 @@ $page = 'login';
if ( isset( $_POST["function"] ) ){
require( "inc/" . $_POST["function"] . ".php" );
$tempReturn = $_POST["function"]();
$functionReturn = array_merge($tempReturn,$_POST);
/*$functionReturn = array_merge($tempReturn,$_POST);
if ( isset($_POST["callBack"])){
$page = $_POST["callBack"];
}
}*/
}
function loadpage ( $page ){