Initial commit
[2ch-be.git] / dev-test / rewrite / test / asdf.php
bloba042f914fb6de0578c59ad76c51f97acab20b4ea
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%\"/>";
41 $triper = '';
42 if(isset($data[7]) && !empty($data[7]))
43 $triper = "<br>ƒgƒŠƒbƒv: {$data[7]}<br>";
46 <!DOCTYPE html>
47 <html lang="en">
48 <head>
49 <meta charset="Shift_JIS">
50 <title>ƒXƒe�[ƒ^ƒXƒy�[ƒW</title>
51 <meta name="viewport" content="width=device-width, initial-scale=1.0">
52 <meta name="description" content="">
53 <meta name="author" content="">
54 <link rel="stylesheet" type="text/css" href="css/style.css"/>
55 </head>
56 <body>
57 <div class="containerz">
58 <div class="navbar-collapse">
59 <ul class="nav navbar-nav">
60 </ul>
61 </div>
62 </div>
64 <div class="container">
65 <center>
66 <div class="form-signin" style = "font-size: 1.2em;text-align:right;">
67 <a href="http://www.2ch.net/">
68 <img src="http://www.2ch.net/images/2ch_logo.gif">
69 </a><br>
70 BE 2.0 ƒÀ
71 </div>
72 </center>
73 </div>
75 <div class="container">
76 <center>
77 <div class="form-signin">
78 <h3 class="form-signin-heading">Profile</h3><br>
79 <div class="ico"><?php echo $icoimg; ?></div><br><br>
80 <div style="width:100%;word-wrap:break-word;text-align:left;">
81 <?php echo "ƒ|ƒCƒ“ƒg: {$pts}<br>$triper<br><b>�Љ </b><br> <br>{$info}"; ?>
82 </div>
83 <br><br>
84 <div class="info"><br>
85 </div>
86 </div>
87 </center>
88 </div>
89 </body>
90 </html>