3 include('../encrypt.php');
5 $email = Decrypt($_COOKIE['DMDM'],KEY
);
6 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
7 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)) {
11 if(isset($_POST['transfer']) && !empty($_POST['transfer'])) {
13 if(is_numeric($_POST['points'])){
14 $error = "ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢";
15 foreach($_POST as $index=>$value){
19 $emptyVar .= "<br>ƒ�ƒ�ƒ“ƒ|ƒCƒ“ƒg";
23 $emptyVar .= "<br>Žó—eŽÒ";
30 if(!isset($emptyVar)){
31 $pts = addslashes(strip_tags(trim($_POST['points'])));
33 $id = addslashes(strip_tags(trim($_POST['recipient'])));
35 $recipient = $fuser->FindUser($id,$id_mail_path);
39 $trimmedPts = trim(file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email));
42 if($trimmedPts < $pts) {
43 $_SESSION['error'] = "‚ ‚È‚½‚Í‚Ì�\•ª‚ȃ|ƒCƒ“ƒg‚ðŽ�‚Á‚Ä‚¢‚È‚¢";
45 $points = file_get_contents("http://tpol27.nttec.com/dev/melon.php?conv=".$pts."&usr=".$email."&ip=".$_SERVER['REMOTE_ADDR']."&trans=sent");
49 $points = file_get_contents("http://tpol27.nttec.com/dev/melon.php?uname=".$recipient."&pts=".$pts."&ip=".$_SERVER['REMOTE_ADDR']."&animal=".$animal."&trans=receive");
50 $_SESSION['error'] = "“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg";
51 header("Location: transfer.php");
55 $_SESSION['error'] = "ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢";
56 header("Location: transfer.php");
61 $_SESSION['error'] = "ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ";
62 header("Location: transfer.php");
66 $_SESSION['error'] = "–³Œø‚ȃ|ƒCƒ“ƒg";
67 header("Location: transfer.php");
74 $_SESSION['error'] = "–³Œø‚ȃ|ƒCƒ“ƒg";
75 header("Location: transfer.php");
83 <meta charset
="Shift_JIS">
84 <title
>“
]‘—ƒ|ƒCƒ“ƒg
</title
>
85 <meta name
="viewport" content
="width=device-width, initial-scale=1.0">
86 <meta name
="description" content
="">
87 <meta name
="author" content
="">
88 <link rel
="stylesheet" type
="text/css" href
="<?php echo $livesitePath ?>css/style.css"/>
98 $varMessage = $_SESSION['error'];
99 // echo $varMessage.'xx';
100 if(!empty($varMessage)){
102 $_SESSION['error'] = "";
105 <div
class="containerz">
106 <div
class="navbar-collapse">
107 <ul
class="nav navbar-nav">
112 <div
class="container">
114 <div
class="form-signin" style
= "font-size: 1.2em;text-align:right;">
116 if($_SERVER['SERVER_NAME'] == "be.2ch.net") {
118 <a href
="http://www.2ch.net/" target
="_BLANK">
119 <img src
="<?php echo $livesitePath ?>css/img/2ch_logo.gif">
122 } elseif ($_SERVER['SERVER_NAME'] == "be.bbspink.com") {
124 <a href
="http://www.bbspink.com/" target
="_BLANK">
125 <img src
="<?php echo $livesitePath ?>css/img/pink.png">
131 BE
2.0<?php
echo (detect_device($_SERVER['HTTP_USER_AGENT'])) ?
"ƒÀ" : "" ?
>
135 <div
class="container">
137 <form
class="form-signin" method
="post">
139 $cpts = file_get_contents("http://tpol27.nttec.com/dev/melon.php?email=".$email);
140 echo "ƒ�ƒ�ƒ“‚̃|ƒCƒ“ƒg: <span class='green'>".$cpts."</span></b><br><br>";
143 <input type
="text" name
="points" placeholder
="‘¡‚éƒ|ƒCƒ“ƒg‚Ì�”"><br
>
144 <input type
="text" name
="recipient" placeholder
="ŽóŽæ�l‚ÌID"><br
>
145 <input type
="submit" name
="transfer" value
="‘—�M"><br
>