2 include('encrypt.php');
4 $email = Decrypt($_COOKIE['DMDM'],KEY
);
5 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
6 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)) {
7 header("Location: index.php");
11 if(isset($_POST['transfer']) && !empty($_POST['transfer']) ||
isset($_POST['pTransfer']) ) {
13 if($_POST['pTransfer']){
14 $pageHeader = $livesitePath.'test/p.php?i='.$_POST['recipient'];
15 $sessionVar = 'alert';
17 $pageHeader = 'transfer.php';
18 $sessionVar = 'error';
21 if(is_numeric($_POST['points'])){
22 $error = "ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢";
23 foreach($_POST as $index=>$value){
27 $emptyVar .= "<br>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg";
31 $emptyVar .= "<br>Žó—eŽÒ";
38 if(!isset($emptyVar)){
39 $pts = addslashes(strip_tags(trim($_POST['points'])));
41 $id = addslashes(strip_tags(trim($_POST['recipient'])));
43 $recipient = $fuser->FindUser($id,$id_mail_path);
44 $trimmedPts = trim(file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email));
46 if($trimmedPts < $pts) {
47 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"‚ ‚È‚½‚Í‚Ì�\•ª‚ȃ|ƒCƒ“ƒg‚ðŽ�‚Á‚Ä‚¢‚È‚¢" : "<div class=\"alert alert-danger\">‚ ‚È‚½‚Í‚Ì�\•ª‚ȃ|ƒCƒ“ƒg‚ðŽ�‚Á‚Ä‚¢‚È‚¢</div>";
48 header("Location: ".$pageHeader);
51 $points = file_get_contents("http://tpol27.nttec.com/dev/melon.php?conv=".$pts."&usr=".$email."&ip=".$_SERVER['REMOTE_ADDR']."&trans=sent");
55 $points = file_get_contents("http://tpol27.nttec.com/dev/melon.php?uname=".$recipient."&pts=".$pts."&ip=".$_SERVER['REMOTE_ADDR']."&animal=".$animal."&trans=receive");
56 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg" : "<div class=\"alert alert-success\">“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg</div>";
58 file_get_contents("http://207.29.229.25/tmail.php?usname=".trim($recipient)."&tkn=gokp5WATBYOovz2S4LKo");
61 header("Location: ".$pageHeader);
66 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢" : "<div class=\"alert alert-danger\">ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢</div>";
67 header("Location: ".$pageHeader);
72 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ" : "<div class=\"alert alert-danger\">ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ</div>";
73 header("Location: ".$pageHeader);
77 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
78 header("Location: ".$pageHeader);
85 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
86 header("Location: ".$pageHeader);
94 <meta charset
="Shift_JIS">
95 <title
>“
]‘—ƒ|ƒCƒ“ƒg
</title
>
96 <meta name
="viewport" content
="width=device-width, initial-scale=1.0">
97 <meta name
="description" content
="">
98 <meta name
="author" content
="">
99 <link rel
="stylesheet" type
="text/css" href
="<?php echo $livesitePath ?>css/style.css"/>
109 $varMessage = $_SESSION['error'];
110 // echo $varMessage.'xx';
111 //if(!empty($varMessage)){
113 // $_SESSION['error'] = "";
116 <div
class="containerz">
117 <div
class="navbar-collapse">
118 <ul
class="nav navbar-nav">
123 <div
class="container">
125 <div
class="form-signin" style
= "font-size: 1.2em;text-align:right;">
127 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
129 <a href
="http://www.2ch.net/" target
="_BLANK">
130 <img src
="<?php echo $livesitePath ?>css/img/2ch_logo.gif">
133 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
135 <a href
="http://www.bbspink.com/" target
="_BLANK">
136 <img src
="<?php echo $livesitePath ?>css/img/pink.png">
146 <div
class="container">
148 <form
class="form-signin" method
="post">
150 $cpts = file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email);
151 echo "ƒ�ƒ�ƒ“‚̃|ƒCƒ“ƒg: <span class='green'>".$cpts."</span></b><br><br>";
154 <input type
="text" name
="points" placeholder
="‘¡‚éƒ|ƒCƒ“ƒg‚Ì�”"><br
>
156 if(isset($_POST['pmelon']) && !empty($_POST['pmelon'])) {
157 $_SESSION['pmelon'] = addslashes(strip_tags(trim($_POST['pmelon'])));
158 $_SESSION['vmelon'] = TRUE;
159 header("Location: transfer.php");
162 } elseif($_SESSION['pmelon'] && $_SESSION['vmelon']) {
163 echo "<input type=\"text\" value=\"".addslashes(strip_tags(trim($_SESSION['pmelon'])))."\" disabled>
164 <input type=\"hidden\" name=\"recipient\" value=\"".addslashes(strip_tags(trim($_SESSION['pmelon'])))."\"><br>";
167 echo "<input type=\"text\" name=\"recipient\" placeholder=\"ŽóŽæ�l‚ÌID\"><br>";
170 <input type
="submit" name
="transfer" value
="‘—�M"><br
>
172 if(!empty($varMessage)){
173 echo "<div style=\"padding:5px; margin-top:8px; background-color:#D6D6D6; \">". $varMessage . "</div>";
174 $_SESSION['error'] = "";