Initial commit
[2ch-be.git] / dev-test / old_dev / old / bak / test / p__b_a_c_k.php
blob5da6d8a354b57a338cb1fe1bb0bf2266ed48df31
1 <?php
2 include('../encrypt.php');
4 // SANITIZE
5 $uid = trim($_GET['i']);
6 $uid = filter_var($uid,FILTER_SANITIZE_NUMBER_INT);
8 // VALIDATEE
9 if (strlen($uid) != 9){
10 echo "NG";
11 exit;
14 $read = file('/home/db/idlist.log');
15 $found = 0;
16 for ($i=0; $i < count($read); $i++) {
17 $udata = explode("<><>", trim($read[$i]));
19 if ($udata[0] == $uid && $found == 0) {
20 $tmp = explode("<><>", $read[$i]);
21 $email = $tmp[1];
22 $found = 1;
25 $email = trim($email);
27 $email = filter_var($email, FILTER_SANITIZE_EMAIL);
28 if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
29 exit;
32 $fdir = substr($email, 0, 1);
33 $sdir = substr($email, 1, 1);
34 $data = @file(DB_PATH."$fdir/$sdir/$email");
36 $ico = trim($data[5]);
37 $pts = trim($data[3]);
38 $info = trim(urldecode($data[6]));
39 $icoimg = "<img src=\"http://204.63.8.28/ico/".$ico."\" height=\"100%\"/>";
42 <!DOCTYPE html>
43 <html lang="en">
44 <head>
45 <meta charset="shift_jis">
46 <title>ƒXƒe�[ƒ^ƒXƒy�[ƒW</title>
47 <meta name="viewport" content="width=device-width, initial-scale=1.0">
48 <meta name="description" content="">
49 <meta name="author" content="">
50 <link rel="stylesheet" type="text/css" href="css/style.css"/>
51 </head>
52 <body>
53 <div class="containerz">
54 <div class="navbar-collapse">
55 <ul class="nav navbar-nav">
56 </ul>
57 </div>
58 </div>
60 <div class="container">
61 <center>
62 <div class="form-signin" style = "font-size: 1.2em;text-align:right;">
63 <a href="http://www.2ch.net/">
64 <img src="http://www.2ch.net/images/2ch_logo.gif">
65 </a><br>
66 BE 2.0 ƒÀ
67 </div>
68 </center>
69 </div>
71 <div class="container">
72 <center>
73 <div class="form-signin">
74 <h3 class="form-signin-heading">Profile</h3><br>
75 <div class="ico"><?php echo $icoimg; ?></div><br><br>
76 <div style="width:100%;word-wrap:break-word;text-align:left;">
77 <?php echo "ƒ|ƒCƒ“ƒg: {$pts}<br><br><b>�Љ </b><br> <br>{$info}"; ?>
78 </div>
79 <br><br>
80 <div class="info"><br>
81 </div>
82 </div>
83 </center>
84 </div>
85 </body>
86 </html>