Initial commit
[2ch-be.git] / prof.php
blobae387054e4dffdb4a459d6ecbd27cc7c475a7097
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($id_mail_path);
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");
35 $ico = trim($data[5]);
36 $pts = trim($data[3]);
37 $info = trim(urldecode($data[6]));
38 $icoimg = "<img src=\"http://204.63.8.28/ico/".$ico."\" height=\"100%\" class='pic'/>";
39 $triper = '';
41 if(isset($data[7]) && !empty($data[7]))
42 $triper = "<strong>ƒgƒŠƒbƒv:</strong> �Ÿ{$data[7]}<br>";
43 require 'include/header.php';
47 <body>
48 <div class="well well-sm pad3">
49 <div class = "nav nav-header">
50 <a href="" class="pull-right"><img src="css/img/2ch_logo.gif"/></a>
51 <h5 class="pull-right"> BE 2.0 ƒÀ</h5>
52 </div><!-- nav nav-header-->
54 <hr>
56 <div class="panel panel-default pull-right">
57 <div class="btn-group">
58 <button type="button" class="btn btn-default" id="btnMsg" >
59 <span class="glyphicon glyphicon-envelope"></span>
60 </button>
61 <!--button type="button" class="btn btn-default" onClick="window.location.href='status.php?i=<?php echo $uid; ?>'"-->
62 <!-- <button type="button" class="btn btn-default" onClick="window.location.href='status.php'">
63 <span class="glyphicon glyphicon-home"></span>
64 </button> -->
65 </div><!--btn-group-->
66 </div><!--panel panel-default pull-right-->
67 <br><br>
68 <div class="ic panel panel-default pull-left">
69 <?php echo $icoimg; ?>
70 </div><!--ic panel panel-default pull-left-->
72 <div class="info panel panel-default txt">
73 <h5><strong>ƒ|ƒCƒ“ƒg:</strong><span class="badge"><?php echo $pts ?></span></h5>
74 <h5><strong></strong><?php echo $triper ?></h5>
75 <hr class="hrw">
76 <h5><strong>�Љ</strong></h5>
77 <h5 class="just txt">
78 <?php echo $info ?>
79 </h5>
81 </div><!--info panel panel-default-->
83 <div class="panel3 panel panel-default" id="SendForm">
84 <form class="form" method="post" action="message_proc.php" id="sendMessage">
85 <input type="hidden" value="<?php echo $uid; ?>" name="zxcvbnm"> <!-- need enc -->
88 <div class="form-group">
89 <div class="input-group">
90 <span class="input-group-addon">Subject:</span>
91 <input type="text" class="form-control" name="subj" required>
92 </div>
93 </div>
94 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
95 <div class="form-group">
96 <textarea rows="4" class="form-control top" name="msg" maxlength="250" id="msg"></textarea>
97 </div>
98 <input type="reset" value="Cancel" class="btn btn-default textpanel pull-left" id="cancel"/>
99 <input type="submit" value="Send" class="btn btn-default textpanel pull-left" id="send"/>
101 <div class="clearfix"></div>
102 </form>
103 </div>
105 </div> <!--well well-lg-->
106 <?php require('include/footer.php'); ?>