Angemeldet bleiben
This commit is contained in:
@ -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