示例#1
0
文件: index.php 项目: vinod-co/centa
function get_timestamp_from_time($hours, $minutes, $timezone)
{
    $tmp_datetime = new DateTime(date('Y-m-d') . $hours . ':' . $minutes . ':00', $timezone);
    return $tmp_datetime->getTimestamp();
}
if (isset($_POST['start_exam_form'])) {
    check_var('paper_id', 'POST', true, false, false);
}
$current_address = NetworkUtils::get_client_address();
$lab = new LabFactory($mysqli);
$lab_object = $lab->get_lab_based_on_client($current_address);
$properties_list = array();
if ($lab_object !== false) {
    $lab_id = $lab_object->get_id();
    $room_name = $lab_object->get_name();
    $properties_list = PaperProperties::get_paper_properties_by_lab($lab_object, $mysqli);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html;charset=<?php 
echo $configObject->get('cfg_page_charset');
?>
"/>

<title>Rog&#333;: <?php 
echo $string['invigilatoraccess'];
?>
</title>