mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +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
c95fd0aefd
commit
0c46da1f62
3 changed files with 7 additions and 5 deletions
|
@ -44,9 +44,9 @@ class Helpers{
|
||||||
foreach ( $variables[$template] as $key => $value ){
|
foreach ( $variables[$template] as $key => $value ){
|
||||||
$smarty -> assign( $key, $value );
|
$smarty -> assign( $key, $value );
|
||||||
}
|
}
|
||||||
if( $vars['permission'] == 2 ){
|
if( isset($vars['permission']) && $vars['permission'] == 2 ){
|
||||||
$inherited = "extends:layout_admin.tpl|";
|
$inherited = "extends:layout_admin.tpl|";
|
||||||
}else if($vars['permission'] == 1){
|
}else if( isset($vars['permission']) && $vars['permission'] == 1){
|
||||||
$inherited = "extends:layout_user.tpl|";
|
$inherited = "extends:layout_user.tpl|";
|
||||||
}else{
|
}else{
|
||||||
$inherited ="";
|
$inherited ="";
|
||||||
|
|
|
@ -25,6 +25,7 @@ function add_user(){
|
||||||
$result['prevEmail'] = $_POST["Email"];
|
$result['prevEmail'] = $_POST["Email"];
|
||||||
$result['no_visible_elements'] = 'TRUE';
|
$result['no_visible_elements'] = 'TRUE';
|
||||||
helpers :: loadtemplate( 'register', $result);
|
helpers :: loadtemplate( 'register', $result);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
error_reporting(E_ALL);
|
||||||
|
ini_set('display_errors', 'on');
|
||||||
require( '../config.php' );
|
require( '../config.php' );
|
||||||
require( '../../ams_lib/libinclude.php' );
|
require( '../../ams_lib/libinclude.php' );
|
||||||
//default page
|
//default page
|
||||||
|
@ -9,11 +10,11 @@ $page = 'login';
|
||||||
if ( isset( $_POST["function"] ) ){
|
if ( isset( $_POST["function"] ) ){
|
||||||
require( "inc/" . $_POST["function"] . ".php" );
|
require( "inc/" . $_POST["function"] . ".php" );
|
||||||
$tempReturn = $_POST["function"]();
|
$tempReturn = $_POST["function"]();
|
||||||
$functionReturn = array_merge($tempReturn,$_POST);
|
/*$functionReturn = array_merge($tempReturn,$_POST);
|
||||||
if ( isset($_POST["callBack"])){
|
if ( isset($_POST["callBack"])){
|
||||||
$page = $_POST["callBack"];
|
$page = $_POST["callBack"];
|
||||||
|
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadpage ( $page ){
|
function loadpage ( $page ){
|
||||||
|
|
Loading…
Reference in a new issue