1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-05 18:38:18 +03:00
This commit is contained in:
Mzhelskiy Maxim 2013-08-07 22:04:23 +07:00
parent 5f3e68fde3
commit c4f0955dd0
5 changed files with 17 additions and 64 deletions

15
.gitignore vendored
View file

@ -1,8 +1,7 @@
config/config.local.php
config/config.test.php
logs/*
plugins/*
templates/cache/*
templates/compiled/*
tmp/*
uploads/*
/application/config/config.local.php
/application/config/config.test.php
/application/logs/*
/application/plugins/*
/application/tmp/*
/uploads/*
/.idea/

View file

@ -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;
?>

View file

@ -1,2 +1,7 @@
Order Deny,Allow
Deny from all
Deny from all
<FilesMatch "\.(css|js)$">
Order Deny,Allow
Deny from all
Allow from all
</FilesMatch>

View file

@ -60,7 +60,7 @@ $config['path']['root']['framework'] = '___path.root.engine___';
$config['path']['static']['root'] = '___path.root.web___'; // чтоб можно было статику засунуть на отдельный сервер
$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']['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']['images'] ='___path.uploads.root___/images';
$config['path']['offset_request_url'] = 0; // иногда помогает если сервер использует внутренние реврайты

View file

@ -56,7 +56,7 @@ function isAjaxRequest() {
function dump($msg) {
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
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);
}
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
@ -429,7 +429,7 @@ function func_camelize($sStr) {
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');
$aPlugin = array();
if($bAll){
@ -469,6 +469,4 @@ function func_convert_entity_to_array(Entity $oEntity, $aMethods = null, $sPrefi
$aEntity[$sPrefix.$sProp]=$mValue;
}
return $aEntity;
}
?>
}