4 <meta charset
="shift_jis">
5 <title
>�V‚µ‚¢ƒpƒXƒ��
[ƒh
</title
>
6 <meta name
="viewport" content
="width=device-width, initial-scale=1.0">
7 <meta name
="description" content
="">
8 <meta name
="author" content
="">
9 <link rel
="stylesheet" type
="text/css" href
="../css/style.css"/>
13 include('encrypt.php');
14 if (isset($_GET['vhj']) && isset($_GET['i']) && !empty($_GET['vhj']) && !empty($_GET['i'])) {
16 $ide = Decrypt($_GET['i'],KEY
);
17 $em = Decrypt($_GET['vhj'],KEY
);
21 $em = filter_var($em, FILTER_SANITIZE_STRING
);
22 $email = explode("|",$em);
24 if(isset($email[1]) && $email[1]==$ide)
29 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
30 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)) {
35 $fdir = substr($email, 0, 1);
36 $sdir = substr($email, 1, 1);
37 $data = @file
(DB_PATH
."$fdir/$sdir/$email");
40 if (trim($data[count($data)-1]) !=FORGOT
) {
41 echo "ŠúŒÀ�Ø‚ê‚̃Šƒ“ƒN";
49 } elseif (isset($_POST['newpass'])) {
51 $pass = trim($_POST['pass']);
52 $pass = filter_var($pass, FILTER_SANITIZE_STRING
);
53 $pass = strip_tags(addslashes($pass));
54 $cpass = trim($_POST['cpass']);
55 $cpass = filter_var($cpass, FILTER_SANITIZE_STRING
);
56 $cpass = strip_tags(addslashes($cpass));
58 $email = trim($_POST['email']);
59 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
60 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)){
63 if ($pass != $cpass) {
64 echo "ƒpƒXƒ��[ƒh‚Ì•sˆê’v�I";
67 if(!preg_match("/[a-z0-9 \!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\]\^\_\{\}\|\~]{4,32}+/i",$pass))
68 die("–³Œø‚ȃpƒXƒ��[ƒh�I");
71 $fdir = substr($email, 0, 1);
72 $sdir = substr($email, 1, 1);
73 $data = @file
(DB_PATH
."$fdir/$sdir/$email");
74 for ($i=0; $i < count($data); $i++
) {
75 $data[$i] = trim($data[$i]);
77 if (trim($data[count($data)-1]) !=FORGOT
) {
78 echo "ŠúŒÀ�Ø‚ê‚̃Šƒ“ƒN";
82 $pass = md5($pass."kahitanupo");
84 unset($data[count($data)-1]);
85 $writeData = implode("\n",$data);
86 //$writeData = $data[0]."\n".$data[1]."\n".$pass."\n".$data[3]."\n".$data[4]."\n".$data[5]."\n";
87 file_put_contents(DB_PATH
."$fdir/$sdir/$email", $writeData);
88 echo "ƒpƒXƒ��[ƒh‚ª•Ï�X";
91 echo "‚±‚±‚ÅŒ©‚é‚à‚͉̂½‚à‚È‚¢";
95 <div
class="containerz">
96 <div
class="navbar-collapse">
97 <ul
class="nav navbar-nav">
102 <div
class="container">
104 <div
class="form-signin" style
= "font-size: 1.2em;text-align:right;">
105 <a href
="http://www.2ch.net/">
106 <img src
="http://www.2ch.net/images/2ch_logo.gif">
113 <div
class="container">
115 <form
class="form-signin" method
="post" action
="np.php">
116 <h3
class="form-signin-heading">�V‚µ‚¢ƒpƒXƒ��
[ƒh
</h3
>
117 <input type
="hidden" name
="email" value
="<?php echo $email; ?>">
118 <input type
="password" name
="pass" placeholder
="�V‚µ‚¢ƒpƒXƒ��[ƒh" required autofocus
>
119 <input type
="password" name
="cpass" placeholder
="�V‚µ‚¢ƒpƒXƒ��[ƒh‚ð�Ä“ü—Í" required
>
121 <button name
="newpass" type
="submit">’ñ�o‚·‚é
</button
><br
><br
><br
>