Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="description" content="">
- <meta name="author" content="">
- <title>TF2Roll.com</title>
- <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
- <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" />
- <link href="css/style.css" type="text/css" rel="stylesheet">
- <script src="https://mysqljs.com/mysql.js"></script>
- <style>
- body {
- padding-top: 54px;
- }
- @media (min-width: 992px) {
- body {
- padding-top: 56px;
- }
- }
- </style>
- <?php
- require 'steamauth/steamauth.php';
- include 'mysql/session.php';
- ?>
- </head>
- <body>
- <nav class="navbar navbar-expand-lg fixed-top" style="background-color: #fc5858">
- <div class="container">
- <a class="navbar-brand" style="color: #ffffff; font-size: 26px" href="index.php">TF2Roll</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarResponsive">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item active">
- <a class="nav-link" style="color: #ffffff;" href="#">Home
- <span class="sr-only">(current)</span>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link" style="color: #ffffff;" href="support.php">Support</a>
- </li>
- <li class="nav-item">
- <?php if(!isset($_SESSION['steamid'])) { ?>
- <a class="nav-link" style="color: #ffffff;" href="?login">Login</a>
- <?php } else { ?>
- <li class="nav-item" ><a class="nav-link" style="color: #ffffff;">|</a></li>
- <div class="w3-dropdown-hover">
- <a class="nav-link" style="color: #ffffff;"><?php echo $steamprofile['personaname']; ?></a>
- <div class="w3-dropdown-content w3-bar-block w3-card-4">
- <a href="#" class="w3-bar-item">Settings</a>
- <a href="#" class="w3-bar-item">Credits: <?php echo $credits; ?></a>
- <a href="?logout" class="w3-bar-item">Logout</a>
- </div>
- </div>
- <?php }?>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- <div class="dice-roll">
- <div class="wrapper">
- <div class="pd" style="border-radius: 20px; margin: 10px; flex-grow: 1;">
- <p style="color: $pb; font-weight: bold;" id="t2" class="cb">CREDITS:</p>
- <p style="font-weight: normal" class="cb" id="coinbalance">0</p>
- </div>
- <div class="swag" style="margin: 10px; flex-grow: 1;">
- <div class="sgm">SELECT WIN PERCENTAGE</div>
- <form class="mo">
- <label class="gm gmselected" id="gm0">50%<input type="radio" class="gmrb" id="gms0" name="gmode" checked=""></label>
- <label class="gm" id="gm1">25%<input type="radio" class="gmrb" id="gms1" name="gmode"></label>
- <label class="gm" id="gm2">10%<input type="radio" class="gmrb" id="gms2" name="gmode"></label>
- <label class="gm" id="gm3">5%<input type="radio" class="gmrb" id="gms3" name="gmode"></label>
- </form>
- </div>
- <div class="gwek" style="margin: 10px; flex-grow: 1;">
- <div style="border-radius: 20px; margin: 10px; flex-grow: 1;">
- <p id="tf">ROLL UNDER TO WIN</p>
- <p class="tfs" id="ruw"><5000</p>
- </div>
- <div class="buff"></div>
- <div style="border-radius: 20px; margin: 10px; flex-grow: 1;">
- <p id="tf">PAYOUT</p>
- <p class="tfs" id="po"> 1.50x</p>
- </div>
- <div class="buff"></div>
- <div style="border-radius: 20px; margin: 10px; flex-grow: 1;">
- <p id="tf">CHANCE TO WIN</p>
- <p class="tfs" id="ctw">50%</p>
- </div>
- </div>
- <div class="col-lg-12 text-center">
- <p class="rl" id="rolltag" style="color: rgb(214, 85, 80);">LOSE</p>
- <p class="rl" id="roll" style="color: rgb(214, 85, 80);">5000</p>
- </div>
- <div class="iwrapper" style="margin: 10px; flex-grow: 1;">
- <input class="input" id="input" value="" style="color: black;">
- <div class="bt" style="flex-grow: 1;" id="double">2X</div>
- <div class="bt" style="flex-grow: 1;" id="minbet">MIN BET</div>
- <div class="bt" style="flex-grow: 1;" id="maxbet" style="border-radius: 0px 5px 5px 0px">MAX BET</div>
- </div>
- <div class="rbtn" id="rollbutton" style="pointer-events: auto; margin: 10px; flex-grow: 1;"> ROLL THE DICE</div>
- </div>
- </div>
- <div class="history">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>Game Hash</th>
- <th>Username</th>
- <th>Selected Gamemode</th>
- <th>Winnings</th>
- <th>Roll</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><?php echo $hash[0]; ?></td>
- <td><?php echo $username[0]; ?></td>
- <td><?php echo $gamemode[0]; ?></td>
- <td><?php echo $winnings[0]; ?></td>
- <td><?php echo $roll[0]; ?></td>
- </tr>
- <tr>
- <td><?php echo $hash[1]; ?></td>
- <td><?php echo $username[1]; ?></td>
- <td><?php echo $gamemode[1]; ?></td>
- <td><?php echo $winnings[1]; ?></td>
- <td><?php echo $roll[1]; ?></td>
- </tr>
- <tr>
- <td><?php echo $hash[2]; ?></td>
- <td><?php echo $username[2]; ?></td>
- <td><?php echo $gamemode[2]; ?></td>
- <td><?php echo $winnings[2]; ?></td>
- <td><?php echo $roll[2]; ?></td>
- </tr>
- <tr>
- <td><?php echo $hash[3]; ?></td>
- <td><?php echo $username[3]; ?></td>
- <td><?php echo $gamemode[3]; ?></td>
- <td><?php echo $winnings[3]; ?></td>
- <td><?php echo $roll[3]; ?></td>
- </tr>
- <tr>
- <td><?php echo $hash[4]; ?></td>
- <td><?php echo $username[4]; ?></td>
- <td><?php echo $gamemode[4]; ?></td>
- <td><?php echo $winnings[4]; ?></td>
- <td><?php echo $roll[4]; ?></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="chatbox">
- <script type="text/javascript">
- /* most simple ajax chat script (www.linuxuser.at) (GPLv2) */
- var nick_maxlength=10;
- var http_request=false;
- var http_request2=false;
- var intUpdate;
- /* http_request for writing */
- function ajax_request(url){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
- if(!http_request){alert('Giving up :( Cannot create an XMLHTTP instance');return false;}
- http_request.onreadystatechange=alertContents;http_request.open('GET',url,true);http_request.send(null);}
- function alertContents(){if(http_request.readyState==4){if(http_request.status==200){rec_response(http_request.responseText);}else{}}}
- /* http_request for reading */
- function ajax_request2(url){http_request2=false;if(window.XMLHttpRequest){http_request2=new XMLHttpRequest();if(http_request2.overrideMimeType){http_request2.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request2=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request2=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
- if(!http_request2){alert('Giving up :( Cannot create an XMLHTTP instance');return false;}
- http_request2.onreadystatechange=alertContents2;http_request2.open('GET',url,true);http_request2.send(null);}
- function alertContents2(){if(http_request2.readyState==4){if(http_request2.status==200){rec_chatcontent(http_request2.responseText);}else{}}}
- /* chat stuff */
- var show_newmsg_on_bottom=1; /* set to 0 to let new msg´s appear on top */
- var waittime=3000; /* time between chat refreshes (ms) */
- intUpdate=window.setTimeout("read_cont();", waittime);
- chatwindow.value = "loading...";
- function read_cont() { zeit = new Date(); ms = (zeit.getHours() * 24 * 60 * 1000) + (zeit.getMinutes() * 60 * 1000) + (zeit.getSeconds() * 1000) + zeit.getMilliseconds(); ajax_request2("chat.txt?x=" + ms); }
- function display_msg(msg1) { chatwindow.value = msg1.trim(); }
- function keyup(arg1) { if (arg1 == 13) submit_msg(); }
- function submit_msg() { clearTimeout(intUpdate); if (chatnick.value == "") { check = prompt("please enter username:"); if (check === null) return 0; if (check == "") check="..."; chatnick.value=check; } if (chatnick.value.length > nick_maxlength) chatnick.value=chatnick.value.substring(0,nick_maxlength); spaces=""; for(i=0;i<(nick_maxlength-chatnick.value.length);i++) spaces+=" "; v=chatwindow.value.substring(chatwindow.value.indexOf("\n")) + "\n" + chatnick.value + spaces + "| " + chatmsg.value; if (chatmsg.value != "") chatwindow.value=v.substring(1); write_msg(chatmsg.value,chatnick.value); chatmsg.value=""; intUpdate=window.setTimeout("read_cont();", waittime);}
- function write_msg(msg1,nick1) { ajax_request("w.php?m=" + escape(msg1) + "&n=" + escape(nick1)); }
- function rec_response(str1) { }
- function rec_chatcontent(cont1) {
- if (cont1 != "") {
- out1 = unescape(cont1);
- if (show_newmsg_on_bottom == 0) { out1 = ""; while (cont1.indexOf("\n") > -1) { out1 = cont1.substr(0, cont1.indexOf("\n")) + "\n" + out1; cont1 = cont1.substr(cont1.indexOf("\n") + 1); out1 = unescape(out1); } }
- if (chatwindow.value != out1) { display_msg(out1); }
- intUpdate=window.setTimeout("read_cont()", waittime);
- }
- }
- </script>
- <textarea class="chatcontent" id="chatwindow" rows="19" cols="95" readonly=""></textarea>
- <div class="iwrapper" style="position: absolute; margin: 10px; flex-grow: 1; bottom: 0;">
- <input class="chatinput" id="chatmsg" placeholder="Message..." onkeyup="keyup(event.keyCode);" style="color: black;">
- <input type="button" class="bt" style="flex-grow: 1; width: 100px;" value="SEND" onclick="submit_msg();" id="double"></input>
- </div>
- <script src="vendor/jquery/jquery.min.js"></script>
- <script src="vendor/popper/popper.min.js"></script>
- <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
- </body>
- <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
- <script>totalcash='<?php echo $credits; ?>'</script>
- <script>id='<?php $steamprofile['steamid']; ?>'</script>
- <script src="js/dice.js"></script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement