Initial commit
[2ch-be.git] / dev-test / old_dev / test / p2.php
blob079e750fcf84333222d057082880d1db45bf15c8
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=\"".$livesitePath2."/ico/".$ico."\" height=\"\" class='pic'/>";
39 $triper = '';
40 $tmp_triper = trim($data[7]);
42 if(isset($data[7]) && !empty($data[7]) && !empty($tmp_triper))
43 $triper = "<strong>ƒgƒŠƒbƒv:</strong> �Ÿ{$data[7]}<br>";
44 else
45 $triper = "";
46 //$triper = "<strong>ƒgƒŠƒbƒv:</strong> {$data[7]}<br>";
48 include "../include/header.php";
50 $ultravariable = array();
51 foreach ($emoticon as $key => $value) {
52 $ultravariable[] = "<li class=\"lialign\"><img src='{$livesitePath}images/{$key}.gif' data-alt='{$value}'></li>";
54 $sEmote = implode("", $ultravariable);
57 <body>
58 <div class="well well-sm pad3">
60 <div class = "nav nav-header">
61 <?php
62 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
64 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/2ch_logo.gif"/></a>
65 <?php
66 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
68 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/pink.png"/></a>
69 <?php
72 <h5 class="pull-right"> BE 2.0 ƒÀ</h5>
73 </div><!-- nav nav-header-->
75 <hr>
76 <!-- navigation-->
77 <?php
78 if (isset($_COOKIE['DMDM']) && isset($_COOKIE['MDMD'])) {
79 require '../include/nav.php';
83 <!-- end navigation-->
84 <div class="panel panel-default pull-right">
85 <div class="btn-group">
86 <button type="button" class="btn btn-default" id="btnMsg" >
87 <span class="glyphicon glyphicon-envelope"></span>
88 </button>
89 <!--button type="button" class="btn btn-default" onClick="window.location.href='status.php?i=<?php echo $uid; ?>'"-->
90 <!-- <button type="button" class="btn btn-default" onClick="window.location.href='status.php'">
91 <span class="glyphicon glyphicon-home"></span>
92 </button> -->
93 </div><!--btn-group-->
94 </div><!--panel panel-default pull-right-->
95 <div class="panel panel-default pull-right">
96 <!-- <form method="post" action="../transfer.php" target="_blank"> -->
97 <?php //$_SESSION['pmelon'] = $uid; ?>
98 <button type="button" class="btn btn-default" id="btnMelon" >
100 </button>
101 <!-- <input class="btn btn-default" style="font-weight:bold;" type="submit" value="M"> -->
102 <!-- </form> -->
103 </div><!--panel panel-default pull-right-->
104 <br><br>
105 <div class="ic panel panel-default pull-left">
106 <?php echo $icoimg; ?>
107 </div><!--ic panel panel-default pull-left-->
109 <div class="info panel panel-default txt">
110 <h5><strong>ƒ|ƒCƒ“ƒg:</strong><span class="badge"><?php echo $pts ?></span></h5>
111 <h5><strong></strong><?php echo $triper ?></h5>
112 <hr class="hrw">
113 <h5><strong>�Љ</strong></h5>
114 <h5 class="just txt">
115 <?php echo $info ?>
116 </h5>
118 </div><!--info panel panel-default-->
119 <?php
120 if(!empty($_SESSION['alert'])){
121 echo $_SESSION['alert'];
122 $_SESSION['alert'] = '';
127 <div class="panel3 panel panel-default" id="melonForm" style="display: none;">
128 <form class="form" method="post" action="<?php echo $livesitePath ?>transfer.php" id="sendMessage">
129 <div class="form-group">
130 <div class="input-group">
131 <span class="input-group-addon">‘¡‚éƒ|ƒCƒ“ƒg‚Ì�” :</span>
132 <input type="hidden" name="recipient" value="<?php echo $uid ?>">
133 <input type="text" class="form-control" name="points" required>
134 <div class="clearfix"></div>
135 </div>
136 </div>
137 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
138 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
139 <input type="submit" value="‘—‚é" name="pTransfer" class="btn btn-default textpanel pull-left" id="send"/>
140 <div class="clearfix"></div>
141 </form>
142 </div>
144 <div class="panel3 panel panel-default" id="SendForm">
145 <form class="form" method="post" action="<?php echo $livesitePath ?>message_proc.php" id="sendMessage">
146 <input type="hidden" value="<?php echo $uid; ?>" name="zxcvbnm"> <!-- need enc -->
147 <div class="form-group">
148 <div class="input-group">
149 <span class="input-group-addon">Œ�–¼ :</span>
150 <input type="text" class="form-control" name="subj" required>
151 <div class="clearfix"></div>
152 </div>
153 </div>
154 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
155 <div class="form-group">
156 <textarea rows="4" class="form-control top" name="msg" maxlength="250" id="msg"></textarea>
157 </div>
158 <div class="btn-group">
159 <input type="button" class="btn btn-default dropdown-toggle pull-left textpanel" data-toggle="dropdown" value="ŠG•¶Žš">
160 <ul class="dropdown-menu dropdown-menu-right" role="menu" id="emoji">
161 <?php echo $sEmote ?>
162 </ul>
163 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
164 <input type="submit" value="‘—‚é" class="btn btn-default textpanel pull-left" id="send"/>
165 <div class="clearfix"></div>
166 </form>
167 </div>
168 </div>
170 </div> <!--well well-lg-->
171 <?php
172 define('__ROOT__', dirname(dirname(__FILE__)));
173 require __ROOT__.'/include/footer.php';