123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php namespace Config;
- use CodeIgniter\Config\BaseConfig;
- class Filters extends BaseConfig
- {
- // Makes reading things below nicer,
- // and simpler to change out script that's used.
- public $aliases = [
- 'csrf' => \CodeIgniter\Filters\CSRF::class,
- 'toolbar' => \CodeIgniter\Filters\DebugToolbar::class,
- 'honeypot' => \CodeIgniter\Filters\Honeypot::class,
- 'myfilter'=> \App\Filters\MyFilter::class,
-
-
-
-
-
-
- ];
- // Always applied before every request i removed // that was in front of honeypot and csrf below
- public $globals = [
- 'before' => [
- 'honeypot',
- 'csrf',
- ],
- 'after' => [
- 'toolbar',
- //'honeypot'
- ],
- ];
- // Works on all of a particular HTTP method
- // (GET, POST, etc) as BEFORE filters only
- // like: 'post' => ['CSRF', 'throttle'],
- public $methods = [];
- // List filter aliases and any before/after uri patterns
- // that they should run on, like:
- // 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']],
- public $filters = [ 'myfilter' => ['before' => ['removeProduct','editOneProduct','editProducts','addProduct','newblog','editBlogs','removeBlog','addGallery','delGallery','admin' ]]];
-
-
-
-
-
-
-
- }
|