Angemeldet bleiben
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
@ -9,6 +12,7 @@ ini_set('display_errors', 1);
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte('__noright__', $uid)){
|
||||
@ -18,8 +22,6 @@ if(!rechte('__noright__', $uid)){
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
#require_once "func_genUser.php";
|
||||
|
||||
// Rechteüberprüfung
|
||||
|
@ -1,4 +1,7 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
@ -8,6 +11,7 @@ ini_set('display_errors', 1);
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
@ -18,7 +22,6 @@ if(!rechte(basename(__FILE__), $uid)){
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
#require_once "func_genUser.php";
|
||||
|
||||
|
@ -1,13 +1,15 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
@ -18,7 +20,7 @@ if(!rechte(basename(__FILE__), $uid)){
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
|
||||
#require_once "func_genUser.php";
|
||||
|
||||
|
@ -5,7 +5,7 @@ if (!isset($_SESSION)) {
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
#require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
@ -1,22 +1,26 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
#require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
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";
|
||||
|
||||
|
||||
$action = $_GET['action'];
|
||||
if($action == ''){
|
||||
|
||||
|
||||
}
|
||||
$result_name = $db->query("SELECT vorname, nachname, mail FROM jumi_admin WHERE uid='$uid'");
|
||||
$row_name = $result_name->fetch_array();
|
||||
$smarty->assign('startseite_name', "$row_name[vorname] $row_name[nachname]");
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
?>
|
||||
?>
|
||||
|
21
dashboard/login.php
Normal file
21
dashboard/login.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
#require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
$action = $_GET['action'];
|
||||
if($action == ''){
|
||||
|
||||
}
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
?>
|
@ -1,6 +1,11 @@
|
||||
<?php
|
||||
session_start(); //to ensure you are using same session
|
||||
session_destroy(); //destroy the session
|
||||
header("location:index.php"); //to redirect back to "index.php" after logging out
|
||||
echo "
|
||||
<form name='logout' action='../controller/admin_login.php' method='POST'<27>>
|
||||
<input type='hidden' name='function' value='logout'>
|
||||
</form>
|
||||
<script type='text/javascript'>
|
||||
document.logout.submit();
|
||||
</script>";
|
||||
|
||||
exit();
|
||||
?>
|
||||
|
@ -7,12 +7,18 @@ if (!isset($_SESSION)) {
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
require_once("../config/datenbankanbindung.php");
|
||||
# config.inc.php kann hier nicht eingebunden werden, sonst ruft er in jeder Seite 2x die config auf, da das NAV in jeder Seite geladen wird
|
||||
$smarty = new SmartyAdmin();
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
##############################################################################
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
$uid = $_SESSION["userid"];
|
||||
|
||||
$query = "SELECT mhid, headline, visible
|
||||
FROM jumi_menu_headline
|
||||
WHERE mhid IN (SELECT DISTINCT mhid
|
||||
|
@ -2,6 +2,7 @@
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
|
@ -3,6 +3,7 @@ if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
|
@ -1,26 +0,0 @@
|
||||
<?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();
|
||||
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";
|
||||
|
||||
|
||||
|
||||
$result_name = $db->query("SELECT vorname, nachname, mail FROM jumi_admin WHERE uid='$uid'");
|
||||
$row_name = $result_name->fetch_array();
|
||||
$smarty->assign('startseite_name', "$row_name[vorname] $row_name[nachname]");
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("modern/dashboard/$templatename");
|
||||
?>
|
@ -3,6 +3,7 @@ if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
|
@ -3,6 +3,7 @@ if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
@ -141,13 +142,13 @@ if ($action == 'fragen') {
|
||||
$result = $db->query("SELECT count(*) Anz FROM jumi_umfragen_fragen WHERE umid='$umid'");
|
||||
$row = $result->fetch_array();
|
||||
# Wenn man bei mehreren Fragen eine Frage löscht ist Anz nicht 0 und der Focus sitzt bei Antwort
|
||||
# if ($umid == '' or $_GET['tabufid'] == "neuefrage" or $row['Anz'] == '0') {
|
||||
# $smarty->assign('umfrageerf_focus', "frage");
|
||||
if ($umid == '' or $_GET['tabufid'] == "neuefrage" or $row['Anz'] == '0') {
|
||||
$smarty->assign('umfrageerf_focus', "frage");
|
||||
# unset($_SESSION["umfrageerf_ufid"]);
|
||||
# unset($_SESSION["umfrageerf_uaid"]);
|
||||
# } else {
|
||||
# $smarty->assign('umfrageerf_focus', "antwort");
|
||||
# }
|
||||
} else {
|
||||
$smarty->assign('umfrageerf_focus', "antwort");
|
||||
}
|
||||
|
||||
|
||||
if (isset($_POST['datumvon']) and $_POST['datumvon'] != '') {
|
||||
|
Reference in New Issue
Block a user