Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ############################################################################
- # #
- # _ _ _ _ _______ __ ___ ___ #
- # | | | | | | | | |__ __| /_ |/ _ \ / _ \ #
- # | |__| | __ _| |__ | |__ ___ | | ___ _ __ | | | | | | | | #
- # | __ |/ _` | '_ \| '_ \ / _ \| |/ _ \| '_ \| | | | | | | | #
- # | | | | (_| | |_) | |_) | (_) | | (_) | |_) | | |_| | |_| | #
- # |_| |_|\__,_|_.__/|_.__/ \___/|_|\___/| .__/|_|\___/ \___/ #
- # | | #
- # |_| #
- # #
- # PHP - MySQLi - OOP by Mike #
- ############################################################################
- date_default_timezone_set('Europe/Amsterdam');
- $sterren = 10; // Je speler krijgt nu 0 sterren bij het stemmen
- $pixels = 100; //Je speler krijgt 100 pixels
- $credits = 1000; //Je speler krijgt 1000 credits
- $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
- $username = $_SESSION['user']['username'];
- $apikey = '7707';
- $server = 'r63'; // R63B kan ook. !
- $db = new mysqli("localhost", "root", "db", "ww"); // VERGEET DIT NIET IN TE VULLEN !
- ?>
- <style>
- body
- {
- background-image: url(http://img15.hostingpics.net/pics/279302summer1.png) ;
- background-size: cover; /* <------ */
- background-repeat: no-repeat;
- background-position: center center; /* optionally, center the image */
- }
- #box
- {
- margin:0 auto;
- margin-top:10%;
- border: 1px solid #ebeff6;
- padding: 20px;
- border-radius: 3px;
- margin-bottom: 15px;
- background: #FFF;
- width: 300px;
- height:auto;
- font-size: 16px;
- }
- input[type="submit"]{
- border: 1px solid #ebeff6;
- border-radius:4px;
- width:100%;
- padding:20px;
- background-color:grey;
- }
- </style>
- <div id="box">He jij!<br />
- Dus jij wilt stemmen op ons hotel?
- <br />
- Klik dan snel op de onderstaande button !
- <?php if(isset($_POST['stemmen'])){
- $check = file_get_contents("http://habbotop.net/vote/vote_controle.php?apikey=".$apikey."&ip=".$ip."");
- if($check == '1'){
- header("Location: /client");
- }else{?>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
- <script>
- $(document).ready(function() {
- var imessage = $('test').val();
- post_data = {'apikey':'<?php echo $apikey; ?>','ip':'<?php echo $ip ?>'};
- $.post('http://habbotop.net/vote/vote.client.php', post_data,
- function(data) {
- });
- });
- </script>
- <?php
- header("Location: /client");
- if($server == 'r63'){
- $db->query("UPDATE users SET vip_points = vip_points + ".$sterren.", credits = credits + ".$credits.", activity_points = activity_points + ".$pixels." WHERE username = '".$_SESSION['user']['username']."'");
- }else{
- $db->query("UPDATE users SET vip_points = vip_points + ".$sterren.", credits = credits + ".$credits.", activity_points = activity_points + ".$pixels." WHERE username = '".$_SESSION['user']['username']."'");
- }
- }
- }
- ?>
- <form action="" method="POST">
- <input type="submit" name="stemmen" value="Stem op ons hotel">
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement