-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.php
116 lines (97 loc) · 2.62 KB
/
setting.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
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
<?php
// p2 - 設定管理ページ
require_once './conf/conf.inc.php';
$_login->authorize(); // ユーザ認証
// 書き出し用変数
$ptitle = 'ログイン管理';
if (UA::isK()) {
$status_st = 'ステータス';
$autho_user_st = '認証ユーザ';
$client_host_st = '端末ホスト';
$client_ip_st = '端末IPアドレス';
$browser_ua_st = 'ブラウザUA';
$p2error_st = 'rep2 エラー';
$logout_st = 'ログアウト';
} else {
$status_st = 'ステータス';
$autho_user_st = '認証ユーザ';
$client_host_st = '端末ホスト';
$client_ip_st = '端末IPアドレス';
$browser_ua_st = 'ブラウザUA';
$p2error_st = 'rep2 エラー';
$logout_st = 'ログアウト';
}
$login_uri = UriUtil::buildQueryUri('login.php', array(UA::getQueryKey() => UA::getQueryValue()));
$login2ch_uri = UriUtil::buildQueryUri('login2ch.php', array(UA::getQueryKey() => UA::getQueryValue()));
$body_onload = '';
if (UA::isPC()) {
$body_onload = ' onLoad="setWinTitle();"';
}
$hr = P2View::getHrHtmlK();
$body_at = P2View::getBodyAttrK();
//=========================================================
// HTMLプリント
//=========================================================
P2Util::headerNoCache();
P2View::printDoctypeTag();
?>
<html lang="ja">
<head>
<?php
P2View::printExtraHeadersHtml();
?>
<title><?php eh($ptitle); ?></title>
<?php
if (UA::isPC()) {
P2View::printIncludeCssHtml('style');
P2View::printIncludeCssHtml('setting');
?>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script type="text/javascript" src="js/basic.js?v=20090429"></script>
<?php
}
echo <<<EOP
</head>
<body{$body_onload}{$body_at}>
EOP;
if (UA::isPC()) {
?><p id="pan_menu">ログイン管理</p><?php
}
P2Util::printInfoHtml();
?><ul id="setting_menu">
<li>
<a href="<?php eh($login_uri); ?>">rep2ログイン管理</a>
</li>
<li><a href="<?php eh($login2ch_uri); ?>">2chログイン管理</a>(いわゆる●)</li>
</ul>
[<a href="./index.php?logout=1" target="_parent">rep2から<?php eh($logout_st); ?>する</a>]
<?php
if (UA::isK()) {
echo $hr;
}
?>
<p id="client_status">
<?php eh($autho_user_st) ?>: <?php eh($_login->user_u) ?><br>
<?php eh($client_host_st) ?>: <?php eh(P2Util::getRemoteHost()) ?><br>
<?php eh($client_ip_st) ?>: <?php eh($_SERVER['REMOTE_ADDR']) ?><br>
<?php eh($browser_ua_st) ?>: <?php ehi($_SERVER['HTTP_USER_AGENT']) ?><br>
</p>
<?php
// フッタHTML表示
if (UA::isK()) {
echo $hr . P2View::getBackToIndexKATag() . "\n";
}
?>
</body></html>
<?php
exit;
/*
* 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: