Мелкие фиксы, обновление инсталлтора, обновление фреймворка
This commit is contained in:
parent
aaa7c0e97c
commit
e875a352bd
|
@ -107,6 +107,6 @@ class ModuleUser_EntityComplaint extends Entity
|
|||
|
||||
public function getTypeTitle()
|
||||
{
|
||||
return $this->Lang_Get('report.type_list.' . $this->getType());
|
||||
return $this->Lang_Get('user.report.types.' . $this->getType());
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@
|
|||
* Ничего не изменяйте в этом файле!
|
||||
* Все изменения нужно вносить в файл config/config.local.php
|
||||
*/
|
||||
define('LS_VERSION', '2.0.0.alfa');
|
||||
define('LS_VERSION', '2.0.0.alfa-2');
|
||||
|
||||
/**
|
||||
* Основные настройки путей
|
||||
|
@ -535,11 +535,11 @@ $config['block']['rule_blog'] = array(
|
|||
$config['components'] = array(
|
||||
// Базовые компоненты
|
||||
'css-reset', 'css-helpers', 'typography', 'forms', 'grid', 'ls-vendor', 'ls-core', 'ls-component', 'lightbox', 'slider', 'details', 'alert', 'dropdown', 'button', 'block',
|
||||
'nav', 'tooltip', 'tabs', 'modal', 'table', 'text', 'uploader', 'email', 'field', 'comment', 'pagination', 'editor', 'more', 'crop',
|
||||
'performance', 'toolbar', 'media', 'actionbar', 'badge', 'property', 'autocomplete', 'icon', 'item', 'highlighter', 'jumbotron',
|
||||
'nav', 'tooltip', 'tabs', 'modal', 'table', 'text', 'uploader', 'email', 'field', 'pagination', 'editor', 'more', 'crop',
|
||||
'performance', 'toolbar', 'actionbar', 'badge', 'autocomplete', 'icon', 'item', 'highlighter', 'jumbotron', 'notification',
|
||||
|
||||
// Компоненты LS CMS
|
||||
'favourite', 'vote', 'photo', 'note', 'icons-contact', 'user-list-add', 'subscribe', 'content', 'notification', 'report',
|
||||
'favourite', 'vote', 'media', 'property', 'photo', 'note', 'icons-contact', 'user-list-add', 'subscribe', 'content', 'report', 'comment',
|
||||
'toolbar-scrollup', 'toolbar-scrollnav', 'tags-favourite', 'search-ajax', 'search', 'sort', 'search-form', 'info-list',
|
||||
'tags', 'userbar', 'modal-create', 'admin', 'user', 'wall', 'blog', 'topic', 'poll', 'activity', 'feed', 'talk'
|
||||
);
|
||||
|
|
|
@ -8,6 +8,7 @@ class InstallStepCheckRequirements extends InstallStep
|
|||
/**
|
||||
* Проверяем требования
|
||||
*/
|
||||
$sAdditionalSolution = '';
|
||||
$aRequirements = array();
|
||||
if (!version_compare(PHP_VERSION, '5.3.2', '>=')) {
|
||||
$aRequirements[] = array(
|
||||
|
@ -57,48 +58,62 @@ class InstallStepCheckRequirements extends InstallStep
|
|||
/**
|
||||
* Права на запись файлов
|
||||
*/
|
||||
$bWriteSolutions = false;
|
||||
$sAppDir = dirname(INSTALL_DIR);
|
||||
$sDir = dirname($sAppDir) . DIRECTORY_SEPARATOR . 'uploads';
|
||||
if (!is_dir($sDir) or !is_writable($sDir)) {
|
||||
$aRequirements[] = array(
|
||||
'name' => 'dir_uploads',
|
||||
'current' => $sDir
|
||||
'current' => InstallCore::getLang('is_not_writable')
|
||||
);
|
||||
$bWriteSolutions = true;
|
||||
}
|
||||
$sDir = $sAppDir . DIRECTORY_SEPARATOR . 'plugins';
|
||||
if (!is_dir($sDir) or !is_writable($sDir)) {
|
||||
$aRequirements[] = array(
|
||||
'name' => 'dir_plugins',
|
||||
'current' => $sDir
|
||||
'current' => InstallCore::getLang('is_not_writable')
|
||||
);
|
||||
$bWriteSolutions = true;
|
||||
}
|
||||
$sDir = $sAppDir . DIRECTORY_SEPARATOR . 'tmp';
|
||||
if (!is_dir($sDir) or !is_writable($sDir)) {
|
||||
$aRequirements[] = array(
|
||||
'name' => 'dir_tmp',
|
||||
'current' => $sDir
|
||||
'current' => InstallCore::getLang('is_not_writable')
|
||||
);
|
||||
$bWriteSolutions = true;
|
||||
}
|
||||
$sDir = $sAppDir . DIRECTORY_SEPARATOR . 'logs';
|
||||
if (!is_dir($sDir) or !is_writable($sDir)) {
|
||||
$aRequirements[] = array(
|
||||
'name' => 'dir_logs',
|
||||
'current' => $sDir
|
||||
'current' => InstallCore::getLang('is_not_writable')
|
||||
);
|
||||
$bWriteSolutions = true;
|
||||
}
|
||||
$sFile = $sAppDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.local.php';
|
||||
if (!is_file($sFile) or !is_writable($sFile)) {
|
||||
$aRequirements[] = array(
|
||||
'name' => 'file_config_local',
|
||||
'current' => $sFile
|
||||
'current' => InstallCore::getLang('is_not_writable')
|
||||
);
|
||||
$bWriteSolutions = true;
|
||||
}
|
||||
|
||||
if (count($aRequirements)) {
|
||||
InstallCore::setNextStepDisable();
|
||||
}
|
||||
|
||||
if ($bWriteSolutions) {
|
||||
$sBuildPath = $sAppDir . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'build.sh';
|
||||
$sAdditionalSolution .= '<b>' . InstallCore::getLang('steps.checkRequirements.writable_solution') . '</b><br/>';
|
||||
$sAdditionalSolution .= '<i>chmod 0755 ' . $sBuildPath . '</i><br/>';
|
||||
$sAdditionalSolution .= '<i>' . $sBuildPath . '</i><br/>';
|
||||
}
|
||||
|
||||
$this->assign('requirements', $aRequirements);
|
||||
$this->assign('additionalSolution', $sAdditionalSolution);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
ABSOLUTE_FILENAME=`readlink -e "$0"`
|
||||
DIRECTORY=`dirname "$ABSOLUTE_FILENAME"`
|
||||
DIRECTORY=$(cd "$(dirname "$0")"; pwd)
|
||||
|
||||
if [ ! -e "$DIRECTORY/../../config/config.local.php" ]; then
|
||||
cp $DIRECTORY/../../config/config.local.php.dist $DIRECTORY/../../config/config.local.php
|
||||
|
|
|
@ -14,6 +14,7 @@ return array(
|
|||
'steps' => array(
|
||||
'checkRequirements' => array(
|
||||
'title' => 'Проверка требований для установки',
|
||||
'writable_solution' => 'Для быстрого исправления ошибки с правами на запись выполните в консоли вашего сервера:',
|
||||
'requirements' => array(
|
||||
'php_version' => array(
|
||||
'title' => 'Версия PHP',
|
||||
|
@ -45,23 +46,23 @@ return array(
|
|||
),
|
||||
'dir_uploads' => array(
|
||||
'title' => 'Каталог /uploads',
|
||||
'solution' => 'Необходимо дать каталогу права на запись.',
|
||||
'solution' => '',
|
||||
),
|
||||
'dir_plugins' => array(
|
||||
'title' => 'Каталог /application/plugins',
|
||||
'solution' => 'Необходимо дать каталогу права на запись.',
|
||||
'solution' => '',
|
||||
),
|
||||
'dir_tmp' => array(
|
||||
'title' => 'Каталог /application/tmp',
|
||||
'solution' => 'Необходимо дать каталогу права на запись.',
|
||||
'solution' => '',
|
||||
),
|
||||
'dir_logs' => array(
|
||||
'title' => 'Каталог /application/logs',
|
||||
'solution' => 'Необходимо дать каталогу права на запись.',
|
||||
'solution' => '',
|
||||
),
|
||||
'file_config_local' => array(
|
||||
'title' => 'Файл /application/config/config.local.php',
|
||||
'solution' => 'Файл должен существовать и быть доступен для записи',
|
||||
'solution' => 'Необходимо переименовать файл config.local.php.dist в config.local.php и дать ему права на запись',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -154,4 +155,5 @@ return array(
|
|||
'install_reset' => 'Начать сначала',
|
||||
'yes' => 'Да',
|
||||
'no' => 'Нет',
|
||||
'is_not_writable' => 'Не доступен для записи',
|
||||
);
|
||||
|
|
|
@ -27,7 +27,7 @@ a:hover {
|
|||
}
|
||||
|
||||
.container {
|
||||
max-width: 400px;
|
||||
max-width: 500px;
|
||||
margin: 40px auto 40px;
|
||||
padding: 30px;
|
||||
background: #fff;
|
||||
|
|
|
@ -11,13 +11,24 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.solution'); ?>
|
||||
<i><?php echo $this->lang('steps.checkRequirements.requirements.' . $requirement['name'] . '.solution'); ?></i>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$additionalSolution = $this->get('additionalSolution');
|
||||
if ($additionalSolution) { ?>
|
||||
<div class="alert alert--error">
|
||||
<ul>
|
||||
<li><?php echo($additionalSolution); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="loading"></div>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
/**
|
||||
* Формируем путь до фреймворка
|
||||
*/
|
||||
$sPathToFramework = dirname(__DIR__) . '/framework/';
|
||||
$sPathToFramework = dirname(dirname(__FILE__)) . '/framework/';
|
||||
|
||||
/**
|
||||
* Подключаем ядро
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3d66e6d0d10ca1c5bc53a16b1c877cdb47298f1c
|
||||
Subproject commit aca4ebe7c0e9268dd415595ce15c604edd2558c5
|
|
@ -20,7 +20,7 @@ ini_set('display_errors', 1);
|
|||
header('Content-Type: text/html; charset=utf-8');
|
||||
header('X-Powered-By: LiveStreet CMS');
|
||||
|
||||
require_once(__DIR__ . '/bootstrap/start.php');
|
||||
require_once(dirname(__FILE__) . '/bootstrap/start.php');
|
||||
|
||||
$oRouter = Router::getInstance();
|
||||
$oRouter->Exec(isset($aRouterParams) ? $aRouterParams : array());
|
Loading…
Reference in New Issue