mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix des csrf
This commit is contained in:
parent
000ee8f2f2
commit
c80431e981
32 changed files with 666 additions and 282 deletions
|
@ -9,6 +9,8 @@
|
|||
*/
|
||||
function autoloader($class)
|
||||
{
|
||||
$class = str_replace('\\', '/', $class); #Gestion des namespaces
|
||||
|
||||
if (file_exists(PWD_CONTROLLER . $class . '.php'))
|
||||
{
|
||||
require_once(PWD_CONTROLLER . $class . '.php');
|
||||
|
@ -17,6 +19,10 @@
|
|||
{
|
||||
require_once(PWD_MODEL . $class . '.php');
|
||||
}
|
||||
else if (file_exists(PWD . 'mvc/modules/' . $class . '.php'))
|
||||
{
|
||||
require_once(PWD . 'mvc/modules/' . $class . '.php');
|
||||
}
|
||||
}
|
||||
|
||||
spl_autoload_register('autoloader');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue