2 include('include/config.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'])));
40 $pts = abs(round($pts));
41 $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 = trim(file_get_contents("http://tpol27.nttec.com/melon.php?email=".$email));
47 if($trimmedPts < $pts) {
48 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"‚ ‚È‚½‚Í‚Ì�\•ª‚ȃ|ƒCƒ“ƒg‚ðŽ�‚Á‚Ä‚¢‚È‚¢" : "<div class=\"alert alert-danger\">‚ ‚È‚½‚Í‚Ì�\•ª‚ȃ|ƒCƒ“ƒg‚ðŽ�‚Á‚Ä‚¢‚È‚¢</div>";
49 header("Location: ".$pageHeader);
52 $points = file_get_contents("http://tpol27.nttec.com/melon.php?conv=".$pts."&usr=".$email."&ip=".$_SERVER['REMOTE_ADDR']."&trans=sent&puid=".$id);
56 $points = file_get_contents("http://tpol27.nttec.com/melon.php?uname=".$recipient."&pts=".$pts."&ip=".$_SERVER['REMOTE_ADDR']."&animal=".$animal."&trans=receive&puid=".$sender);
57 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg" : "<div class=\"alert alert-success\">“]‘—‚Ì�¬Œ÷ƒ|ƒCƒ“ƒg</div>";
59 file_get_contents("http://207.29.229.25/tmail.php?usname=".trim($recipient)."&tkn=gokp5WATBYOovz2S4LKo");
62 header("Location: ".$pageHeader);
67 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢" : "<div class=\"alert alert-danger\">ƒGƒ‰�[�A‚à‚¤ˆê“xŽŽ‚µ‚Ä‚‚¾‚³‚¢</div>";
68 header("Location: ".$pageHeader);
73 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ" : "<div class=\"alert alert-danger\">ƒ†�[ƒU�[‚Í‘¶�Ý‚µ‚Ü‚¹‚ñ</div>";
74 header("Location: ".$pageHeader);
78 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
79 header("Location: ".$pageHeader);
86 $_SESSION[$sessionVar] = ($sessionVar=='error') ?
"–³Œø‚ȃ|ƒCƒ“ƒg" : "<div class=\"alert alert-danger\">–³Œø‚ȃ|ƒCƒ“ƒg</div>";
87 header("Location: ".$pageHeader);
91 $title = '“]‘—ƒ|ƒCƒ“ƒg';
92 include 'include/header-front.php';
96 $varMessage = $_SESSION['error'];
98 <div
class="containerz">
99 <div
class="navbar-collapse">
100 <ul
class="nav navbar-nav">
105 <div
class="container">
107 <div
class="form-signin" style
= "font-size: 1.2em;text-align:right;">
109 $logo = logo_breaker($_SERVER['SERVER_NAME']);
111 <a href
="<?php echo $logo['link'] ?>" target
="_BLANK">
112 <img src
="<?php echo $livesitePath ?>css/img/<?php echo $logo['image'] ?>">
120 <div
class="container">
122 <form
class="form-signin" method
="post">
124 $cpts = file_get_contents("http://tpol27.nttec.com/melon.php?email=".$email);
125 echo "ƒ�ƒ�ƒ“‚̃|ƒCƒ“ƒg: <span class='green'>".$cpts."</span></b><br><br>";
128 <input type
="text" name
="points" placeholder
="‘¡‚éƒ|ƒCƒ“ƒg‚Ì�”"><br
>
130 if(isset($_POST['pmelon']) && !empty($_POST['pmelon'])) {
131 $_SESSION['pmelon'] = addslashes(strip_tags(trim($_POST['pmelon'])));
132 $_SESSION['vmelon'] = TRUE;
133 header("Location: transfer.php");
136 } elseif($_SESSION['pmelon'] && $_SESSION['vmelon']) {
137 echo "<input type=\"text\" value=\"".addslashes(strip_tags(trim($_SESSION['pmelon'])))."\" disabled>
138 <input type=\"hidden\" name=\"recipient\" value=\"".addslashes(strip_tags(trim($_SESSION['pmelon'])))."\"><br>";
141 echo "<input type=\"text\" name=\"recipient\" placeholder=\"ŽóŽæ�l‚ÌID\"><br>";
144 <input type
="submit" name
="transfer" value
="‘—�M"><br
>
146 if(!empty($varMessage)){
147 echo "<div style=\"padding:5px; margin-top:8px; background-color:#D6D6D6; \">". $varMessage . "</div>";
148 $_SESSION['error'] = "";