コード例 #1
0
ファイル: tunet.php プロジェクト: stipistopi/hrp
$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">
コード例 #2
0
ファイル: save_vid_state.php プロジェクト: stipistopi/hrp
<?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);
}
コード例 #3
0
ファイル: lecke_kerdezz.php プロジェクト: stipistopi/hrp
$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;