-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathsetting.php
More file actions
126 lines (106 loc) · 3.01 KB
/
setting.php
File metadata and controls
126 lines (106 loc) · 3.01 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/**
* rep2 - 設定管理ページ
*/
require_once './conf/conf.inc.php';
$_login->authorize(); // ユーザ認証
// 書き出し用変数 ========================================
$ptitle = 'ログイン管理';
if ($_conf['ktai']) {
$status_st = "ステータス";
$autho_user_st = "認証ユーザ";
$client_host_st = "端末ホスト";
$client_ip_st = "端末IPアドレス";
$browser_ua_st = "ブラウザUA";
$p2error_st = "rep2 エラー";
} else {
$status_st = "ステータス";
$autho_user_st = "認証ユーザ";
$client_host_st = "端末ホスト";
$client_ip_st = "端末IPアドレス";
$browser_ua_st = "ブラウザUA";
$p2error_st = "rep2 エラー";
}
$autho_user_ht = "{$autho_user_st}: {$_login->user_u}<br>";
// HOSTを取得
if (array_key_exists('REMOTE_HOST', $_SERVER)) {
$hc['remote_host'] = $_SERVER['REMOTE_HOST'];
} else {
$hc['remote_host'] = '';
}
if (!$hc['remote_host']) {
$hc['remote_host'] = gethostbyaddr($_SERVER['REMOTE_ADDR']);
}
if ($hc['remote_host'] == $_SERVER['REMOTE_ADDR']) {
$hc['remote_host'] = '';
}
$hc['ua'] = $_SERVER['HTTP_USER_AGENT'];
$hd = array_map('htmlspecialchars', $hc);
//=========================================================
// HTMLプリント
//=========================================================
P2Util::header_nocache();
echo $_conf['doctype'];
echo <<<EOP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
{$_conf['extra_headers_ht']}
<title>{$ptitle}</title>\n
EOP;
if (!$_conf['ktai']) {
echo <<<EOP
<link rel="stylesheet" type="text/css" href="css.php?css=style&skin={$skin_en}">
<link rel="stylesheet" type="text/css" href="css.php?css=setting&skin={$skin_en}">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<script type="text/javascript" src="js/basic.js?{$_conf['p2_version_id']}"></script>\n
EOP;
}
$body_at = ($_conf['ktai']) ? $_conf['k_colors'] : ' onload="setWinTitle();"';
echo <<<EOP
</head>
<body{$body_at}>
EOP;
// 携帯用表示
if (!$_conf['ktai']) {
echo <<<EOP
<p id="pan_menu">ログイン管理</p>
EOP;
}
// インフォメッセージ表示
P2Util::printInfoHtml();
echo <<<EOP
<ul id="setting_menu">
<li><a href="login.php{$_conf['k_at_q']}">rep2ログイン管理</a></li>
<li><a href="login2ch.php{$_conf['k_at_q']}">2chログイン管理</a></li>
</ul>
EOP;
if ($_conf['ktai']) {
echo '<hr>';
}
echo <<<EOP
<p id="client_status">
{$autho_user_ht}
{$client_host_st}: {$hd['remote_host']}<br>
{$client_ip_st}: {$_SERVER['REMOTE_ADDR']}<br>
{$browser_ua_st}: {$hd['ua']}
</p>
EOP;
// フッタプリント===================
if ($_conf['ktai']) {
echo "<hr><div class=\"center\">{$_conf['k_to_index_ht']}</div>";
}
echo '</body></html>';
/*
* Local Variables:
* mode: php
* coding: cp932
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
// vim: set syn=php fenc=cp932 ai et ts=4 sw=4 sts=4 fdm=marker: