📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
organikurun.demodesign.com.tr
/
admin
/
controller
📝
urunler.php
← Geri Dön
<?php if( $user["access"]["urunler"] != 1 ): header("Location:".site_url("admin")); exit(); endif; if( route(2) && is_numeric(route(2)) ): $page = route(2); else: $page = 1; endif; $count = $conn->prepare("SELECT * FROM products "); $count ->execute(array()); $count = $count->rowCount(); $to = 100; $pageCount = ceil($count/$to); if( $page > $pageCount ): $page = 1; endif; $where = ($page*$to)-$to; $paginationArr = ["count"=>$pageCount,"current"=>$page,"next"=>$page+1,"previous"=>$page-1]; $orders = $conn->prepare("SELECT * FROM products LEFT JOIN categories ON products.product_category=categories.category_id ORDER BY products.product_id DESC LIMIT $where,$to "); $orders -> execute(array()); $orders = $orders->fetchAll(PDO::FETCH_ASSOC); require admin_view('urunler');
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula