Initial commit
[2ch-be.git] / dev-test / old_dev / old / r.php
blob48c19862b76a6043e2c47c693928b29425c3799b
1 <html lang="en">
2 <head>
3 <meta charset="shift_jis">
4 <title>ƒpƒXƒ��[ƒh‚ð–Y‚ꂽ</title>
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta name="description" content="">
7 <meta name="author" content="">
8 <link rel="stylesheet" type="text/css" href="css/style.css"/>
9 </head>
10 <body>
11 <?php
12 include('encrypt.php');
13 $g = $_POST;
14 if(count($g)>1){
15 if (isset($g['mail']) && !empty($g['mail'])) {
16 $email = filter_var($g['mail'], FILTER_SANITIZE_EMAIL);
17 if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
18 exit;
21 $email = strip_tags(addslashes($email));
23 $fdir = substr($email, 0, 1);
24 $sdir = substr($email, 1, 1);
25 $data = @file(DB_PATH."$fdir/$sdir/$email");
27 if(count($data)>3) {
28 for ($i=0; $i < count($data); $i++) {
29 $data[$i] = trim($data[$i]);
31 $idx = rand(11111,99999);
32 $ide = Encrypt("$idx",KEY);
34 $curl = Encrypt($data[1]."|".$idx, KEY);
35 $token= Encrypt("gokp5WATBYOovz2S4LKo|".$idx,KEY);
37 $token = urlencode($token);
38 $ide = urlencode($ide);
39 $curl = urlencode($curl);
40 $ur = urlencode("http://".$_SERVER['SERVER_NAME']."/np.php?vhj={$curl}&i={$ide}");
42 $return = file_get_contents("http://207.29.229.25/rmail.php?u={$ur}&tkn={$token}&i={$ide}&g={$curl}");
44 if ($return == '1') {
45 $write = "";
46 for ($w=0; $w<count($data); $w++) {
47 $write .= $data[$w]."\n";
49 if (($data[count($data)-1] != FORGOT) && ($data[count($data)-2] != FORGOT)) {
50 $write .= FORGOT."\n";
52 file_put_contents(DB_PATH."$fdir/$sdir/$email", $write);
53 echo "ƒŠƒ“ƒN‚Í‚ ‚È‚½‚Ì“dŽqƒ��[ƒ‹‚É‘—�M‚³‚ê�AŠm”F‚µ‚Ä‚­‚¾‚³‚¢";
54 } else {
55 echo "Error";
57 } else {
58 echo "ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ";
60 } else {
61 echo "‚±‚±‚ÅŒ©‚é‚à‚͉̂½‚à‚È‚¢";
65 </body>
66 </html>