04-12-2011, 04:02 PM
[eluser]Olivier69[/eluser]
OK, i found a simple solution not to deactivate PHP in the back Office of the CMS.
I just check in /application/core/MY_Loader.php if the view path is 'manager' or not :
It's not very elegant but it works.
Thank's for help, really.
OK, i found a simple solution not to deactivate PHP in the back Office of the CMS.
I just check in /application/core/MY_Loader.php if the view path is 'manager' or not :
Code:
if(strrpos($_ci_path, 'views/'.$this->config->item('backend')) !== false)
{
include($_ci_path); // include() vs include_once() allows for multiple views with the same name
}
else
{
echo file_get_contents($_ci_path); // On désactive PHP dans les vues du Frontend
}
Thank's for help, really.