Advertisement
JakRapp

panel

Sep 14th, 2022
730
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.38 KB | Movies | 1 0
  1. ?>
  2. <?php
  3. $base = __DIR__.'/ryulogs';
  4. $scan = scandir($base);
  5. ?>
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9.     <title>:: RyuBot Panel ::</title>
  10.     <meta charset="utf-8">
  11.     <meta name="viewport" content="width=device-width,initial-scale=1">
  12.     <style type="text/css">
  13.         html,body{scroll-behavior: smooth;}
  14.         .section{min-height: 700px;height: 100%;margin-top: 100px}
  15.         .navbar-float{position:fixed;left: 0;margin-top: 20%}
  16.         .navbar-float>li{list-style: none;margin: 10px}
  17.         .code{background: #333}.mt-2{margin-top: 20px}
  18.     </style>
  19.     <link rel="stylesheet" type="text/css" href="https://brobin.github.io/hacker-bootstrap/css/hacker.css">
  20. </head>
  21. <body>
  22.     <div class="navbar-float">
  23.     <li><a href="#welcome" class="btn btn-danger">&#x2680;</a></li>
  24.     <li><a href="#statistic" class="btn btn-warning">&#x2681;</a></li>
  25.     <li><a href="#config" class="btn btn-primary">&#x2682;</a></li>
  26. </div>
  27.     <div class="container container-fluid" style="width: 70%">
  28.    
  29. <div class="section" id="welcome">
  30. <center><h1>RyuBot Panel</h1></center>
  31. <hr>
  32. <div class="row">
  33.     <?php
  34.     foreach($scan as $dir){
  35.         if(!preg_match("/log/",$dir))continue;
  36.         ?>
  37.  
  38.     <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12 mt-2">
  39.         <h3><?=$dir;?></h3>
  40.         <textarea class="form-control" style="width: 100%;height: 300px"><?=@file_get_contents($base.'/'.$dir);?></textarea>
  41.     </div>
  42.     <?php
  43. }
  44. ?>
  45. </div>
  46. </div>
  47. <div id="statistic" class="section">
  48. <div class="table-responsive">
  49. <table class="table table-hover table-striped">
  50.     <thead>
  51.         <th>No.</th>
  52.         <th>Filename</th>
  53.         <th>Size</th>
  54.         <th>Line count</th>
  55.         <th>Action</th>
  56.     </thead>
  57.     <tbody>
  58.     </tbody>
  59.     <?php
  60.    
  61.     $n=1;
  62.     foreach($scan as $dir){
  63.         if($dir == '.' || $dir =='..' )continue;
  64.         ?>
  65.         <tr>
  66.         <td><?=$n++;?></td>
  67.         <td><?=$dir;?></td>
  68.         <td><?=$this->human_filesize(filesize($base.'/'.$dir));?></td>
  69.         <td><?=$this->count_line($base.'/'.$dir);?></td>
  70.         <td>
  71.             <a href="ryulogs/<?=$dir;?>">View</a>|<a href="?mengsad=delete&file=ryulogs/<?=$dir;?>">Delete</a></td>
  72.     </tr>
  73.     <?php
  74.     }
  75.     ?>
  76.     </tbody>
  77. </table>
  78. </div>
  79.  
  80. </div>
  81. <div id="config" class="section">
  82.     <pre class="code">
  83.     <?php
  84.  
  85.     print_r(json_encode($this->config,JSON_PRETTY_PRINT));
  86.     ?>
  87. </pre>
  88. </div>
  89. </div>
  90. </body>
  91. </html>
  92.             <?php
  93.             if($_GET['mengsad'] == 'delete')
  94.             {
  95.                 @unlink($_GET['file']);
  96.                 echo "<script>alert('success');window.location.assign('?mengsad');</script>";
  97.             }
  98.             ?>
Tags: movies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement