Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/img/favicon.ico" sizes="32x32" />
- <title>
- Hexmania.eu | CT banlist pro JB
- </title>
- <style type="text/css">
- body {background-color: rgba(16,16,16,1); color: #fff;}
- body, td, th, h1, h2 {font-family: sans-serif;}
- pre {margin: 0px; font-family: monospace;}
- .pg {
- text-decoration: none;
- display: inline-block;
- padding: 8px 16px;
- background-color: #3473c1;
- color: white;
- border: 1px solid #3473c1;
- }
- .pg:hover {background-color: white;
- color: #3473c1;
- border: 1px solid #3473c1;
- }
- table {border-collapse: collapse;}
- .center {text-align: center;}
- .center table { margin-left: auto; margin-right: auto; text-align: center;}
- .center th { text-align: center !important; }
- td, th { border: 1px solid #fff; font-size: 75%; vertical-align: baseline;}
- h1 {font-size: 150%;}
- h2 {font-size: 125%;text-align:center;}
- .footer { font-size: 80%;}
- .p {text-align: left;}
- .e {background-color: #f9f9f9; color: #000000; }
- .h {background-color: #a5a2a2; font-weight: bold; color: #000000; font-size: 125%;}
- .v {background-color: #e2e2e2; color: #000000; }
- .vr {background-color: #cccccc; text-align: right; color: #000000;}
- img {float: right; border: 0px;}
- hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color:#000000;}
- #myInput {
- background-image: url('/img/searchicon.png');
- background-position: 10px 10px;
- background-repeat: no-repeat;
- width: 85%;
- font-size: 16px;
- padding: 12px 20px 12px 40px;
- border: 1px solid #ddd;
- margin-bottom: 12px;
- }
- #main {
- transition: margin-left .5s;
- padding: 16px;
- }
- @media screen and (max-height: 450px) {
- .sidenav {padding-top: 15px;}
- .sidenav a {font-size: 18px;}
- }
- .container {
- display: inline-block;
- cursor: pointer;
- }
- .bar1, .bar2, .bar3 {
- width: 35px;
- height: 5px;
- background-color: #333;
- margin: 6px 0;
- transition: 0.4s;
- }
- .change .bar1 {
- -webkit-transform: rotate(-45deg) translate(-9px, 6px);
- transform: rotate(-45deg) translate(-9px, 6px);
- }
- .change .bar2 {opacity: 0;}
- .change .bar3 {
- -webkit-transform: rotate(45deg) translate(-8px, -8px);
- transform: rotate(45deg) translate(-8px, -8px);
- }
- footer {
- border-top: 1px solid #932e3e;
- background: url(../img/footer.png);
- background-repeat: no-repeat;
- color: #fff;
- width: 100%;
- height: 90px;
- position: absolute;
- left: 0;
- bottom: 0;
- }
- .footer-a {
- color: #fff;
- text-decoration: none;
- }
- .footer-a:hover {
- color: #932e3e;
- }
- .a-button {
- font-size: 20px;
- color: #fff;
- padding: 8px 9px 8px 9px;
- text-decoration: none;
- }
- .a-button:hover {
- font-size: 20px;
- color: #932e3e;
- border-bottom:3px solid #932e3e;
- }
- </style>
- </head>
- <body>
- <div id="main">
- <h2>CT banlist pro Jailbreak servery</h2>
- <div class="center">
- <div class="container">
- <a class="a-button" href="https://hexmania.eu">Domov</a> |
- <a class="a-button" href="https://hexmania.eu/servery.php">Servery</a> |
- <a class="a-button" href="http://banlistgojb.hexmania.eu">Banlist</a>
- </div><br><br>
- </div>
- <div class="center">
- <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Hledat SID, důvod, název admina nebo název hráče..." title="Type in a SteamID"><br>
- <script>
- //Search
- function myFunction() {
- var input, filter, table, tr, td, i;
- input = document.getElementById("myInput");
- filter = input.value.toUpperCase();
- table = document.getElementById("myTable");
- tr = table.getElementsByTagName("tr");
- for (i = 0; i < tr.length; i++) {
- td = tr[i].getElementsByTagName("td")[0];
- td = tr[i].getElementsByTagName("td")[1];
- td = tr[i].getElementsByTagName("td")[4];
- td = tr[i].getElementsByTagName("td")[5];
- td = tr[i].getElementsByTagName("td")[6];
- if (td) {
- if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
- tr[i].style.display = "";
- } else {
- tr[i].style.display = "none";
- }
- }
- }
- }
- //SideBar
- function openNav() {
- document.getElementById("mySidenav").style.width = "250px";
- document.getElementById("main").style.marginLeft = "250px";
- document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
- }
- function closeNav() {
- document.getElementById("mySidenav").style.width = "0";
- document.getElementById("main").style.marginLeft= "0";
- document.body.style.backgroundColor = "#f2f2f2";
- }
- //Menu Button (disabled)
- function myButton(x) {
- x.classList.toggle("change");
- }
- </script>
- <?php
- $server="db.mysql-01.gsp-europe.net";
- $username="sql_4595";
- $password="aLUP8PlYfe81fEvmepIZ0jig32ZSkUG";
- $database="sql_4595";
- $table_prefix="jailbreak";
- $results_per_page="15";
- function show_ctban_table($dbh, $query, $results_per_page, $ctbanpage, $table_prefix, $database)
- {
- $results = mysqli_query($dbh, $query) or die("Chyba query.");
- if (!empty($results))
- {
- $countquery = mysqli_fetch_array($results);
- $rows = $countquery[0];
- $lastpage = ceil($rows/$results_per_page);
- if ($ctbanpage < 1)
- {
- $ctbanpage = 1;
- }
- elseif ($ctbanpage > $lastpage)
- {
- $ctbanpage = $lastpage;
- }
- echo "<p>";
- echo "<br>";
- if ($ctbanpage != 1)
- {
- echo " <a class='pg'; href='{$_SERVER['PHP_SELF']}?ctbanpage=1'> První</a> ";
- echo " ";
- $previouspage = $ctbanpage - 1;
- echo " <a class='pg'; href='{$_SERVER['PHP_SELF']}?ctbanpage=$previouspage'> Předchozí</a> ";
- }
- if ($ctbanpage != $lastpage)
- {
- if ($ctbanpage != 1)
- {
- echo " | ";
- }
- $nextpage = $ctbanpage + 1;
- echo " <a class='pg'; href='{$_SERVER['PHP_SELF']}?ctbanpage=$nextpage'>Další</a> ";
- echo " ";
- echo " <a class='pg'; href='{$_SERVER['PHP_SELF']}?ctbanpage=$lastpage'>Poslední</a> ";
- }
- echo "</p>";
- $paginated_query = "SELECT * FROM " . $table_prefix . "CTBan_Log ORDER BY TIMESTAMP DESC LIMIT " .($ctbanpage - 1) * $results_per_page . "," . $results_per_page;
- $results = mysqli_query($dbh, $paginated_query) or die ("Unable to execute paginated query");
- print '<table id="myTable" border="0" cellpadding="10" width=90%>' . "\n";
- print "<tr class='h'><th>SteamID</th><th>Jméno</th><th>Time</th><th>Délka</th>"
- . "<th>Admin Jméno</th><th>Admin SteamID</th><th>Důvod</th><th>Zbývající čas</th></tr>\n";
- $counter = 0;
- while ($row = mysqli_fetch_array($results))
- {
- $counter = $counter + 1;
- if ($counter % 2)
- $classtext = "e";
- else
- $classtext = "v";
- $unbanme = "";
- if ($row["bantime"] > 0)
- {
- $bantime = $row["bantime"] . "m";
- if ($row["timeleft"] >= 0)
- {
- $timeleft = $row["timeleft"] . "m";
- }
- else
- $timeleft = "Vypršel";
- }
- else
- {
- $bantime = "Permanent";
- if ($row["timeleft"] >= 0)
- {
- $timeleft = "Indefinite";
- }
- else
- $timeleft = "Odbanovaný";
- }
- if ($timeleft > 0)
- {
- $text_color = "#ff6600";
- }
- elseif ($timeleft == "Vypršel" or $timeleft == "Odbanovaný")
- {
- $text_color = "green";
- }
- elseif ($timeleft == "Permanent")
- {
- $text_color = "red";
- $bantime = "<span style='color:red;'>Permanent</span>";
- }
- print "<tr><td class='" . $classtext ."'>" . $row["perp_steamid"]
- . "</td><td class='" . $classtext ."'>" . $row["perp_name"]
- . "</td><td class='" . $classtext . "'>" . date('r', $row["timestamp"]) . "</td>"
- . "<td class='" . $classtext ."'>" . $bantime
- . "</td><td class='" . $classtext . "'>" . $row["admin_name"]
- . "</td><td class='" . $classtext . "'>" . $row["admin_steamid"]
- . "</td><td class='" . $classtext . "'>" . $row["reason"]
- . "</td><td class='" . $classtext . "' style='color:" . $text_color . ";'>" . $timeleft . "</td></tr>\n";
- }
- print "</table>\n";
- echo "<br>";
- echo "<p>Strana " . strval($ctbanpage) . " z " . $lastpage . "<br><br>";
- echo "Celkem CT banů: " . $rows . "</p>";
- } else {
- print "No results\n";
- }
- }
- try
- {
- $dbh = mysqli_connect($server,$username,$password);
- if (!$dbh) {
- print "Nelze se připojit k databízi.\n";
- } else {
- mysqli_select_db($dbh, $database) or die("Nelze načíst databázi.");
- $query = "SELECT COUNT(*) FROM " . $table_prefix . "CTBan_Log";
- if (empty($_GET['ctbanpage']))
- {
- $ctbanpage = 1;
- }
- else
- {
- $ctbanpage = $_GET['ctbanpage'];
- }
- show_ctban_table($dbh, $query, $results_per_page, $ctbanpage, $table_prefix, $database);
- }
- }
- catch (Exception $e)
- {
- die($e);
- }
- mysqli_close($dbh);
- ?>
- <footer>
- <center>
- <div style="width: 500px;">
- <br />
- <h4>© <span style="color: #932e3e;"><a class="footer-a" href="https://hexmania.eu">Hexmania.eu</a></span> 2017 - 2018</h4> <a style="position: absolute; margin-left: 415px; margin-top: -70px;" href="https://hexmania.eu"><script language="JavaScript" type="text/javascript">
- <!--
- document.write('<img src="https://toplist.cz/count.asp?id=1776540&logo=mc&http='+
- escape(document.referrer)+'&t='+escape(document.title)+
- '&wi='+escape(window.screen.width)+'&he='+escape(window.screen.height)+'&cd='+
- escape(window.screen.colorDepth)+'" width="88" height="60" border=0 alt="TOPlist" />');
- //--></script><noscript><img style="position: absolute;" src="https://toplist.cz/count.asp?id=1776540&logo=mc" border="0"
- alt="TOPlist" width="88" height="60" /></noscript></a>
- </div>
- </center>
- </footer>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement