J'essai mais en faite je ne sais pas quoi vraiment changer. mon index:
if (!eregi("modules.php", $_SERVER['PHP_SELF']) && !eregi("music.php", $_SERVER['PHP_SELF']) && !eregi("index.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
Celui cité dans la réponse:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
Qu'il faut changer par:
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
