-
Notifications
You must be signed in to change notification settings - Fork 0
/
confirm.php
77 lines (59 loc) · 1.39 KB
/
confirm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php if ($_SERVER["HTTP_REFERER"] == "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER['PHP_SELF'])."/input.php"):?>
<?php
require_once "help_confirm.php";
include_once "help.php";
Err();
mk_session();
Check_and_Post();
var_dump($_POST);
// session_destroy();
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>BBS</title>
<style>
table{
border-collapse:collapse;
}
</style>
</head>
<body>
<h1>Confirm</h1>
<form action="finish.php" method="POST">
<table border="1">
<thead ><th colspan="2">個人情報</th></thead>
<tbody>
<?php
if (function_exists('Check_and_Post')) {
foreach (Check_and_Post() as $column => $data){
// エスケープ処理
$column = h($column);
$data = h($data);
echo <<<TEXT
<tr>
<td>$column</td>
<td>$data</td>
</tr>
TEXT;
// indenterror may cause
}}
?>
<tr>
<td>確認-戻る</td>
<td align="center">
<input type="submit" name="confirm" value="確認">
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
<!-- 正規でない場合 -->
<?php else: ?>
<h3>あなたは正規の方法でこのウェブサイトにアクセスしていません。</h3>
<br>
<a href="#" onclick="javascript:window.history.back(-1);return false;">戻る</a>
<?php endif ;?>