2 include('encrypt.php');
4 $email = Decrypt($_COOKIE['DMDM'],KEY
);
6 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
7 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)) {
8 header("Location: index.php");
12 if(isset($_POST['transfer']) && !empty($_POST['transfer']) ||
isset($_POST['pTransfer']) ) {
14 if($_POST['pTransfer']){
15 $pageHeader = $livesitePath.'test/p.php?i='.$_POST['recipient'];
16 $sessionVar = 'alert';
18 $pageHeader = 'melontobe.php';
19 $sessionVar = 'error';
22 if(is_numeric($_POST['points'])){
23 $error = "ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢";
24 foreach($_POST as $index=>$value){
28 $emptyVar .= "<br>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg";
32 $emptyVar .= "<br>Žó—eŽÒ";
39 if(!isset($emptyVar)){
40 $pts = addslashes(strip_tags(trim($_POST['points'])));
41 $pts = abs(round($pts));
42 $id = addslashes(strip_tags(trim($_POST['recipient'])));
43 $recipient = $fuser->FindUser($id,$id_mail_path);
44 $sender = trim($fuser->GetID($_COOKIE['DMDM'],$id_mail_path));
45 $trimmedPts = file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email);
46 /*$trimmedPts = $fuser->BEPoints($email);*/
49 if($trimmedPts < $pts) {
50 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg‚ª‘«‚è‚Ü‚¹‚ñ�B" : "<div class=\"alert alert-danger\">ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg‚ª‘«‚è‚Ü‚¹‚ñ�B</div>";
51 header("Location: ".$pageHeader);
55 $points = file_get_contents("http://tpol27.nttec.com/dev/melon.php?conv=".$pts."&usr=".$email."&ip=".$_SERVER['REMOTE_ADDR']."&trans=sent&puid=".$id);
59 // $writeLogs = file_get_contents("http://tpol27.nttec.com/dev/melon.php?conv=".$pts."&usr=".$email."&ip=".$_SERVER['REMOTE_ADDR']);
60 if ($fuser->AddBEpoints($recipient, $pts)){
61 $writeLogs = file_get_contents("http://tpol27.nttec.com/dev/melon.php?write=bepoints&usr=".$recipient."&pts=".$pts."&ip=".$_SERVER['REMOTE_ADDR']."&trans=recievedbepts&ft=".$sender);
62 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"�¬Œ÷" : "<div class=\"alert alert-success\">�¬Œ÷</div>";
63 header("Location: ".$pageHeader);
66 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"Ž¸”s‚·‚é" : "<div class=\"alert alert-danger\">Ž¸”s‚·‚é</div>";
67 header("Location: ".$pageHeader);
72 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg" : "<div class=\"alert alert-success\">“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg</div>";
74 file_get_contents("http://207.29.229.25/tmail.php?usname=".trim($recipient)."&tkn=gokp5WATBYOovz2S4LKo");
75 header("Location: ".$pageHeader);
80 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢" : "<div class=\"alert alert-danger\">ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢</div>";
81 header("Location: ".$pageHeader);
87 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ" : "<div class=\"alert alert-danger\">ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ</div>";
88 header("Location: ".$pageHeader);
92 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
93 header("Location: ".$pageHeader);
97 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
98 header("Location: ".$pageHeader);
106 <meta charset
="Shift_JIS">
107 <title
>“
]‘—ƒ|ƒCƒ“ƒg
</title
>
108 <meta name
="viewport" content
="width=device-width, initial-scale=1.0">
109 <meta name
="description" content
="">
110 <meta name
="author" content
="">
111 <link rel
="stylesheet" type
="text/css" href
="<?php echo $livesitePath ?>css/style.css"/>
121 $varMessage = $_SESSION['error'];
122 // echo $varMessage.'xx';
123 //if(!empty($varMessage)){
125 // $_SESSION['error'] = "";
128 <div
class="containerz">
129 <div
class="navbar-collapse">
130 <ul
class="nav navbar-nav">
135 <div
class="container">
137 <div
class="form-signin" style
= "font-size: 1.2em;text-align:right;">
139 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
141 <a href
="http://www.2ch.net/" target
="_BLANK">
142 <img src
="<?php echo $livesitePath ?>css/img/2ch_logo.gif">
145 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
147 <a href
="http://www.bbspink.com/" target
="_BLANK">
148 <img src
="<?php echo $livesitePath ?>css/img/pink.png">
158 <div
class="container">
160 <form
class="form-signin" method
="post">
162 $cpts = file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email);
163 echo "ƒ�ƒ�ƒ“‚̃|ƒCƒ“ƒg: <span class='green'>".$cpts."</span></b><br><br>";
166 <input type
="text" name
="points" placeholder
="BEƒ|ƒCƒ“ƒg(—vMP)"><br
>
167 <input type
="text" name
="recipient" placeholder
="ŽóŽæ�l‚ÌID"><br
>
168 <input type
="submit" name
="transfer" value
="‘—�M"><br
>
170 if(!empty($varMessage)){
171 echo "<div style=\"padding:5px; margin-top:8px; background-color:#D6D6D6; \">". $varMessage . "</div>";
172 $_SESSION['error'] = "";