📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
propanel
/
controller
/
startup
📝
permission.php
← Geri Dön
<?php class ControllerStartupPermission extends Controller { public function index() { if (isset($this->request->get['route'])) { $route = ''; $part = explode('/', $this->request->get['route']); if (isset($part[0])) { $route .= $part[0]; } if (isset($part[1])) { $route .= '/' . $part[1]; } // If a 3rd part is found we need to check if its under one of the extension folders. $extension = array( 'extension/dashboard', 'extension/analytics', 'extension/captcha', 'extension/extension', 'extension/feed', 'extension/fraud', 'extension/module', 'extension/payment', 'extension/shipping', 'extension/theme', 'extension/total', 'extension/report', 'extension/openbay' ); if (isset($part[2]) && in_array($route, $extension)) { $route .= '/' . $part[2]; } // We want to ingore some pages from having its permission checked. $ignore = array( 'common/dashboard', 'common/login', 'common/logout', 'common/forgotten', 'common/reset', 'error/not_found', 'error/permission' ); if (!in_array($route, $ignore) && !$this->user->hasPermission('access', $route)) { return new Action('error/permission'); } } } }
💾 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