Initial commit
[2ch-be.git] / dev-test / test / p.bak.php
blobd69eedfefaf79ed57b88590f41fd2de5ccddd529
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";
51 $emoticon = array(
52 'amazed' => '::amazed::',
53 'cry' => '::cry::',
54 'okay' => '::okay::',
55 'treasure' => '::treasure::',
56 'angry' => '::angry::',
57 'gangster' => '::gangster::',
58 'shame' => '::shame::',
59 'wink' => '::wink::',
60 'annoyed' => '::annoyed::',
61 'laugh' => '::laugh::',
62 'sick' => '::sick::',
63 'blush' => '::blush::',
64 'sing' => '::sing::',
65 'chocked' => '::chocked::',
66 'smile' => '::smile::',
67 'confused' => '::confused::',
68 'ninja' => '::ninja::',
69 'tongue' => '::tongue::',
70 'lawyer' => '::lawyer::',
71 'guru' => '::guru::'
74 $ultravariable = array();
75 foreach ($emoticon as $key => $value) {
76 $ultravariable[] = "<li class=\"lialign\"><img src='{$livesitePath}images/{$key}.gif' data-alt='{$value}'></li>";
78 $sEmote = implode("", $ultravariable);
81 <body>
82 <div class="well well-sm pad3">
84 <div class = "nav nav-header">
85 <?php
86 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
88 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/2ch_logo.gif"/></a>
89 <?php
90 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
92 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/pink.png"/></a>
93 <?php
96 <h5 class="pull-right"> BE 2.0 </h5>
97 </div><!-- nav nav-header-->
99 <hr>
100 <!-- navigation-->
101 <?php
102 if (isset($_COOKIE['DMDM']) && isset($_COOKIE['MDMD'])) {
103 require '../include/nav.php';
107 <!-- end navigation-->
108 <div class="panel panel-default pull-right">
109 <div class="btn-group">
110 <button type="button" class="btn btn-default" id="btnMsg" >
111 <span class="glyphicon glyphicon-envelope"></span>
112 </button>
113 <!--button type="button" class="btn btn-default" onClick="window.location.href='status.php?i=<?php echo $uid; ?>'"-->
114 <!-- <button type="button" class="btn btn-default" onClick="window.location.href='status.php'">
115 <span class="glyphicon glyphicon-home"></span>
116 </button> -->
117 </div><!--btn-group-->
118 </div><!--panel panel-default pull-right-->
119 <div class="panel panel-default pull-right">
120 <!-- <form method="post" action="../transfer.php" target="_blank"> -->
121 <?php //$_SESSION['pmelon'] = $uid; ?>
122 <button type="button" class="btn btn-default" id="btnMelon" >
123 <!--strong>M</strong-->
124 <span class="glyphicon glyphicon-gift"></span>
125 </button>
126 <!-- <input class="btn btn-default" style="font-weight:bold;" type="submit" value="M"> -->
127 <!-- </form> -->
128 </div><!--panel panel-default pull-right-->
129 <br><br>
130 <div class="ic panel panel-default pull-left">
131 <?php echo $icoimg; ?>
132 </div><!--ic panel panel-default pull-left-->
134 <div class="info panel panel-default txt">
135 <h5><strong>ƒ|ƒCƒ“ƒg:</strong> <span class="badge"><?php echo $pts ?></span></h5>
136 <h5><strong></strong><?php echo $triper ?></h5>
137 <hr class="hrw">
138 <h5><strong>�Љ</strong></h5>
139 <h5 class="just txt">
140 <?php echo $info ?>
141 </h5>
143 </div><!--info panel panel-default-->
144 <?php
145 if(!empty($_SESSION['alert'])){
146 echo $_SESSION['alert'];
147 $_SESSION['alert'] = '';
152 <div class="panel3 panel panel-default" id="melonForm" style="display: none;">
153 <form class="form" method="post" action="<?php echo $livesitePath ?>transfer.php" id="sendMessage">
154 <div class="form-group">
155 <div class="input-group">
156 <span class="input-group-addon">ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg :</span>
157 <input type="hidden" name="recipient" value="<?php echo $_GET['i']; ?>">
158 <input type="text" class="form-control" name="points" required>
159 <div class="clearfix"></div>
160 </div>
161 </div>
162 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
163 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
164 <input type="submit" value="‘¡‚é" name="pTransfer" class="btn btn-default textpanel pull-left" id="send"/>
165 <div class="clearfix"></div>
166 </form>
167 </div>
169 <div class="panel3 panel panel-default" id="SendForm">
170 <form class="form" method="post" action="<?php echo $livesitePath ?>message_proc.php" id="sendMessage">
171 <input type="hidden" value="<?php echo $_GET['i']; ?>" name="zxcvbnm"> <!-- need enc -->
172 <div class="form-group">
173 <div class="input-group">
174 <span class="input-group-addon">Œ�–¼ :</span>
175 <input type="text" class="form-control" name="subj" required>
176 <div class="clearfix"></div>
177 </div>
178 </div>
179 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
180 <div class="form-group">
181 <textarea rows="4" class="form-control top" name="msg" maxlength="250" id="msg"></textarea>
182 </div>
183 <div class="btn-group">
184 <input type="button" class="btn btn-default dropdown-toggle pull-left textpanel" data-toggle="dropdown" value="ŠG•¶Žš">
185 <ul class="dropdown-menu dropdown-menu-right" role="menu" id="emoji">
186 <?php echo $sEmote ?>
187 </ul>
188 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
189 <input type="submit" value="‘—‚é" class="btn btn-default textpanel pull-left" id="send"/>
190 <div class="clearfix"></div>
191 </form>
192 </div>
193 </div>
195 </div> <!--well well-lg-->
196 <?php
197 define('__ROOT__', dirname(dirname(__FILE__)));
198 require __ROOT__.'/include/footer.php';