Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "config.php";
- //include "libs/connect.php";
- //include "libs/historybuy.php";
- ?>
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <link rel="icon" type="image/png" href="<?php echo $settings['urlsite']; ?>/images/favicon.png">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="<?php echo $settings['description']; ?>">
- <meta property="og:type" content="website">
- <meta property="og:title" content="<?php echo $settings['Tittle']; ?>">
- <meta property="og:image" content="<?php echo $settings['urlsite']; ?><?php echo $settings['Image']; ?>">
- <meta property="og:description" content="<?php echo $settings['ogdescription']; ?>">
- <meta property="og:url" content="<?php echo $settings['urlsite']; ?>/">
- <title>Red Mania | Магазин</title>
- <link rel="stylesheet" href="<?php echo $settings['urlsite']; ?>/css/bootstrap.css">
- <link rel="stylesheet" href="<?php echo $settings['urlsite']; ?>/css/style.css">
- </head>
- <body>
- <!-- Шапка сайта -->
- <div class="navbar navbar-default border-null">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-ex-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="/"><span>Red Mania 1.8-1.10.2</span></a>
- </div>
- <div class="collapse navbar-collapse" id="navbar-ex-collapse">
- <ul class="nav navbar-nav navbar-right">
- <li class="active"><a href="/">Главная</a></li>
- <li><a href="#donate">Покупка доната</a></li>
- <li><a href="#info">Информация</a></li>
- <li><a href="#contacts">Контакты</a></li>
- </div>
- </div>
- </div>
- <!--<br><br><br><br>-->
- <!--Тело сайта -->
- <div class="container">
- <div class="section">
- <div class="row">
- <div class="col-md-12">
- <div class="panel panel-primary">
- <div class="panel-body">
- <div class="row">
- <div class="col-md-3 text-center hidden-xs" style="padding-top: 29px;">
- <div class="panel panel-success" style="display: inline-block;">
- <div class="panel-body" style="height: 50px; width: 130px; background: #dff0d8;"><b><p style="font-size: 30px" id="online"></p></b></div>
- <div class="panel-heading"><h3 class="panel-title">Онлайн</h3></div>
- </div>
- </div>
- <div class="col-md-6 text-center">
- <h1 style="font-size: 60px"><b rel="tooltip" data-placement="top" data-original-title="Версия 1.8-1.10.2">Red Mania </b></h1>
- <h4>Наш IP: <input class="ipselect" onclick="select()" value="mc.red-mania.ru"></input><h4>
- </div>
- <div class="col-md-3 text-center hidden-xs" style="padding-top: 29px;">
- <div class="panel panel-info" style="display: inline-block;">
- <div class="panel-body" style="height: 50px; width: 130px; background: #d9edf7;"><b><p style="font-size: 30px" id="record"></p></b></div>
- <div class="panel-heading"><h3 class="panel-title">Рекорд</h3></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-8">
- <section class="page-section" id="donate">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">Покупка доната</h3>
- </div>
- <div class="panel-body">
- <?php
- include "config.php";
- /** include "libs/connect.php";
- SELECT * FROM `buy` ORDER BY id DESC LIMIT 1
- $stmt = $db->query('SELECT * from groups ORDER BY `name` DESC LIMIT 4');
- //”становка fetch mode
- $stmt->setFetchMode(PDO::FETCH_ASSOC);
- while($row = $stmt->fetch())
- {*/
- //Функция купонов
- $param1 = $db->prepare('SELECT * from groups ORDER BY `name` DESC LIMIT 4;');
- //$param2->bindParam(2, $_POST['group'], PDO::PARAM_STR);
- if ($param1->execute())
- {
- $param1->setFetchMode(PDO::FETCH_ASSOC);
- if ($result1 = $param1->fetchAll())
- {
- // Станет доступно
- // $result[0]['id'];
- // $result[0]['login'];
- // $result[0]['password'];
- // $result[0]['email'];
- // $result[0]['ip'];
- // $result[0]['lastlogin'];
- // $result[0]['activation'];
- //$discount = $result3[0]['price'];
- $description = str_replace("[img]", "<img src='", $result[0]['description'] );
- $description = str_replace("[/img]", "'></img>", $description);
- $description = str_replace("[b]", "<strong>", $description);
- $description = str_replace("[/b]", "</strong>", $description);
- $description = str_replace("[br]", "<br>", $description);
- $name = "
- <div class='col-lg-6'>
- <div class='card'>
- <div class='body-txt'>
- <h2 style='color:white'>". $result1[0]['name'] . "</h2>
- <h4 style='color:white'>Цена: ". $result1[0]['sum'] . " руб</h4>
- <div class='btn-group stretch' role='group' aria-label=''>
- <!-- Сама кнопка -->
- <button type='button' class='btn btn-primary btn-medium' data-toggle='modal' data-target='#buy". $result1[0]['id'] . "'>
- Купить</button>
- <!-- Сама кнопка -->
- <button type='button' class='btn btn-default btn-medium' data-toggle='modal' data-target='#info". $result1[0]['id'] . "'>Подробнее</button>
- </div><br>
- </div>
- </div>
- </div>
- <!-- Modal Donate -->
- <div class='modal fade' id='buy". $result1[0]['id'] . "' tabindex='-1' role='dialog' aria-labelledby='myModalLabel'>
- <div class='modal-dialog' role='document'>
- <div class='modal-content'>
- <div class='modal-header'>
- <button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>×</span></button>
- <h4 class='modal-title' id='myModalLabel'>". $result1[0]['name'] . "</h4>
- </div>
- <div class='modal-body'>
- ". $result1[0]['name'] . "<br>
- ". $result1[0]['sum'] . "
- <div class='tab-pane active fade in' role='tabpanel' id='home'>
- <form action='libs/buy.php' method='post' id='formx". $result1[0]['id'] . "' onchange='call". $result1[0]['id'] . "()'>
- <div class='form-group'>
- <br>
- <input type='text' class='form-control' name='nickname' id='groupName' style='width: 100%; border: 1px solid #000;' placeholder='Введите свой ник' required>
- </div>
- <input type='hidden' name='group' value='". $result[0]['name'] . "'>
- <div class='form-group'>
- <input type='text' class='form-control' style='width: 100%; border: 1px solid #000;' name='promo' placeholder='Промо-код'>
- </div>
- <div id='resultdonate". $result1[0]['id'] . "'><button type='submit' class='btn btn-block btn-danger btn-block disabled'>Заполните форму</button></div>
- </form>
- </div>
- </div>
- <div class='modal-footer'>
- <button type='button' class='btn btn-default' data-dismiss='modal'>Закрыть</button>
- </div>
- </div>
- </div>
- </div>
- <!-- Modal info -->
- <div class='modal fade' id='info". $result1[0]['id'] . "' tabindex='-1' role='dialog' aria-labelledby='myModalLabel'>
- <div class='modal-dialog' role='document'>
- <div class='modal-content'>
- <div class='modal-header'>
- <button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>×</span></button>
- <h4 class='modal-title' id='myModalLabel'>". $result1[0]['name'] . "</h4>
- </div>
- <div class='modal-body'>
- <div class='color".$color."'>
- ". $description . "
- </div><br>
- </div>
- <div class='modal-footer'>
- <button type='button' class='btn btn-default' data-dismiss='modal'>Закрыть</button>
- </div>
- </div>
- </div>
- </div>
- <script>
- function call". $result1[0]['id'] . "() {
- var msg = $('#formx". $result1[0]['id'] . "').serialize();
- $.ajax({
- type: 'POST',
- url: 'libs/js_sum.php',
- data: msg,
- success: function(data) {
- $('#resultdonate". $result1[0]['id'] . "').html(data);
- },
- error: function(xhr, str){
- alert('Возникла ошибка: ' + xhr.responseCode);
- }
- });
- };
- </script>";
- echo $name;
- }
- }
- ?>
- </div>
- </div>
- </section>
- <section class="page-section" id="logs">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">Последние покупки</h3>
- </div>
- <div class="panel-body">
- <center>
- </center>
- </div>
- </div>
- </section>
- </div>
- <div class="col-md-4">
- <section class="page-section" id="info">
- <div class="panel panel-primary">
- <div class="panel-heading">
- <h3 class="panel-title">Информация</h3>
- </div>
- <div class="panel-body">
- <center>
- <script type="text/javascript" src="//vk.com/js/api/openapi.js?121"></script>
- <!-- VK Widget -->
- <div id="vk_groups"></div>
- <script type="text/javascript">
- VK.Widgets.Group("vk_groups", {mode: 2, width: "220", height: "400"}, 111398747);
- </script>
- <br>
- <!-- WalletOne Widget
- <script src="https://www.walletone.com/merchant/widget/1.0.2/script.js"></script>
- <div id="w1widget"></div>
- <script>
- W1.widget({
- "pt": "QiwiWalletRUB,YandexMoneyRUB,MegafonRUB,MtsRUB,SberOnlineRUB,EurosetRUB,SvyaznoyRUB,BankTransferRUB,TinkoffRUB,WalletOneRUB",
- "logosSize": "small",
- "grayscale": false,
- "background": "transparent",
- "fixWidth": "",
- "container": "w1widget"
- });
- </script> -->
- </div>
- </div>
- </section>
- </div>
- </div>
- </div>
- <section class="page-section" id="contacts">
- <div class="panel panel-primary">
- <div class="panel-body">
- <div class="row">
- <div class="col-sm-4 col-md-4">
- <h6>© 2014-<?php echo (date("Y"));?> TurboCraft <br>
- Топовый сервер minecraft</h6>
- </div>
- <div class="col-sm-4 col-md-4">
- <a target="_blank" href="http://vk.com/turbocraft" class="btn btn-medium btn-info">Группа ВК</a>
- </div>
- <div class="col-sm-4 col-md-4">
- <!-- Yandex.Metrika informer --> <a href="https://metrika.yandex.ru/stat/?id=31866521&from=informer" target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/31866521/3_1_FFFFFFFF_EFEFEFFF_0_pageviews" style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:31866521,lang:'ru'});return false}catch(e){}" /></a> <!-- /Yandex.Metrika informer -->
- <!-- Yandex.Metrika counter -->
- <script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter31866521 = new Ya.Metrika({ id:31866521, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");
- </script>
- <!-- /Yandex.Metrika counter -->
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- <script src="<?php echo $settings['urlsite']; ?>/js/jquery-2.2.0.min.js"></script>
- <script src="<?php echo $settings['urlsite']; ?>/js/bootstrap.min.js"></script>
- <script src="https://use.fontawesome.com/8c726e34c1.js"></script>
- <script src="<?php echo $settings['urlsite']; ?>/js/main.js"></script>
- <script>
- $("#myTabs a").click(function(e){
- e.preventDefault();
- $(this).tab("show");
- });
- $(document).ready(function(){
- $('#myModal').modal('show');
- });
- </script>
- <?php
- if(isset($_GET['success']) && isset($_GET['nickname']) && isset($_GET['payid'])){
- echo '
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel">Оплата прошла успешно!</h4>
- </div>
- <div class="modal-body">
- Спасибо, <b>'.$_GET['nickname'].'</b>, за поддержку нашего сервера.<br>
- Убедительно просим Вас записать дату покупки и ID платежа.<br>
- ID платежа:<br>
- <input type="text" class="form-control" onclick="select()" disabled value="'.$_GET['payid'].'" placeholder="payid" aria-describedby="basic-addon1">
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-success" data-dismiss="modal">Хорошо, я записал</button>
- </div>
- </div>
- </div>
- </div>
- ';
- }
- ?>
- <?php
- if(isset($_GET['fail'])){
- echo '
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel">Оплата не произошла!</h4>
- </div>
- <div class="modal-body">
- Возможно, вы отказались от платежа, или что-то пошло не так. Если вы не отменяли платеж, тогда попробуйте снова через несколько минут позже.
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-success" data-dismiss="modal">Закрыть</button>
- </div>
- </div>
- </div>
- </div>
- ';
- }
- ?>
- <!--<script src="<?php echo $settings['urlsite']; ?>/js/snow.js"></script>
- <script src="<?php echo $settings['urlsite']; ?>/js/common.js"></script>
- <script type="text/javascript" src="//vk.com/js/api/openapi.js?136"></script>
- VK Widget
- <div id="vk_community_messages"></div>
- <script type="text/javascript">
- VK.Widgets.CommunityMessages("vk_community_messages", 63424298, {});
- </script>-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement