Initial commit
[2ch-be.git] / dev-test / dec28bak / status.oct14.php
blob73e5c841ad0315a7b060905253a50c42aef27832
1 <?php
2 //DMDM = email
3 //MDMD = password
4 include('encrypt.php');
5 // isset if login or not
6 if (!isset($_COOKIE['DMDM']) && !isset($_COOKIE['MDMD'])) {
7 header('location:index.php');
8 exit;
11 $icoimg="";
13 $email = Decrypt($_COOKIE['DMDM'],KEY);
14 $email = filter_var($email, FILTER_SANITIZE_EMAIL);
16 if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
17 exit;
20 include('inf.php');
22 $fdir = substr($email, 0, 1);
23 $sdir = substr($email, 1, 1);
24 $data = @file(DB_PATH."$fdir/$sdir/$email");
25 if(count($data)<3) {
26 foreach($_COOKIE as $ky => $vl)
27 setcookie($ky,"",time()-3600);
28 header('location:index.php');
29 exit;
32 for ($i=0; $i < count($data); $i++) {
33 $data[$i] = trim($data[$i]);
35 if(count($data)>5){
36 $mystatus = '';
37 if($data[6]!=FORGOT){
38 $mystatus = urldecode($data[6]);
39 $mystatus = str_replace("<br>","\n",$mystatus);
43 $e_ = (isset($_GET['e_'])) ? strip_tags(addslashes(filter_var($_GET['e_'], FILTER_SANITIZE_STRING))):'';
44 if($e_=='1'){
45 $isforedit =true;
48 if (isset($_GET['ico'])) {
49 $ico = $_GET['ico'];
50 $ico=trim($ico);
51 if(preg_match('/[^a-z_\-0-9._]/i', $ico)){
52 $ico = "";
55 $type = Array(1 => 'gif'); //store all the image extension types in array
56 $ext = explode(".",$ico); //explode and find value after dot
57 if (strlen($ext[0]) <= 0 ) $ico = "nida.gif";
58 if(!(in_array($ext[1],$type))) //check image extension not in the array $type
60 echo "412";
61 exit;
64 $icoimg = "<img src=\"".$livesitePath2."/ico/".$ico."\" class='pic'/>";
65 $data[5] =$ico;
66 $writeData = implode("\n",$data);
67 file_put_contents(DB_PATH."$fdir/$sdir/$email", $writeData);
68 header('location:status.php');
71 // if (isset($_GET['premium'])) {
72 // $ico = $_GET['premium'];
73 // $ico=trim($ico);
74 // if(preg_match('/[^a-z_\-0-9._]/i', $ico)){
75 // $ico ="";
76 // }
78 // $type =Array(1 => 'gif'); //store all the image extension types in array
79 // $ext = explode(".",$ico); //explode and find value after dot
80 // if (strlen($ext[0]) <= 0 ) $ico = "nida.gif";
81 // if(!(in_array($ext[1],$type))) //check image extension not in the array $type
82 // {
83 // echo "412";
84 // exit;
85 // }
87 // $icoimg = "<img src=\"".$livesitePath2."/premium/".$ico."\" class='pic'/>";
88 // $data[5] =$ico."-PREM";
89 // $writeData = implode("\n",$data);
90 // file_put_contents(DB_PATH."$fdir/$sdir/$email", $writeData);
91 // $_SESSION['msg'] = '<div class="alert alert-success">You\'re new avatar is updated.</div>';
92 // header('location:status.php');
93 // exit;
94 // }
96 if (isset($data[5]) && !empty($data[5])) {
97 $ico=trim($data[5]);
98 if(preg_match('/[^a-z_\-0-9._]/i', $ico))
100 $ico ="";
102 if (strpos($ico, "-PREM")) {
103 $ico = explode("-PREM", $ico);
104 $icoimg = "<img src=\"".$livesitePath2."/premium/".$ico[0]."\" class='pic'/>";
105 } else {
106 $icoimg = "<img src=\"".$livesitePath2."/ico/".$ico."\" class='pic'/>";
110 include "include/header.php";
112 $inbox = new Message;
113 $uid = $inbox->GetID($_COOKIE['DMDM'],$id_mail_path);
117 <body>
118 <div class="well well-sm pad3">
120 <!-- navigation-->
121 <?php require 'include/nav.php'; ?>
122 <!-- end navigation-->
123 <?php
125 if(isset($_SESSION['msg'])){
126 echo $_SESSION['msg'];
127 $_SESSION['msg'] = '';
130 <!--<h3 class="form-signin-heading">Xe[^Xy[W</h3>-->
132 <a href="choose.php"><div class="ic panel panel-default pull-left"><?php echo $icoimg; ?></div></a><!-- ACR�gNbNX -->
134 <!-- start tripcode -->
135 <div class="panel2 panel panel-default ">
136 <h5><strong>ƒgƒŠƒbƒv:</strong></h5>
137 <!-- tripcode -->
138 <div class="tripc input-group">
139 <span class="input-group-addon"><strong>#</strong></span>
140 <input type="text" class="form-control" name="trip" id="trip_c" value="<?php print $data[7];?>" />
141 <!-- <input type="text" class="form-control" value="B1VjUMK0na7D"/> -->
142 <span class="input-group-btn">
143 <button class="btn btn-default" type="submit" value="vZ" id="caltrip" />
144 <span class="glyphicon glyphicon-random"></span>
145 </button>
146 </span>
147 </div>
149 </div>
150 <!-- end tripcode!! -->
151 <div class="clearfix"></div>
152 <!-- start status -->
153 <div class="panel4 panel panel-default b ">
154 <strong>�Љ</strong>
155 <?php if(!$isforedit){
156 $hide="";
157 } else {
158 $hide="hide";
160 <form method="post">
161 <?php if(isset($echo)) echo "<span style=\"color:green\">$echo</span>"; ?>
162 <button name="isca" class="bottom btn btn-default pull-right btn-sm">
163 <span class="glyphicon glyphicon-remove"></span>
164 </button>
165 <button name="isub" class="bottom btn btn-default pull-right btn-sm">
166 <span class="glyphicon glyphicon-ok"></span>
167 </button>
168 <div class="clearfix"></div>
169 <textarea rows="4" id="input" name="info" class="textpanel form-control " maxlength="250"><?php echo $mystatus; ?></textarea>
170 </form>
172 <?php
176 <a href="<?php echo $_SERVER['PHP_SELF'] . '?e_=1'; ?>" class="<?php echo $hide; ?> bottom btn btn-default pull-right btn-sm">
177 <span class="glyphicon glyphicon-edit"></span>
178 </a>
179 <div class="clearfix"></div>
180 <div class="<?php echo (detect_device2($_SERVER['HTTP_USER_AGENT'])!="PLSDISPLAY") ? "unclick" : ""; ?> wordwrap_ panel panel-default scroll <?php echo $hide; ?>" > <?php echo $mystatus; ?></div>
182 </div>
183 <!-- end status -->
185 <div class="clearfix"></div>
187 <div class="panel3 panel panel-default txt ">
188 <?php
189 $points = file_get_contents("http://tpol27.nttec.com/melon.php?email=".$email);
190 echo
191 "<h5><strong>Eƒ��[ƒ‹:</strong> ".$data[1]."</h5>
192 <h5><strong>Beƒ|ƒCƒ“ƒg:</strong><span class='badge'> ".$data[3]."</span></h5>
193 <h5><strong>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg:</strong><span class='badge'> ".$points."</span>
196 echo "&nbsp;&nbsp;&nbsp;<a href=\"convert.php\" target=\"_blank\">•ÏŠ·</a>";
197 if(detect_device2($_SERVER['HTTP_USER_AGENT']) == "PLSDISPLAY"){
198 echo "
199 &nbsp;&nbsp;&nbsp;<a href=\"transfer.php\" target=\"_blank\">‘—‚é</a>
200 &nbsp;&nbsp;&nbsp;<a href=\"http://alice-shop.myshopify.com/\" target=\"_blank\">”ƒ‚¤</a>
201 &nbsp;&nbsp;&nbsp;<a href=\"http://alice-shop.myshopify.com/pages/melon-shop-guide\" target=\"_blank\">ƒKƒCƒh</a></h5>
202 <br><a href=\"http://alice-shop.myshopify.com/\">ƒ�ƒ�ƒ“ƒVƒ‡ƒbƒv</a><br><br>
207 <h5>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg‚²—˜—p—š—ð:</h5>
208 <div style="padding:5px;" class="<?php echo (detect_device2($_SERVER['HTTP_USER_AGENT'])!="PLSDISPLAY") ? "logs" : ""; ?> panel panel-default scroll ">
209 <?php
210 $u_log = file_get_contents("http://tpol27.nttec.com/z/user_log.php?usr=".$email);
211 echo trim($u_log);
213 </div>
214 <h4 class="text pull-right"> <a href="logout.php"><span class="label label-danger">ƒ�ƒOƒAƒEƒg</span></a> </h4>
215 <h4 class="text pull-right"> <a href="change_pass.php"><span class="label label-primary">ƒpƒXƒ��[ƒh•Ï�X</span></a> </h4>
216 <div class="clearfix"></div>
217 </div>
219 </div>
221 <?php
222 require 'include/footer.php';