Last active
November 23, 2022 12:16
-
-
Save gartes/101cd2e601da729fd211405d7bc2a573 to your computer and use it in GitHub Desktop.
Переопределение расположения CONFIGURATION
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Переопределение расположения CONFIGURATION | |
* | |
* Добавить - этот код в низ файлов : | |
* -- /includes/defines.php | |
* -- /administrator/includes/defines.php | |
* Удалить в этих файлах стандартное определение константы define('JPATH_CONFIGURATION', JPATH_ROOT); | |
* | |
* Скопировать файл /configuration.php в директорию - /includes/dev/ | |
* - в место *.*.*.* - вставить свой IP | |
* SRC: https://gist.github.com/gartes/101cd2e601da729fd211405d7bc2a573 | |
*/ | |
define('DEV_IP', '*.*.*.*'); | |
if ($_SERVER['REMOTE_ADDR'] == DEV_IP ) | |
{ | |
define('JPATH_CONFIGURATION', JPATH_ROOT.'/includes/dev/'); | |
}else{ | |
define('JPATH_CONFIGURATION', JPATH_ROOT); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment