Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html <?php session_start(); language_attributes(); ?>>
- <head>
- <link rel="icon" href="<?php echo get_template_directory_uri() . '/img/favicon2.png'; ?>">
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>
- <?php
- if (strpos($_SERVER['REQUEST_URI'], 'users') !== false && isset($_GET['user']) && $_GET['user'] > "0") {
- $user = get_user_by('id', $_GET['user']);
- echo $user->display_name; ?> | <?php echo bloginfo( 'name' );
- } else {
- if ( is_front_page() ) {
- echo bloginfo( 'name' );
- } else {
- echo bloginfo( 'name' ); ?> | <?php the_title();
- }
- }
- ?></title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.5.3/css/bulma.min.css">
- <style>
- .field{
- flex: 1!important;
- }
- form{
- margin: 0;
- padding-bottom: 13px;
- }
- </style>
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
- <?php
- wp_head();
- /* Zoznam serverov */
- $servers = array('Jailbreak', 'Dust2', 'Surf', 'SurfRPG', '1v1Arena', 'Bhop', 'AwpNoscope', 'Retakes1', 'Retakes2', 'Retakes3', 'CoD', 'OldDust2Mirage');
- ?>
- </head>
- <body>
- <!-- Horny navbar -->
- <nav class="navbar">
- <div class="container">
- <div class="navbar-brand">
- <a class="navbar-item" href="../">
- <img src="http://games-town.eu/wp-content/themes/gamestown/img/logo.png" alt="Logo">
- </a>
- <span class="navbar-burger burger" data-target="navbarMenu">
- <span></span>
- <span></span>
- <span></span>
- </span>
- </div>
- <div id="navbarMenu" class="navbar-menu">
- <div class="navbar-end">
- <?php
- if ( is_user_logged_in() ) { ?>
- <div class="navbar-item has-dropdown is-hoverable">
- <a class="navbar-link">
- <span class="fa fa-user"></span> <?php echo wp_get_current_user()->display_name; ?>
- </a>
- <div class="navbar-dropdown">
- <a class="navbar-item" href="<?php echo get_site_url() . '/users/?user=' . wp_get_current_user()->ID;?>"><span class="glyphicon glyphicon-user"></span> Profil</a>
- <a class="navbar-item" href="<?php echo get_edit_user_link(); ?>"><span class="glyphicon glyphicon-wrench"></span> Nastavení</a>
- <a class="navbar-item" href="<?php echo wp_logout_url( home_url() ); ?>"><span class="glyphicon glyphicon-log-out"></span> Odhlásit se</a>
- <?php
- if ( is_user_logged_in() && !wpsap_is_user_synced() ) {
- echo '<hr class="navbar-divider"><a class="navbar-item" href="'.wpsap_button_sync_url().'"><span class="glyphicon glyphicon-refresh"></span> STEAM Synchronizace</a>';
- }
- ?>
- </div>
- <?php } else { ?>
- <div class="navbar-item">
- <?php echo '<a href="http://games-town.eu/login/">Prihlásiť sa <span class="fa fa-sign-in"></span></a>';?>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
- </nav>
- <?php
- function toSteamID($id) {
- if (is_numeric($id) && strlen($id) >= 16) {
- $z = bcdiv(bcsub($id, '76561197960265728'), '2');
- } elseif (is_numeric($id)) {
- $z = bcdiv($id, '2'); // Actually new User ID format
- } else {
- return $id; // We have no idea what this is, so just return it.
- }
- $y = bcmod($id, '2');
- return 'STEAM_1:' . $y . ':' . floor($z);
- };
- $steamcommunityid = get_user_meta(get_current_user_id(), 'steam_steamid', true);
- $steamid64 = toSteamID($steamcommunityid);
- $_SESSION['steamid'] = $steamid;
- /* <?php echo $steamid64; ?> Pre vypisanie STEAMID */
- ?>
- <!-- Hlavna stranka -->
- <?php if ( is_user_logged_in() ) { ?>
- <section class="section">
- <div class="container content is-centered">
- <div class="columns is-centered">
- <div class="column is-half">
- <form method="post" class="form-horizontal" action="" >
- <div class="field has-addons">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <!-- Vyber platby -->
- <select name="serverSMS" id="serverSMS" onchange='this.form.submit()'>
- <option value="">Spôsob platby..</option>
- <option value="SMS SK" <?php if(isset($_POST['serverSMS'])) $serverSMS = $_POST['serverSMS']; if($serverSMS == 'SMS SK') echo 'selected';?>>SMS SK</option>
- <option value="SMS CZ" <?php if(isset($_POST['serverSMS'])) $serverSMS = $_POST['serverSMS']; if($serverSMS == 'SMS CZ') echo 'selected';?>>SMS CZ</option>
- <option value="Paypal" <?php if(isset($_POST['serverSMS'])) $serverSMS = $_POST['serverSMS']; if($serverSMS == 'Paypal') echo 'selected';?>>Paypal</option>
- <option value="PSC" <?php if(isset($_POST['serverSMS'])) $serverSMS = $_POST['serverSMS']; if($serverSMS == 'PSC') echo 'selected';?>>PaySafeCard</option>
- <option value="CSGO" <?php if(isset($_POST['serverSMS'])) $serverSMS = $_POST['serverSMS']; if($serverSMS == 'CSGO') echo 'selected';?>>CSGO Skiny</option>
- </select>
- </div>
- <div class="icon is-small is-left">
- <i class="fa fa-globe"></i>
- </div>
- </div>
- </div>
- <?php
- if($serverSMS != '' && $serverSMS != 'Paypal' && $serverSMS != 'CSGO' && $serverSMS != 'PSC'):
- ?>
- <div class="field">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <!-- Vyber servera -->
- <select name="serverName" id="serverName" onchange='this.form.submit()'>
- <option value="">Server..</option>
- <?php
- foreach($servers as &$server):
- ?>
- <option <?php if(isset($_POST['serverName'])){$serverName = $_POST['serverName'];} if($serverName == $server){echo "selected";}?>><?php echo $server?></option>
- <?php
- endforeach;
- ?>
- </select>
- </div>
- <div class="icon is-small is-left ">
- <i class="fa fa-server"></i>
- </div>
- </div>
- </div>
- <?php
- endif;
- if(isset($_POST['serverName']) == true && isset($_POST['serverSMS']) == true){
- $serverName = $_POST['serverName'];
- $serverSMS = $_POST['serverSMS'];
- }
- if($serverSMS == 'SMS SK' && $serverName != ''):
- ?>
- <div class="field">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <!-- Vyber sumy pre SMS SK -->
- <select name="serverPrice" onchange='this.form.submit()'>
- <option selected>Suma..</option>
- <option value="5" <?php if(isset($_POST['serverPrice'])){$serverPrice = $_POST['serverPrice'];} if($serverPrice == '5'){echo "selected";}?>>Navždy 5,00 €</option>
- <option value="2" <?php if(isset($_POST['serverPrice'])){$serverPrice = $_POST['serverPrice'];} if($serverPrice == '2'){echo "selected";}?>>Mesiac 2,00 €</option>
- </select>
- </div>
- <div class="icon is-small is-left">
- <i class="fa fa-<?php if($serverSMS == 'SMS SK') echo 'euro'; else echo 'dollar'; ?>"></i>
- </div>
- </div>
- </div>
- <?php
- endif;
- if($serverSMS == 'SMS CZ' && $serverName != ''):
- ?>
- <div class="field">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <!-- Vyber sumy pre CZ -->
- <select name="serverPrice" onchange='this.form.submit()'>
- <option selected>Suma..</option>
- <option value="120" <?php if(isset($_POST['serverPrice'])){$serverPrice = $_POST['serverPrice'];} if($serverPrice == '120'){echo "selected";}?>>Navždy 120 Kč</option>
- <option value="69" <?php if(isset($_POST['serverPrice'])){$serverPrice = $_POST['serverPrice'];} if($serverPrice == '69'){echo "selected";}?>>Mesiac 69 Kč</option>
- </select>
- </div>
- <div class="icon is-small is-left">
- <i class="fa fa-dollar"></i>
- </div>
- </div>
- </div>
- <?php endif; ?>
- </form>
- <!-- Paypal -->
- <?php
- if($serverSMS == 'Paypal'):
- ?>
- <div align="center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="DQQRX38TQ2HYJ">
- <div class="field">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <input type="hidden" name="on2" value="Server"><select name="os2">
- <option disabled selected>Server..</option>
- <?php
- foreach($servers as &$server):
- ?>
- <option value="<?php echo $server ?>"><?php echo $server ?></option>
- <?php
- endforeach;
- ?>
- </select>
- <?php if(isset($_POST['on2'])){$paypalServer = $_POST['paypalServer'];} $_SESSION['paypalServer'] = $paypalServer;?>
- </div>
- <div class="icon is-small is-left">
- <i class="fa fa-server"></i>
- </div>
- </div>
- </div>
- <div class="field">
- <div class="control has-icons-left is-expanded">
- <div class="select is-fullwidth">
- <input type="hidden" name="on0" value="VIP"><select name="os0">
- <option disabled selected>Suma..</option>
- <option value="VIP-FOREVER">VIP-FOREVER €5,00 EUR</option>
- <option value="VIP-MONTH">VIP-MONTH €2,00 EUR</option>
- </select>
- </div>
- <div class="icon is-small is-left">
- <i class="fa fa-euro"></i>
- </div>
- </div>
- </div>
- <input type="hidden" name="on1" value="SteamID"><input class="is-hidden" type="text" name="os1" value="<?php echo $steamid64 ?>">
- <input type="hidden" name="currency_code" value="EUR">
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
- </form></div>
- <?php
- endif; ?>
- <!-- PaySafeCard -->
- <?php
- if($serverSMS == 'PSC'):
- ?>
- <div class="has-text-centered" style="background-color: #ededed">
- <br>
- <p style="font-size: 23px;">
- Pre túto platbu je potreba si pridať majiteľa <a href='http://steamcommunity.com/id/respawnofficial/' target='_blank'>TU</a>
- </p>
- <h5>Cena je <strong>5,00 €</strong> <strong>navždy</strong>.</h5>
- <h5>Cena je <strong>2,00 €</strong> na <strong>mesiac</strong>.</h5><br><br>
- </div>
- <?php
- endif; ?>
- <!-- CSGO Skiny -->
- <?php
- if($serverSMS == 'CSGO'):
- ?>
- <div class="has-text-centered" style="background-color: #ededed">
- <br>
- <h3>VIP <strong></strong> pomocou <strong>CSGO SKINY</strong></h3>
- <h2><p style="font-size: 23px;">
- Pošlite itemy na tento <a href='https://steamcommunity.com/tradeoffer/new/?partner=164653530&token=8iDKHZ3M' target='_blank'><h2>TradeOffer</h2></a>
- <h5>Cena je <strong>5,00 €</strong> <strong>navždy</strong>.</h5>
- <h5>Cena je <strong>2,00 €</strong> na <strong>mesiac</strong>.</h5><br><br>
- </div>
- <?php
- endif; ?>
- </div>
- </div>
- <!-- Text pre SMS SK -->
- <?php
- if($serverSMS == 'SMS SK' && $serverPrice == '5' || $serverPrice == '2'):
- ?>
- <div class="column has-text-centered is-half is-offset-one-quarter" style="background-color: #ededed">
- <br>
- <h4>VIP <strong><?php if($serverPrice == '5'){echo 'navždy';}elseif($serverPrice == '2'){echo 'na mesiac';} ?></strong> pomocou <strong><?php echo $serverSMS ?></strong>.</h4>
- <p style="font-size: 23px;"><small style="font-size: 12px;">Tvar: </small> <span style="color:#007bff ;display: inline-block; padding: 3px 5px;">SERVER PRO 71633 <?php echo $serverPrice;?> <?php echo $serverName; ?> <?php echo $steamid64; ?></span> <small style="font-size: 12px;">na číslo</small> <span style="color:#007bff ;display: inline-block; padding: 3px 5px;">8866</span></p>
- <h5>Cena SMS je <strong><?php if($serverPrice == '5'){echo '5,00 €';}elseif($serverPrice == '2'){echo '2,00 €';} ?></strong> vrátane <strong>DPH</strong>.<br><br></h5>
- </div>
- <!-- Text pre SMS CZ-->
- <?php
- endif;
- if($serverSMS == 'SMS CZ' && $serverPrice == '120' || $serverPrice == '69'):
- ?>
- <div class="column has-text-centered is-half is-offset-one-quarter" style="background-color: #ededed">
- <br>
- <h4>VIP <strong><?php if($serverPrice == '120'){echo 'navždy';}elseif($serverPrice == '69'){echo 'na mesiac';} ?></strong> pomocou <strong><?php echo $serverSMS ?></strong>.</h4>
- <p style="font-size: 23px;"><small style="font-size: 12px;">Tvar: </small> <span style="color:#007bff ;display: inline-block; padding: 3px 5px;">GSP 71633 <?php echo $serverPrice;?> PRO <?php echo $serverName; ?> <?php echo $steamid64; ?></span> <small style="font-size: 12px;">na číslo</small> <span style="color:#007bff ;display: inline-block; padding: 3px 5px;">90106</span></p>
- <h5>Cena SMS je <strong><?php if($serverPrice == '120'){echo '120 Kč';}elseif($serverPrice == '69'){echo '69 Kč';} ?></strong> vrátane <strong>DPH</strong>.<br><br></h5>
- </div>
- <?php
- endif; ?>
- </div>
- </section>
- <div class="container">
- <div class="columns is-mobile">
- <div class="column is-half is-offset-one-quarter">
- <article class="message is-warning">
- <div class="message-header">
- <p>Dôležité informácie</p>
- </div>
- <div class="message-body">
- Platba bude spracovaná najneskôr do <strong>24h</strong> od zakúpenia.<br>
- V prípade akýchkoľvek problémov, kontakujte nás E-Mailom <a href="mailto:contact@games-town.eu?Subject=VIP" target="_top">contact@games-town.eu</a> alebo na našom fóre <a href="http://forum.games-town.eu">forum.games-town.eu</a><br><br>
- <strong>UPOZORNENIE:</strong><i> Kúpou VIP súhlasite, že peniaze, ktorými je platba uskutočnená, sú legálne získané a nie je možné požiadať o ich vrátenie.</i>
- </div>
- </article>
- </div>
- </div>
- <!-- Ak uživateľ nie je prihlásený zobrazí sa toto -->
- <?php } else { ?>
- <br>
- <br>
- <div class="container">
- <div class="columns is-mobile">
- <div class="column is-half is-offset-one-quarter">
- <article class="message is-danger">
- <div class="message-header">
- <p>Zabudli ste sa prihlásiť!</p>
- </div>
- <div class="message-body">
- Pre zobrazenie VIP platieb sa prosím <a href="http://games-town.eu/login/">prihláste</a>.
- </div>
- </article>
- </div>
- </div>
- </div>
- <?php }; ?>
- <!-- Otváranie menu na mobiloch -->
- <script>
- document.addEventListener('DOMContentLoaded', function () {
- // Get all "navbar-burger" elements
- var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
- // Check if there are any navbar burgers
- if ($navbarBurgers.length > 0) {
- // Add a click event on each of them
- $navbarBurgers.forEach(function ($el) {
- $el.addEventListener('click', function () {
- // Get the target from the "data-target" attribute
- var target = $el.dataset.target;
- var $target = document.getElementById(target);
- // Toggle the class on both the "navbar-burger" and the "navbar-menu"
- $el.classList.toggle('is-active');
- $target.classList.toggle('is-active');
- });
- });
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement