Compare commits
2
Commits
54cfdf66ec
...
c1f9d9d127
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1f9d9d127 | ||
|
|
2fdf5aa9c7 |
No files matched your search
@@ -5,7 +5,7 @@ $maestroID = $_POST["maestroID"];
|
|||||||
$playerID = $_POST["playerID"];
|
$playerID = $_POST["playerID"];
|
||||||
$writingID = $_POST["writingID"];
|
$writingID = $_POST["writingID"];
|
||||||
$record = $_POST["record"];
|
$record = $_POST["record"];
|
||||||
$isPrevHourFlag = $_POST["isPrevHourFlag"];
|
$isPrevHourFlag = isset($_POST["isPrevHourFlag"]) ? $_POST["isPrevHourFlag"] : null;
|
||||||
// $isPrevHourFlag is for only TDD (addPrevHourTypingExamRecord)
|
// $isPrevHourFlag is for only TDD (addPrevHourTypingExamRecord)
|
||||||
|
|
||||||
include "./../lib/json_builder.php";
|
include "./../lib/json_builder.php";
|
||||||
|
|||||||
@@ -5,16 +5,18 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
<?php
|
<?php
|
||||||
$maestro_name = $_GET["maestro_name"];
|
$maestro_name = isset($_GET["maestro_name"]) ? (string)$_GET["maestro_name"] : "";
|
||||||
|
|
||||||
// echo "maestro_name : $maestro_name</br>";
|
// echo "maestro_name : $maestro_name</br>";
|
||||||
if($maestro_name == "") {
|
if($maestro_name == "") {
|
||||||
echo "no maestro_name";
|
echo "// no maestro_name\n";
|
||||||
run_url("./../../client/license_timer.html");
|
run_url("./../../client/license_timer.html");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo("sessionStorage.setItem('maestroName', '$maestro_name');\n\r");
|
// 사용자 입력이 스크립트로 실행되지 않도록 JS 문자열 리터럴로 안전하게 출력 (XSS 방지)
|
||||||
|
$maestro_name_js = json_encode($maestro_name, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
|
||||||
|
echo("sessionStorage.setItem('maestroName', $maestro_name_js);\n\r");
|
||||||
run_url("./../../client/license_timer.html");
|
run_url("./../../client/license_timer.html");
|
||||||
|
|
||||||
function run_url($targetUrl) {
|
function run_url($targetUrl) {
|
||||||
|
|||||||
@@ -5,16 +5,18 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
<?php
|
<?php
|
||||||
$maestro_name = $_GET["maestro_name"];
|
$maestro_name = isset($_GET["maestro_name"]) ? (string)$_GET["maestro_name"] : "";
|
||||||
|
|
||||||
// echo "maestro_name : $maestro_name</br>";
|
// echo "maestro_name : $maestro_name</br>";
|
||||||
if($maestro_name == "") {
|
if($maestro_name == "") {
|
||||||
echo "no maestro_name";
|
echo "// no maestro_name\n";
|
||||||
run_url("./../../player/login.html");
|
run_url("./../../player/login.html");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo("sessionStorage.setItem('maestroName', '$maestro_name');\n\r");
|
// 사용자 입력이 스크립트로 실행되지 않도록 JS 문자열 리터럴로 안전하게 출력 (XSS 방지)
|
||||||
|
$maestro_name_js = json_encode($maestro_name, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
|
||||||
|
echo("sessionStorage.setItem('maestroName', $maestro_name_js);\n\r");
|
||||||
run_url("./../../client/login.html");
|
run_url("./../../client/login.html");
|
||||||
|
|
||||||
function run_url($targetUrl) {
|
function run_url($targetUrl) {
|
||||||
|
|||||||
Reference in new issue
Block a user