Systemerweiterungen
This commit is contained in:
@ -11,6 +11,10 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
@ -11,6 +11,10 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
@ -11,6 +11,10 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
15
dashboard/error.php
Normal file
15
dashboard/error.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
?>
|
@ -15,6 +15,11 @@ require_once "../language/german.inc.php";
|
||||
##############################################################################
|
||||
$query = "SELECT mhid, headline, visible
|
||||
FROM jumi_menu_headline
|
||||
WHERE mhid IN (SELECT DISTINCT mhid
|
||||
FROM jumi_menu_entries a, jumi_admin_rollen_rechte_zuord b, jumi_admin_rollen_user_zuord c
|
||||
WHERE a.meid=b.meid
|
||||
AND b.rid=c.rid
|
||||
AND c.uid=$uid)
|
||||
ORDER by mhid ASC";
|
||||
$result = $db->query($query);
|
||||
|
||||
@ -34,9 +39,14 @@ while ($row = $result->fetch_array()) {
|
||||
FROM jumi_menu_entries
|
||||
WHERE mhid=$row[mhid]
|
||||
AND sup = meid
|
||||
AND meid IN (SELECT DISTINCT meid
|
||||
FROM jumi_admin_rollen_rechte_zuord a, jumi_admin_rollen_user_zuord b
|
||||
WHERE a.rid = b.rid
|
||||
AND b.uid = $uid)
|
||||
ORDER BY meid ASC
|
||||
";
|
||||
|
||||
|
||||
#echo "<br><br><br><br><br><br><br><br>----------------------------------------$query2";
|
||||
|
||||
$result2 = $db->query($query2) or die("Cannot execute query2");
|
||||
$ln2 = 0;
|
||||
@ -60,6 +70,10 @@ while ($row = $result->fetch_array()) {
|
||||
FROM jumi_menu_entries
|
||||
WHERE mhid=$row2[mhid]
|
||||
AND sup != meid
|
||||
AND meid IN (SELECT DISTINCT meid
|
||||
FROM jumi_admin_rollen_rechte_zuord a, jumi_admin_rollen_user_zuord b
|
||||
WHERE a.rid = b.rid
|
||||
AND b.uid = $uid)
|
||||
ORDER BY meid ASC
|
||||
";
|
||||
|
||||
|
@ -4,6 +4,10 @@ if(!isset($_SESSION)) { session_start(); }
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
@ -4,11 +4,13 @@ if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
@ -6,6 +6,10 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
# echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
# exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
@ -6,6 +6,10 @@ include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user