Angemeldet bleiben

This commit is contained in:
aschwarz
2023-03-29 16:22:45 +02:00
parent a675b295e7
commit 670599777b
62 changed files with 1668 additions and 14210 deletions

View File

@ -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'] != '') {