Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
Fared сказал(а):ну что никто не знает как исправить?
Т.е. для отладки можно тупо добавить первой строкой define( "_VALID_MOS", 1 ); или убрать к черту строку проверки определенности константы _VALID_MOS. Все имхо...The last item to review is the first line of every Mambo file:
defined( '_VALID_MOS' ) or
die( 'Direct Access to this location is not allowed.' );
Defining the constant _VALID_MOS is a security feature that prevents a site visitor, robot or spider from directly accessing any file in Mambo othe than the default entry point. If a file, say for instance 'mod_mainmenu.php', is accessed directly, '_VALID_MOS', which is defined only in the default entry point, will not have been defined and therefore the only thing the visitor will see is a statement that says Direct Access to this location is not allowed.
In the case of front end access the default entry point is the index.php file. In the administrator or back end section of a Mambo site there are two default entry points, index.php and index2.php. The purpose of having two default entry points in the back end will become more clear later in this article. The short explanation is that index.php is the default entry point for logging in. index2.php is the default entry point through which all requests are processed once a user has successfully logged in. A user can only access index2.php after successfully logging in.
Logging into Mambo's Back End
The first thing that Mambo does when './administrator/index.php', the log in file, is loaded,is to define the _VALID_MOS constant 1 to indicate that this is the parent file, or default entry point.
/** Set flag that this is a parent file */
define( "_VALID_MOS", 1 );