This file contains 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
<?php | |
switch ($modx->event->name) { | |
case 'OnManagerPageBeforeRender': | |
$msoptionscolor = $modx->getService('msoptionscolor', 'msoptionscolor', $modx->getOption('msoptionscolor_core_path', null, $modx->getOption('core_path') . 'components/msoptionscolor/') . 'model/msoptionscolor/'); | |
if (!($msoptionscolor instanceof msoptionscolor)) { | |
return ''; | |
} | |
if (!$config = $controller->config) { | |
return ''; |
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade | |
Установка программ | |
sudo apt install apache2 mysql-server mysql-client vsftpd ssh mc git | |
Настройка php | |
Включаем php в виде модуля апачи: | |
sudo apt install php7.0 libapache2-mod-php7.0 | |
sudo a2enmod rewrite |