mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
17: Cleanup partial
This commit is contained in:
parent
2355ef0da8
commit
6efb8c3378
@ -38,13 +38,16 @@
|
||||
|
||||
$main = 1;
|
||||
define('EASYWIDIR', dirname(__FILE__));
|
||||
if (is_dir(EASYWIDIR . '/install')) die('Please remove the "install" folder');
|
||||
if (is_dir(EASYWIDIR . '/install')) {
|
||||
die('Please remove the "install" folder');
|
||||
}
|
||||
include(EASYWIDIR . '/stuff/vorlage.php');
|
||||
include(EASYWIDIR . '/stuff/class_validator.php');
|
||||
include(EASYWIDIR . '/stuff/functions.php');
|
||||
include(EASYWIDIR . '/stuff/settings.php');
|
||||
include(EASYWIDIR . '/stuff/init_admin.php');
|
||||
include(EASYWIDIR . '/stuff/adminhome.php');
|
||||
|
||||
if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]))) {
|
||||
include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]);
|
||||
unset($dbConnect);
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: mysql_functions.php.
|
||||
* Author: Ulrich Block
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: switch.php.
|
||||
* Author: Ulrich Block
|
||||
@ -63,7 +64,7 @@ if ($ui->id('id', 19, 'get')) {
|
||||
$accounttype = $row['accounttype'];
|
||||
}
|
||||
$sql=null;
|
||||
if ($reseller_id != 0 and $resellerid != $reseller_id) {
|
||||
if (!isset($resellerid) or ($reseller_id != 0 and $resellerid != $reseller_id)) {
|
||||
header('Location: login.php');
|
||||
die('Please allow redirection');
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: userpanel.php.
|
||||
* Author: Ulrich Block
|
||||
@ -37,7 +38,9 @@
|
||||
|
||||
$main = 1;
|
||||
define('EASYWIDIR', dirname(__FILE__));
|
||||
if (is_dir(EASYWIDIR . '/install')) die('Please remove the "install" folder');
|
||||
if (is_dir(EASYWIDIR . '/install')) {
|
||||
die('Please remove the "install" folder');
|
||||
}
|
||||
include(EASYWIDIR . '/stuff/functions.php');
|
||||
include(EASYWIDIR . '/stuff/class_validator.php');
|
||||
include(EASYWIDIR . '/stuff/vorlage.php');
|
||||
@ -49,7 +52,7 @@ if (isset($what_to_be_included_array[$w])) {
|
||||
unset($dbConnect);
|
||||
} else {
|
||||
unset($dbConnect);
|
||||
$template_file = "userpanel_home.tpl";
|
||||
$template_file = 'userpanel_home.tpl';
|
||||
}
|
||||
include(IncludeTemplate($template_to_use, 'userpanel_header.tpl'));
|
||||
if (isset($template_file) and preg_match('/^(.*)\.tpl$/', $template_file)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user