index.php
2.02 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
<?PHP
//*****************************************************************************
//*
//* プログラム名:ログイン/個人設定機能 ログイン画面
//* プログラムID:login.php
//* 機能 :
//* 作成者 :Y-ogawa(MTC)
//*
//*****************************************************************************
header("Content-type: text/html; charset=Shift_JIS");
//include("../include/session_start.inc");
session_unregister("PHP_POST_SYAIN_CD");
session_unregister("PHP_POST_DB_NAME");
//キャリア
$user_agent= explode( "/", $_SERVER['HTTP_USER_AGENT']);
$career = strtoupper($user_agent[0]);
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<TITLE>めーるNiポン携帯用</TITLE>
</HEAD>
<BODY>
<P align="center">めーるNiポン<BR>ログイン</P>
<BR>
<FORM ACTION="my_setting.php" METHOD="POST">
<!-- <a href="./mente.html">【緊急メンテナンスのお知らせ】</a> <BR><BR> -->
1.ログインID<BR>
<?PHP
if (preg_match("/DOCOMO/",$career) ==true || preg_match("/KDDI-/",$career) ==true || preg_match("/UP.BR/",$career) ==true ){
?>
<INPUT type="text" name="login_id" size="13" istyle="3" maxlength="50">
<?PHP
}elseif(preg_match("/J-PHO/",$career) == true || preg_match("/VODA/",$career)==true || preg_match("/SoftBank/",$career)==true){
?>
<INPUT type="text" name="login_id" size="13" istyle="3" maxlength="50" MODE="alphabet">
<?PHP
}else{
?>
<INPUT type="text" name="login_id" size="13" istyle="3" maxlength="50">
<?PHP
}
?><BR>
2.パスワード<BR>
<?PHP
if (preg_match("/DOCOMO/",$career) ==true || preg_match("/KDDI-/",$career) ==true || preg_match("/UP.BR/",$career) ==true ){
?>
<INPUT type="text" name="passwd" size="13" maxlength="50" istyle="3">
<?PHP
}elseif(preg_match("/J-PHO/",$career) == true || preg_match("/VODA/",$career)==true || preg_match("/SoftBank/",$career)==true){
?>
<INPUT type="text" name="passwd" size="13" maxlength="50" MODE="alphabet">
<?PHP
}else{
?>
<INPUT type="text" name="passwd" size="13" maxlength="50">
<?PHP
}
?><BR>
<BR>
<INPUT type="submit" value="ログイン">
</FORM>
<BR>
</BODY>
</HTML>