Initial commit
[2ch-be.git] / dev-test / bak / p__b_a_c_k.php
blob32e3bb3080033c0c7fd1dd6ac0fdcfb5f5b31325
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 = '';
41 if(isset($data[7]) && !empty($data[7]))
42 $triper = "<strong>ƒgƒŠƒbƒv:</strong> �Ÿ{$data[7]}<br>";
44 include "../include/header.php";
46 $emoticon = array(
47 'amazed' => '::amazed::',
48 'cry' => '::cry::',
49 'okay' => '::okay::',
50 'treasure' => '::treasure::',
51 'angry' => '::angry::',
52 'gangster' => '::gangster::',
53 'shame' => '::shame::',
54 'wink' => '::wink::',
55 'annoyed' => '::annoyed::',
56 'laugh' => '::laugh::',
57 'sick' => '::sick::',
58 'blush' => '::blush::',
59 'sing' => '::sing::',
60 'chocked' => '::chocked::',
61 'smile' => '::smile::',
62 'confused' => '::confused::',
63 'ninja' => '::ninja::',
64 'tongue' => '::tongue::',
65 'lawyer' => '::lawyer::',
66 'guru' => '::guru::',
69 $ultravariable = array();
70 foreach ($emoticon as $key => $value) {
71 $ultravariable[] = "<li class=\"lialign\"><img src='{$livesitePath}images/{$key}.gif' data-alt='{$value}'></li>";
73 $sEmote = implode("", $ultravariable);
76 <body>
77 <div class="well well-sm pad3">
79 <div class = "nav nav-header">
80 <?php
81 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
83 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/2ch_logo.gif"/></a>
84 <?php
85 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
87 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/pink.png"/></a>
88 <?php
91 <h5 class="pull-right"> BE 2.0 ƒÀ</h5>
92 </div><!-- nav nav-header-->
94 <hr>
95 <!-- navigation-->
96 <?php
97 if (isset($_COOKIE['DMDM']) && isset($_COOKIE['MDMD'])) {
98 require '../include/nav.php';
102 <!-- end navigation-->
103 <div class="panel panel-default pull-right">
104 <div class="btn-group">
105 <button type="button" class="btn btn-default" id="btnMsg" >
106 <span class="glyphicon glyphicon-envelope"></span>
107 </button>
108 <!--button type="button" class="btn btn-default" onClick="window.location.href='status.php?i=<?php echo $uid; ?>'"-->
109 <!-- <button type="button" class="btn btn-default" onClick="window.location.href='status.php'">
110 <span class="glyphicon glyphicon-home"></span>
111 </button> -->
112 </div><!--btn-group-->
113 </div><!--panel panel-default pull-right-->
114 <br><br>
115 <div class="ic panel panel-default pull-left">
116 <?php echo $icoimg; ?>
117 </div><!--ic panel panel-default pull-left-->
119 <div class="info panel panel-default txt">
120 <h5><strong>ƒ|ƒCƒ“ƒg:</strong><span class="badge"><?php echo $pts ?></span></h5>
121 <h5><strong></strong><?php echo $triper ?></h5>
122 <hr class="hrw">
123 <h5><strong>�Љ</strong></h5>
124 <h5 class="just txt">
125 <?php echo $info ?>
126 </h5>
128 </div><!--info panel panel-default-->
129 <?php
130 if(!empty($_SESSION['alert'])){
131 echo $_SESSION['alert'];
132 $_SESSION['alert'] = '';
137 <div class="panel3 panel panel-default" id="SendForm">
138 <form class="form" method="post" action="<?php echo $livesitePath ?>message_proc.php" id="sendMessage">
139 <input type="hidden" value="<?php echo $uid; ?>" name="zxcvbnm"> <!-- need enc -->
140 <div class="form-group">
141 <div class="input-group">
142 <span class="input-group-addon">Œ�–¼ :</span>
143 <input type="text" class="form-control" name="subj" required>
144 <div class="clearfix"></div>
145 </div>
146 </div>
147 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
148 <div class="form-group">
149 <textarea rows="4" class="form-control top" name="msg" maxlength="250" id="msg"></textarea>
150 </div>
151 <div class="btn-group">
152 <input type="button" class="btn btn-default dropdown-toggle pull-left textpanel" data-toggle="dropdown" value="ŠG•¶Žš">
153 <ul class="dropdown-menu dropdown-menu-right" role="menu" id="emoji">
154 <?php echo $sEmote ?>
155 </ul>
156 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
157 <input type="submit" value="‘—‚é" class="btn btn-default textpanel pull-left" id="send"/>
158 <div class="clearfix"></div>
159 </form>
160 </div>
161 </div>
163 </div> <!--well well-lg-->
164 <?php
165 define('__ROOT__', dirname(dirname(__FILE__)));
166 require __ROOT__.'/include/footer.php';