mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 17:59:03 +00:00
small fixes of last night, still have to figure out a way to get the mkdir warning dissapear!
This commit is contained in:
parent
0fd279875f
commit
599150292a
3 changed files with 7 additions and 5 deletions
|
@ -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 ="";
|
||||
|
|
|
@ -25,6 +25,7 @@ function add_user(){
|
|||
$result['prevEmail'] = $_POST["Email"];
|
||||
$result['no_visible_elements'] = 'TRUE';
|
||||
helpers :: loadtemplate( 'register', $result);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ){
|
||||
|
|
Loading…
Reference in a new issue