mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
fix
This commit is contained in:
parent
5f3e68fde3
commit
c4f0955dd0
15
.gitignore
vendored
15
.gitignore
vendored
|
@ -1,8 +1,7 @@
|
||||||
config/config.local.php
|
/application/config/config.local.php
|
||||||
config/config.test.php
|
/application/config/config.test.php
|
||||||
logs/*
|
/application/logs/*
|
||||||
plugins/*
|
/application/plugins/*
|
||||||
templates/cache/*
|
/application/tmp/*
|
||||||
templates/compiled/*
|
/uploads/*
|
||||||
tmp/*
|
/.idea/
|
||||||
uploads/*
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
<?php
|
|
||||||
/*-------------------------------------------------------
|
|
||||||
*
|
|
||||||
* LiveStreet Engine Social Networking
|
|
||||||
* Copyright © 2008 Mzhelskiy Maxim
|
|
||||||
*
|
|
||||||
*--------------------------------------------------------
|
|
||||||
*
|
|
||||||
* Official site: www.livestreet.ru
|
|
||||||
* Contact e-mail: rus.engine@gmail.com
|
|
||||||
*
|
|
||||||
* GNU General Public License, version 2:
|
|
||||||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
||||||
*
|
|
||||||
---------------------------------------------------------
|
|
||||||
*/
|
|
||||||
/**
|
|
||||||
* Настройки для локального сервера.
|
|
||||||
* Для использования - переименовать файл в config.local.php
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Настройка базы данных
|
|
||||||
*/
|
|
||||||
$config['db']['params']['host'] = 'localhost';
|
|
||||||
$config['db']['params']['port'] = '3306';
|
|
||||||
$config['db']['params']['user'] = 'root';
|
|
||||||
$config['db']['params']['pass'] = '';
|
|
||||||
$config['db']['params']['type'] = 'mysql';
|
|
||||||
$config['db']['params']['dbname'] = 'social_newstruct';
|
|
||||||
$config['db']['table']['prefix'] = 'prefix_';
|
|
||||||
|
|
||||||
$config['path']['root']['web'] = 'http://localhost/livestreet-b-new-struct';
|
|
||||||
$config['path']['root']['server'] = '/Users/ort/Develop/php/livestreet-b-new-struct';
|
|
||||||
$config['path']['offset_request_url'] = '1';
|
|
||||||
$config['db']['tables']['engine'] = 'InnoDB';
|
|
||||||
$config['view']['name'] = 'Your Site3';
|
|
||||||
$config['view']['description'] = 'Description your site';
|
|
||||||
$config['view']['keywords'] = 'site, google, internet';
|
|
||||||
$config['view']['skin'] = 'developer';
|
|
||||||
$config['sys']['mail']['from_email'] = 'admin@admin.adm';
|
|
||||||
$config['sys']['mail']['from_name'] = 'Почтовик Your Site';
|
|
||||||
$config['general']['close'] = false;
|
|
||||||
$config['general']['reg']['activation'] = false;
|
|
||||||
$config['general']['reg']['invite'] = false;
|
|
||||||
$config['lang']['current'] = 'ru';
|
|
||||||
$config['lang']['default'] = 'ru';
|
|
||||||
return $config;
|
|
||||||
?>
|
|
|
@ -1,2 +1,7 @@
|
||||||
Order Deny,Allow
|
Order Deny,Allow
|
||||||
Deny from all
|
Deny from all
|
||||||
|
<FilesMatch "\.(css|js)$">
|
||||||
|
Order Deny,Allow
|
||||||
|
Deny from all
|
||||||
|
Allow from all
|
||||||
|
</FilesMatch>
|
|
@ -60,7 +60,7 @@ $config['path']['root']['framework'] = '___path.root.engine___';
|
||||||
$config['path']['static']['root'] = '___path.root.web___'; // чтоб можно было статику засунуть на отдельный сервер
|
$config['path']['static']['root'] = '___path.root.web___'; // чтоб можно было статику засунуть на отдельный сервер
|
||||||
$config['path']['static']['skin'] = '___path.static.root___/application/frontend/skin/___view.skin___';
|
$config['path']['static']['skin'] = '___path.static.root___/application/frontend/skin/___view.skin___';
|
||||||
$config['path']['static']['assets'] = '___path.static.skin___/assets'; // Папка с ассетами (js, css, images)
|
$config['path']['static']['assets'] = '___path.static.skin___/assets'; // Папка с ассетами (js, css, images)
|
||||||
$config['path']['static']['framework'] = "___path.root.framework___/frontend/framework"; // Front-end framework
|
$config['path']['static']['framework'] = "___path.static.root___/framework/frontend/framework"; // Front-end framework todo: need fix path
|
||||||
$config['path']['uploads']['root'] = '/uploads'; // директория для загрузки файлов
|
$config['path']['uploads']['root'] = '/uploads'; // директория для загрузки файлов
|
||||||
$config['path']['uploads']['images'] ='___path.uploads.root___/images';
|
$config['path']['uploads']['images'] ='___path.uploads.root___/images';
|
||||||
$config['path']['offset_request_url'] = 0; // иногда помогает если сервер использует внутренние реврайты
|
$config['path']['offset_request_url'] = 0; // иногда помогает если сервер использует внутренние реврайты
|
||||||
|
|
|
@ -56,7 +56,7 @@ function isAjaxRequest() {
|
||||||
function dump($msg) {
|
function dump($msg) {
|
||||||
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
||||||
if (!class_exists('Debug_HackerConsole_Main')) {
|
if (!class_exists('Debug_HackerConsole_Main')) {
|
||||||
require_once Config::Get('path.root.server')."/engine/lib/external/HackerConsole/Main.php";
|
require_once Config::Get('path.root.framework')."/libs/vendor/HackerConsole/Main.php";
|
||||||
new Debug_HackerConsole_Main(true);
|
new Debug_HackerConsole_Main(true);
|
||||||
}
|
}
|
||||||
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
|
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
|
||||||
|
@ -429,7 +429,7 @@ function func_camelize($sStr) {
|
||||||
|
|
||||||
|
|
||||||
function func_list_plugins($bAll = false){
|
function func_list_plugins($bAll = false){
|
||||||
$sPluginsDir = Config::Get('path.root.server').'/plugins';
|
$sPluginsDir = Config::Get('path.root.application').'/plugins';
|
||||||
$sPluginsListFile = $sPluginsDir.'/'.Config::Get('sys.plugins.activation_file');
|
$sPluginsListFile = $sPluginsDir.'/'.Config::Get('sys.plugins.activation_file');
|
||||||
$aPlugin = array();
|
$aPlugin = array();
|
||||||
if($bAll){
|
if($bAll){
|
||||||
|
@ -470,5 +470,3 @@ function func_convert_entity_to_array(Entity $oEntity, $aMethods = null, $sPrefi
|
||||||
}
|
}
|
||||||
return $aEntity;
|
return $aEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
Loading…
Reference in a new issue