Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("dtoverride.php");
- dbc();
- require_once("connection.php");
- $coodata = secure_uid_cookie($_COOKIE["uid"]);
- $user_data = mysql_fetch_assoc(mysql_query("SELECT * FROM user_data WHERE user_id = " . $coodata . " LIMIT 1"));
- $usr = $user_data["mushroom"];
- $wys = "=number_format($usr/100, 2, ',' , ',')";
- if(proof_uid_cookie($_COOKIE["uid"]) == "0")
- {
- echo <<< END
- <br><br><br><br><br>
- <div class="alert alert-danger" role="alert">
- <a href="index.php" class="alert-link"><center><h1><font color ="yellow"><h1>Aby móc w pełni korzystać z sklepu musisz się zalogować ! </font></center></a>
- </div>
- END;
- }
- if (isset($_POST['check_code']) && isset($_POST['code'])) {
- $id = 0;
- $code = addslashes($_POST['code']);
- $number = 74068;
- $desc = "Kupno grzybków";
- $api = @file_get_contents("https://lvlup.pro/api/checksms?id=".$id."&code=".$code."&number=".$number."&desc=".$desc);
- $json = json_decode($api);
- if(empty($code))
- {
- echo 'Brak kodu SMS.';
- $error = 1;
- }
- else if (!isset($api))
- {
- echo 'Brak połączania z API';
- $error = 1;
- }
- else if (isset($api->error) && $api->error)
- {
- echo $api->error;
- $error = 1;
- }
- if(!isset($error))
- {
- $api = json_decode($api);
- if (is_object($api) AND $api->status == 'OK') {
- echo 'Transakcja przebiegła prawidłowo Doładowano 500 grzybów !';
- mysql_query("UPDATE user_data SET mushroom=mushroom+500, mushroom_bought=mushroom_bought+500 WHERE user_id = $coodata ");
- } else {
- echo 'Błędny kod';
- }
- }
- }
- ?>
- <br><br><br><br>
- <meta charset="utf-8" />
- <style type="text/css">
- body {
- background-image:url(http://sfplay.hostmc.pl/game/res/shop/bgg.png);
- background-repeat:no-repeat;
- background-position:top center;
- background-size:100% 100%;
- background-color:#000000;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- color: #FFFFFF;
- margin: 50px auto auto 0;
- background-attachment:fixed;
- }
- a:link { text-decoration:none; color:#ffd9aa; }
- a:visited { text-decoration:none; color:#ffd9aa; }
- a:hover { text-decoration:underline; color:#ffd9aa; }
- a:active { text-decoration:none; color:#ffd9aa; }
- a:focus { text-decoration:none; color:#ffd9aa; }
- h1{
- font-size: 1.2em;
- font-weight: bold;
- padding:0;
- margin:0;
- margin-bottom: 0.5em;
- }
- #box {
- background:rgba(0,0,0,0.7);
- padding: 10px;
- width: 800px;
- -moz-border-radius:30px 30px 30px 30px;
- -webkit-border-radius:30px 30px 30px 30px;
- -khtml-border-radius:30px 30px 30px 30px;
- border-radius:30px 30px 30px 30px;
- behavior:url(border-radius.htc);
- }
- </style>
- <center>
- <div id="box" style="font-family: Tahoma, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: auto;">
- <ol type="I">
- <title>SMS Shop</title>
- <form action="index.php" method="post">
- <h1><font color="red" />Kup Grzyby dla postaci:</font></h1><font color="lime" /><h1></u><?=$user_data["user_name"]?>(ID: <?=$user_data["user_id"]?>)</font></u><br><br>
- <select id="blue" name="wybor">
- <optgroup label="Wybierz płatność która Cie interesuje">
- <option value="1">500 Grzybów - SMS o treści AP.HOSTMC na numer 74068 koszt 4,92 zł </option>
- </optgroup>
- </select>
- <br><br>
- <form method="post">
- <h4>Kod SMS</h4>
- <input class="form-control" type="text" name="code" class="text" size="15" value="" /><br><br>
- <input name="check_code" type="submit" value="Sprawdz" />
- </form>
- </ol>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment