Initial commit
[2ch-be.git] / dev-test / old_dev / old / test / p.php
blobdda8ad7beebdbd8c7dc3b2f021198b1fc0f54154
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 <br>
83 <a href="#" onclick="document.getElementById('msgForm').style.display='block';">Send Message</a>
84 </div>
85 <br>
86 <div id="msgForm" style="display:none">
87 <form method="post" action="../msg.php">
88 <input type="hidden" value="<?php echo $uid ?>" name="zxcvbnm"><!-- needs enc -->
89 <textarea rows="5" name="msg"></textarea><br>
90 <button type="submit">Send</button>
91 <button type="button" onclick="document.getElementById('msgForm').style.display='none';">Cancel</button>
92 </form>
93 </div>
94 <br><br>
95 <div class="info"><br>
96 </div>
97 </div>
98 </center>
99 </div>
100 </body>
101 </html>