Initial commit
[2ch-be.git] / dev-test / bak / status4.php
blob5ddc8a12066c3355bd87c9f79dc37f9682fc3942
1 <?php
2 // 203 177 235 23
4 //DMDM = email
5 //MDMD = password
6 include('encrypt.php');
7 // isset if login or not
8 if (!isset($_COOKIE['DMDM']) && !isset($_COOKIE['MDMD'])) {
9 header('location:index.php');
10 exit;
13 $icoimg="";
15 $email = Decrypt($_COOKIE['DMDM'],KEY);
16 $email = filter_var($email, FILTER_SANITIZE_EMAIL);
18 if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
19 exit;
22 include('inf.php');
24 $fdir = substr($email, 0, 1);
25 $sdir = substr($email, 1, 1);
26 $data = @file(DB_PATH."$fdir/$sdir/$email");
28 if(count($data)<3) {
29 foreach($_COOKIE as $ky => $vl)
30 setcookie($ky,"",time()-3600);
31 header('location:index.php');
32 exit;
35 for ($i=0; $i < count($data); $i++) {
36 $data[$i] = trim($data[$i]);
38 if(count($data)>5){
39 $mystatus = '';
40 if($data[6]!=FORGOT){
41 $mystatus = urldecode($data[6]);
42 $mystatus = str_replace("<br>","\n",$mystatus);
46 $e_ = (isset($_GET['e_'])) ? strip_tags(addslashes(filter_var($_GET['e_'], FILTER_SANITIZE_STRING))):'';
47 if($e_=='1'){
48 $isforedit =true;
51 if (isset($_GET['ico'])) {
52 $ico = $_GET['ico'];
53 $ico=trim($ico);
54 if(preg_match('/[^a-z_\-0-9._]/i', $ico)){
55 $ico ="";
58 $type =Array(1 => 'gif'); //store all the image extension types in array
59 $ext = explode(".",$ico); //explode and find value after dot
60 if (strlen($ext[0]) <= 0 ) $ico = "nida.gif";
61 if(!(in_array($ext[1],$type))) //check image extension not in the array $type
63 echo "412";
64 exit;
67 $icoimg = "<img src=\"".$livesitePath2."/ico/".$ico."\" class='pic'/>";
68 $data[5] =$ico;
69 $writeData = implode("\n",$data);
70 file_put_contents(DB_PATH."$fdir/$sdir/$email", $writeData);
71 header('location:status.php');
74 if (isset($data[5]) && !empty($data[5])) {
75 $ico=trim($data[5]);
76 if(preg_match('/[^a-z_\-0-9._]/i', $ico))
78 $ico ="";
80 $icoimg = "<img src=\"".$livesitePath2."/ico/".$ico."\" class='pic'/>";
83 include "include/header.php";
85 $inbox = new Message;
86 $uid = $inbox->GetID($_COOKIE['DMDM'],$id_mail_path);
90 <body>
91 <div class="well well-sm pad3">
93 <!-- navigation-->
94 <?php require 'include/nav.php'; ?>
95 <!-- end navigation-->
97 <!--<h3 class="form-signin-heading">Xe[^Xy[W</h3>-->
99 <a href="choose.php"><div class="ic panel panel-default pull-left"><?php echo $icoimg; ?></div></a><!-- ACR�gNbNX -->
101 <!-- start tripcode -->
102 <div class="panel2 panel panel-default ">
103 <h5><strong>ƒgƒŠƒbƒv:</strong></h5>
104 <!-- tripcode -->
105 <div class="tripc input-group">
106 <span class="input-group-addon"><strong>#</strong></span>
107 <input type="text" class="form-control" name="trip" id="trip_c" value="<?php print $data[7];?>" />
108 <!-- <input type="text" class="form-control" value="B1VjUMK0na7D"/> -->
109 <span class="input-group-btn">
110 <button class="btn btn-default" type="submit" value="vZ" id="caltrip" />
111 <span class="glyphicon glyphicon-random"></span>
112 </button>
113 </span>
114 </div>
116 </div>
117 <!-- end tripcode!! -->
119 <!-- start status -->
120 <div class="panel4 panel panel-default b ">
121 <strong>�Љ</strong>
122 <?php if(!$isforedit){
123 $hide="";
124 } else {
125 $hide="hide";
127 <form method="post">
128 <?php if(isset($echo)) echo "<span style=\"color:green\">$echo</span>"; ?>
129 <button name="isca" class="bottom btn btn-default pull-right btn-sm">
130 <span class="glyphicon glyphicon-remove"></span>
131 </button>
132 <button name="isub" class="bottom btn btn-default pull-right btn-sm">
133 <span class="glyphicon glyphicon-ok"></span>
134 </button>
135 <div class="clearfix"></div>
136 <textarea rows="4" id="input" name="info" class="textpanel form-control " maxlength="250"><?php echo $mystatus; ?></textarea>
137 </form>
139 <?php
143 <a href="<?php echo $_SERVER['PHP_SELF'] . '?e_=1'; ?>" class="<?php echo $hide; ?> bottom btn btn-default pull-right btn-sm">
144 <span class="glyphicon glyphicon-edit"></span>
145 </a>
146 <div class="clearfix"></div>
147 <div class="wordwrap_ panel panel-default scroll <?php echo $hide; ?>"> <?php echo $mystatus; ?></div>
149 </div>
150 <!-- end status -->
152 <div class="clearfix"></div>
154 <div class="panel3 panel panel-default txt ">
155 <?php
156 $points = file_get_contents("http://tpol27.nttec.com/melon.php?email=".$email);
157 echo
158 "<h5><strong>Eƒ��[ƒ‹:</strong> ".$data[1]."</h5>
159 <h5><strong>Beƒ|ƒCƒ“ƒg:</strong><span class='badge'> ".$data[3]."</span></h5>
160 <h5><strong>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg:</strong><span class='badge'> ".$points."</span>
162 // if($_SERVER['REMOTE_ADDR'] == "119.93.91.136"){
164 // // echo $webOS = preg_match("/Safari/i",$_SERVER['HTTP_USER_AGENT']);
165 // }
167 echo "&nbsp;&nbsp;&nbsp;<a href=\"convert.php\" target=\"_blank\">•ÏŠ·</a>";
168 echo "&nbsp;&nbsp;&nbsp;<a href=\"transfer.php\" target=\"_blank\">‘—‚é</a>";
169 // if($_SERVER['REMOTE_ADDR'] == "203.177.235.23"){
170 // echo "<br>".$_SERVER['HTTP_USER_AGENT']."<br>";
171 // echo detect_device2($_SERVER['HTTP_USER_AGENT']);
172 // // if(detect_device("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0") == "PLSDISPLAY"){
173 // // echo "PLSDISPLAY";
174 // // }else{
175 // // echo "dont display";
176 // }
177 if(detect_device2($_SERVER['HTTP_USER_AGENT']) == "PLSDISPLAY"){
178 echo "
179 &nbsp;&nbsp;&nbsp;<a href=\"http://alice-shop.myshopify.com/\" target=\"_blank\">”ƒ‚¤</a>
180 &nbsp;&nbsp;&nbsp;<a href=\"http://alice-shop.myshopify.com/pages/melon-shop-guide\" target=\"_blank\">ƒKƒCƒh</a></h5>
181 <br><a href=\"http://alice-shop.myshopify.com/\">ƒ�ƒ�ƒ“ƒVƒ‡ƒbƒv</a><br><br>
184 // }
187 <h5>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg‚²—˜—p—š—ð:</h5>
188 <div class="wordwrap_ panel panel-default scroll ">
189 <?php
190 $u_log = file_get_contents("http://tpol27.nttec.com/z/user_log.php?usr=".$email);
191 echo $u_log;
193 </div>
194 <h4 class="text pull-right"> <a href="logout.php"><span class="label label-danger">ƒ�ƒOƒAƒEƒg</span></a> </h4>
195 <h4 class="text pull-right"> <a href="change_pass.php"><span class="label label-primary">ƒpƒXƒ��[ƒh•Ï�X</span></a> </h4>
196 <div class="clearfix"></div>
197 </div>
199 </div>
201 <?php
202 require 'include/footer.php';