Esempio n. 1
0
$active = "lecke";
$color = "magenta";
include_once 'includes/config.php';
if (!isset($_SESSION["is_auth"])) {
    header('location: login.php?msg=1');
    exit;
}
$userId = $_SESSION['userId'];
$timeWindowName = $_SESSION['timeWindowName'];
$userFirstName = $_SESSION['userFirstName'];
if ($timeWindowName == "pkezdo") {
    header('location: lecke.php?msg=2');
    exit;
}
if (pregMatch_oneNumberFromString($timeWindowName)) {
    $numberOfLecke = pregMatch_oneNumberFromString($timeWindowName);
} else {
    $numberOfLecke = db_getNumberOfAllLecke();
}
$ids = array();
$ids[1] = "egSbAzhcN";
$ids[2] = "sUwqXHxsg";
include 'includes/header.php';
?>

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.blockUI.js"></script>

<div class="flexbox-container">
    <div class="content-left">
Esempio n. 2
0
<?php

include_once '../includes/config.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $timeWindowName = $_SESSION['timeWindowName'];
    $leckeNum = pregMatch_oneNumberFromString($timeWindowName);
    $vidMp = test_input($_POST['vidMp']);
    setcookie("vid_state_in_secs", "", time() - 3600);
    // delete cookie
    setcookie('vid_state_in_secs', $leckeNum . ':' . $vidMp, time() + 86400 * 11, '/', 'hrp-interaktiv.hu', false, true);
}
Esempio n. 3
0
$active = "lecke";
$color = "magenta";
include_once 'includes/config.php';
//session_start();
if (!isset($_SESSION["is_auth"])) {
    header('location: login.php?msg=1');
    exit;
}
$userId = $_SESSION['userId'];
$timeWindowName = $_SESSION['timeWindowName'];
$userFirstName = $_SESSION['userFirstName'];
$testName = db_getLeckeKerdezzTestName($timeWindowName);
$filledOut = db_checkIfTestFilledOut($userId, $testName);
if (pregMatch_oneNumberFromString($testName)) {
    $numberOfLecke = pregMatch_oneNumberFromString($testName);
} else {
    $numberOfLecke = "";
}
if (strpos($timeWindowName, 'lecke') === false || $filledOut) {
    header('location: lecke.php?msg=1');
    exit;
}
if (!db_checkUserActivity($timeWindowName, "lecke_kf_nyit", $userId, null, null, null)) {
    db_addUserActivity($timeWindowName, "lecke_kf_nyit", $userId, null, null, null);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (isset($_POST['test_submit'])) {
        // pontszám számítása
        $pont = 0;
        $i = 1;