Initial commit
[2ch-be.git] / dev-test / bak / zxc.php
blob0c3df907ec31378e897eb85baaae81ac07fc0ab6
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."\" 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";
47 <body>
48 <div class="well well-sm pad3">
49 <!-- navigation-->
50 <?php
51 if (isset($_COOKIE['DMDM']) && isset($_COOKIE['MDMD'])) {
52 require '../include/nav.php';
56 <!-- end navigation-->
58 <div class = "nav nav-header">
59 <?php
60 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
62 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/2ch_logo.gif"/></a>
63 <?php
64 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
66 <a href="<?php echo $livesitePath ?>" class="pull-right"><img src="<?php echo $livesitePath ?>css/img/pink.png"/></a>
67 <?php
70 <h5 class="pull-right"> BE 2.0 ƒÀ</h5>
71 </div><!-- nav nav-header-->
73 <hr>
75 <div class="panel panel-default pull-right">
76 <div class="btn-group">
77 <button type="button" class="btn btn-default" id="btnMsg" >
78 <span class="glyphicon glyphicon-envelope"></span>
79 </button>
80 <!--button type="button" class="btn btn-default" onClick="window.location.href='status.php?i=<?php echo $uid; ?>'"-->
81 <!-- <button type="button" class="btn btn-default" onClick="window.location.href='status.php'">
82 <span class="glyphicon glyphicon-home"></span>
83 </button> -->
84 </div><!--btn-group-->
85 </div><!--panel panel-default pull-right-->
86 <br><br>
87 <div class="ic panel panel-default pull-left">
88 <?php echo $icoimg; ?>
89 </div><!--ic panel panel-default pull-left-->
91 <div class="info panel panel-default txt">
92 <h5><strong>ƒ|ƒCƒ“ƒg:</strong><span class="badge"><?php echo $pts ?></span></h5>
93 <h5><strong></strong><?php echo $triper ?></h5>
94 <hr class="hrw">
95 <h5><strong>�Љ</strong></h5>
96 <h5 class="just txt">
97 <?php echo $info ?>
98 </h5>
100 </div><!--info panel panel-default-->
101 <?php
102 if(!empty($_SESSION['alert'])){
103 echo $_SESSION['alert'];
104 $_SESSION['alert'] = '';
109 <div class="panel3 panel panel-default" id="SendForm">
110 <form class="form" method="post" action="<?php echo $livesitePath ?>message_proc.php" id="sendMessage">
111 <input type="hidden" value="<?php echo $uid; ?>" name="zxcvbnm"> <!-- need enc -->
114 <div class="form-group">
115 <div class="input-group">
116 <span class="input-group-addon">Œ�–¼ :</span>
117 <input type="text" class="form-control" name="subj" required>
118 <div class="clearfix"></div>
119 </div>
120 </div>
121 <!--input type="hidden" value="" name="rec"/> <!--receiver -->
122 <div class="form-group">
123 <textarea rows="4" class="form-control top" name="msg" maxlength="250" id="msg"></textarea>
124 </div>
125 <input type="reset" value="ƒLƒƒƒ“ƒZƒ‹" class="btn btn-default textpanel pull-left" id="cancel"/>
126 <input type="submit" value="‘—‚é" class="btn btn-default textpanel pull-left" id="send"/>
128 <div class="clearfix"></div>
129 </form>
130 </div>
132 </div> <!--well well-lg-->
133 <?php require('../include/footer.php'); ?>