Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
1.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fuze committed Jul 25, 2016
1 parent dbf054f commit 93daaee
Show file tree
Hide file tree
Showing 19 changed files with 177 additions and 221 deletions.
1 change: 0 additions & 1 deletion admin/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ a:hover{
color:#29B7E4;
text-decoration:none;
font-weight:bold;
text-decoration:underline;
}
.pathwaylink:hover{
color:#FF9900;
Expand Down
13 changes: 13 additions & 0 deletions components/users/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,22 @@ function users(){
}
}

// могут ли администраторы удалять чужой профиль
$is_can_delete_profile = true;
if($inUser->is_admin){
if (!cmsUser::isAdminCan('admin/users', cmsUser::getAdminAccess()) && $inUser->id != $id) {
$is_can_delete_profile = false;
}
// администратор сам себя не удалит
if ($inUser->id == $usr['id']){
$is_can_delete_profile = false;
}
}

cmsPage::initTemplate('components', 'com_users_edit_profile')->
assign('opt', $opt)->
assign('usr', $usr)->
assign('is_can_delete_profile', $is_can_delete_profile)->
assign('private_forms', $private_forms)->
assign('cfg_forum', $inCore->loadComponentConfig('forum'))->
assign('cfg', $model->config)->
Expand Down
5 changes: 3 additions & 2 deletions core/classes/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ private function __construct(){

date_default_timezone_set(self::$config['timezone']);

setlocale(LC_ALL, "ru_RU.UTF-8");
setlocale(LC_ALL, 'ru_RU.UTF-8');
setlocale(LC_NUMERIC, 'POSIX');

return true;

Expand Down Expand Up @@ -176,4 +177,4 @@ public static function saveToFile($_CFG, $file='config.inc.php'){

}

}
}
8 changes: 4 additions & 4 deletions core/cms.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/******************************************************************************/
// //
// InstantCMS v1.10.6 //
// InstantCMS v1.10.7 //
// http://www.instantcms.ru/ //
// //
// written by InstantCMS Team, 2007-2015 //
// written by InstantCMS Team, 2007-2016 //
// produced by InstantSoft, (www.instantsoft.ru) //
// //
// LICENSED BY GNU/GPL v2 //
Expand All @@ -13,8 +13,8 @@

define('CORE_VERSION', '1.10.7');
define('CORE_BUILD', '1');
define('CORE_VERSION_DATE', '2014-12-31');
define('CORE_BUILD_DATE', '2015-03-09');
define('CORE_VERSION_DATE', '2016-07-26');
define('CORE_BUILD_DATE', '2016-07-26');

class cmsCore {

Expand Down
3 changes: 2 additions & 1 deletion includes/jquery/tablesorter/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ table.tablesorter tbody td {
color: #3D3D3D;
padding: 3px;
padding-left:10px;
vertical-align: top;
vertical-align: middle;
font-size: 12px;
}
table.tablesorter tbody tr.odd td {
background-color:#F0F0F6;
Expand Down
3 changes: 1 addition & 2 deletions includes/keywords.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class autokeyword {
//phrase metakeys
var $phrase3WordLengthMin;

function autokeyword($params, $encoding)
function __construct($params, $encoding)
{
//get parameters
$this->encoding = $encoding;
Expand Down Expand Up @@ -250,4 +250,3 @@ function implode($gule, $array)
return $c;
}
}
?>
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// InstantCMS v1.10.7 //
// http://www.instantcms.ru/ //
// //
// written by InstantCMS Team, 2007-2015 //
// written by InstantCMS Team, 2007-2016 //
// produced by InstantSoft, (www.instantsoft.ru) //
// //
// LICENSED BY GNU/GPL v2 //
Expand Down
155 changes: 78 additions & 77 deletions install/sqldumpdemo.sql

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions install/sqldumpempty.sql
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ CREATE TABLE `#__banners` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `#__banners` (`id`, `position`, `typeimg`, `fileurl`, `hits`, `clicks`, `maxhits`, `maxuser`, `user_id`, `pubdate`, `title`, `link`, `published`) VALUES
(4, 'banner1', 'image', 'banner468x60v1.gif', 0, 0, 0, 0, 1, '2013-09-04 19:43:53', 'InstantCMS - Бесплатная система управления сайтом', 'http://www.instantcms.ru/', 1);
(4, 'banner1', 'image', 'banner468x60v1.gif', 0, 0, 0, 0, 1, CURRENT_TIMESTAMP, 'InstantCMS - Бесплатная система управления сайтом', 'http://www.instantcms.ru/', 1);

DROP TABLE IF EXISTS `#__banner_hits`;
CREATE TABLE `#__banner_hits` (
Expand Down Expand Up @@ -256,10 +256,10 @@ CREATE TABLE `#__board_cats` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `#__board_cats` (`id`, `parent_id`, `ordering`, `NSLeft`, `NSRight`, `NSDiffer`, `NSIgnore`, `NSLevel`, `title`, `description`, `published`, `orderform`, `showdate`, `pubdate`, `orderby`, `orderto`, `public`, `perpage`, `maxcols`, `thumb1`, `thumb2`, `thumbsqr`, `uplimit`, `is_photos`, `icon`, `obtypes`) VALUES
(1, 0, 1, 1, 8, '', 0, 0, '-- Корневая рубрика --', '', 1, 1, 1, '2013-09-22 13:39:32', 'pubdate', 'desc', 0, 15, 1, 64, 400, 0, 10, 1, 'folder_grey.png', ''),
(10, 1, 21, 2, 3, '', 0, 1, 'Услуги', '', 1, 1, 1, '2013-09-22 14:30:29', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Предлагаю\r\nТребуется'),
(9, 1, 23, 6, 7, '', 0, 1, 'Автомобили', '', 1, 1, 1, '2013-09-22 14:30:23', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Куплю\r\nПродам\r\nОбменяю'),
(8, 1, 22, 4, 5, '', 0, 1, 'Недвижимость', '', 1, 1, 1, '2013-09-22 14:30:00', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Продам\r\nКуплю\r\nОбменяю\r\nСдам\r\nСниму');
(1, 0, 1, 1, 8, '', 0, 0, '-- Корневая рубрика --', '', 1, 1, 1, '2016-09-22 13:39:32', 'pubdate', 'desc', 0, 15, 1, 64, 400, 0, 10, 1, 'folder_grey.png', ''),
(10, 1, 21, 2, 3, '', 0, 1, 'Услуги', '', 1, 1, 1, '2016-09-22 14:30:29', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Предлагаю\r\nТребуется'),
(9, 1, 23, 6, 7, '', 0, 1, 'Автомобили', '', 1, 1, 1, '2016-09-22 14:30:23', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Куплю\r\nПродам\r\nОбменяю'),
(8, 1, 22, 4, 5, '', 0, 1, 'Недвижимость', '', 1, 1, 1, '2016-09-22 14:30:00', 'pubdate', 'desc', -1, 20, 1, 64, 400, 0, 10, 1, 'folder_grey.png', 'Продам\r\nКуплю\r\nОбменяю\r\nСдам\r\nСниму');

DROP TABLE IF EXISTS `#__board_items`;
CREATE TABLE `#__board_items` (
Expand Down Expand Up @@ -531,16 +531,16 @@ CREATE TABLE `#__cron_jobs` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `#__cron_jobs` (`id`, `job_name`, `job_interval`, `job_run_date`, `component`, `model_method`, `custom_file`, `is_enabled`, `is_new`, `comment`, `class_name`, `class_method`) VALUES
(1, 'photos_clear', 24, '2013-09-07 12:10:08', 'users', 'clearUploadedPhotos', '', 1, 1, 'Удаление неиспользуемых личных фотографий', '', ''),
(2, 'optimize_tables', 24, '2013-09-07 12:10:08', '', '', '', 1, 1, 'Оптимизация таблиц БД', 'db|cmsDatabase', 'optimizeTables'),
(3, 'drop_inactive_users', 48, '2013-09-07 12:10:08', 'users', 'deleteInactiveUsers', '', 1, 1, 'Удаление неактивных пользователей (см. настройки компонента "Профили пользователей")', '', ''),
(4, 'remove_old_log', 48, '2013-09-07 12:10:08', '', '', '', 1, 1, 'Удаляет старые записи ленты событий', 'actions|cmsActions', 'removeOldLog'),
(5, 'give_invites', 24, '2013-09-07 12:10:08', 'users', 'giveInvitesCron', '', 1, 1, 'Выдача инвайтов пользователям', '', ''),
(6, 'clear_invites', 24, '2013-09-07 12:10:08', 'users', 'clearInvites', '', 1, 1, 'Удаление использованных инвайтов', '', ''),
(7, 'deleteOldResults', 24, '2013-09-07 12:10:08', 'search', 'deleteOldResults', '', 1, 1, 'Удаляет записи в кеше поиска старее 1 дня.', '', ''),
(8, 'deleteOldNotification', 48, '2013-09-31 23:19:42', 'users', 'deleteOldNotification', '', 1, 1, 'Удаляет сообщения службы обновлений и рассылки старее 1 месяца', '', ''),
(9, 'moveArticlesToArchive', 24, '2013-09-29 18:25:10', 'content', 'moveArticlesToArchive', '', 1, 0, 'Переносит просроченные статьи в архив', '', ''),
(10, 'clearOnlineUsers', 0, '2013-09-21 17:30:01', '', '', '', 1, 0, 'Удаляет просроченные данные об online пользователях', 'user|cmsUser', 'clearOnlineUsers');
(1, 'photos_clear', 24, '2016-09-07 12:10:08', 'users', 'clearUploadedPhotos', '', 1, 1, 'Удаление неиспользуемых личных фотографий', '', ''),
(2, 'optimize_tables', 24, '2016-09-07 12:10:08', '', '', '', 1, 1, 'Оптимизация таблиц БД', 'db|cmsDatabase', 'optimizeTables'),
(3, 'drop_inactive_users', 48, '2016-09-07 12:10:08', 'users', 'deleteInactiveUsers', '', 1, 1, 'Удаление неактивных пользователей (см. настройки компонента "Профили пользователей")', '', ''),
(4, 'remove_old_log', 48, '2016-09-07 12:10:08', '', '', '', 1, 1, 'Удаляет старые записи ленты событий', 'actions|cmsActions', 'removeOldLog'),
(5, 'give_invites', 24, '2016-09-07 12:10:08', 'users', 'giveInvitesCron', '', 1, 1, 'Выдача инвайтов пользователям', '', ''),
(6, 'clear_invites', 24, '2016-09-07 12:10:08', 'users', 'clearInvites', '', 1, 1, 'Удаление использованных инвайтов', '', ''),
(7, 'deleteOldResults', 24, '2016-09-07 12:10:08', 'search', 'deleteOldResults', '', 1, 1, 'Удаляет записи в кеше поиска старее 1 дня.', '', ''),
(8, 'deleteOldNotification', 48, '2016-09-31 23:19:42', 'users', 'deleteOldNotification', '', 1, 1, 'Удаляет сообщения службы обновлений и рассылки старее 1 месяца', '', ''),
(9, 'moveArticlesToArchive', 24, '2016-09-29 18:25:10', 'content', 'moveArticlesToArchive', '', 1, 0, 'Переносит просроченные статьи в архив', '', ''),
(10, 'clearOnlineUsers', 0, '2016-09-21 17:30:01', '', '', '', 1, 0, 'Удаляет просроченные данные об online пользователях', 'user|cmsUser', 'clearOnlineUsers');

DROP TABLE IF EXISTS `#__downloads`;
CREATE TABLE `#__downloads` (
Expand Down Expand Up @@ -1098,7 +1098,7 @@ CREATE TABLE `#__plugins` (

INSERT INTO `#__plugins` (`id`, `plugin`, `title`, `description`, `author`, `version`, `plugin_type`, `published`, `config`) VALUES
(6, 'p_usertab', 'Demo Profile Plugin', 'Пример плагина - Добавляет вкладку "Статьи" в профили всех пользователей', 'InstantCMS Team', '1.10.3', 'plugin', 0, '---\nPU_LIMIT: 10\n'),
(3, 'p_ckeditor', 'CKEditor', 'Визуальный редактор', 'InstantCMS Team', '4.4.5', 'wysiwyg', 1, '---\niswatermark: 0\nphoto_width: 600\nphoto_height: 600\nis_compatible: 1\nentermode: CKEDITOR.ENTER_P\nskin: moono\nupload_for_groups:\n - 2\n'),
(3, 'p_ckeditor', 'CKEditor', 'Визуальный редактор', 'InstantCMS Team', '4.4.6', 'wysiwyg', 1, '---\niswatermark: 0\nphoto_width: 600\nphoto_height: 600\nis_compatible: 1\nentermode: CKEDITOR.ENTER_P\nskin: moono\nupload_for_groups:\n - 2\n'),
(5, 'p_demo', 'Demo Plugin', 'Пример плагина - Добавляет текст в конец каждой статьи на сайте', 'InstantCMS Team', '1.0', 'plugin', 0, '---\ntext: Added By Plugin From Parameter\ncolor: blue\ncounter: 1\n'),
(8, 'p_ping', 'Пинг поисковых систем', 'Пингует Яндекс и Гугл при добавлении статей, объявлений и постов в блоги', 'InstantCMS Team', '1.10', 'plugin', 1, '---\nYandex HOST: ping.blogs.yandex.ru\nYandex PATH: /RPC2\nGoogle HOST: blogsearch.google.com\nGoogle PATH: /ping/RPC2\n'),
(15, 'p_morecontent', 'Похожие статьи', 'Добавляет в конец каждой статьи список похожих статей.', 'Maximov & InstantCMS Team', '1.10.4', 'plugin', 0, '---\nP_LIMIT: 5\nP_UNSORT: 1\n'),
Expand All @@ -1107,7 +1107,8 @@ INSERT INTO `#__plugins` (`id`, `plugin`, `title`, `description`, `author`, `ver
(17, 'p_auto_forum', 'Автофорум', 'Создает тему на форуме для обсуждения статьи', 'InstantCMS Team', '1.10.4', '', 1, '---\nAF_DELETE_THREAD: 1\nAF_LINK_TREAD: 1\nAF_ADDTREADFORUM_ID: 1\nAF_NOCREATETREAD: 0\n'),
(21, 'p_new_msg', 'Анимация при новом сообщении', 'Анимация при новом сообщении', 'InstantCMS Team', '1.0', '', 1, '---\n'),
(33, 'p_kcaptcha', 'Капча kCaptcha', 'Выводит капчу в форме', 'InstantCMS Team', '1.0', '', 1, '---\n'),
(35, 'p_related_posts', 'Похожие записи в блогах', 'Добавляет в конец каждого поста список похожих записей', 'Pasha && InstantCMS Team', '1.0', '', 1, '---\ntags_mode: 1\nadd_mode: 1\nsearch_mode: 1\nlimit: 4\ntruncate: 200\ncash_time: 1\nblank_photo: no_image.png\n');
(35, 'p_related_posts', 'Похожие записи в блогах', 'Добавляет в конец каждого поста список похожих записей', 'Pasha && InstantCMS Team', '1.0', '', 1, '---\ntags_mode: 1\nadd_mode: 1\nsearch_mode: 1\nlimit: 4\ntruncate: 200\ncash_time: 1\nblank_photo: no_image.png\n'),
(36, 'p_recaptcha', 'Капча Recaptcha', 'Современная защита от спама. <a href="https://www.google.com/recaptcha/admin" target="_blank">Получить ключ</a>', 'InstantCMS Team', '1.0', 'captcha', 0, '---\npublic_key: 0\nprivate_key:\ntheme: light\nsize: normal\nlang: ru\n');

DROP TABLE IF EXISTS `#__polls`;
CREATE TABLE `#__polls` (
Expand Down Expand Up @@ -1406,7 +1407,7 @@ CREATE TABLE `#__users` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

INSERT INTO `#__users` (`id`, `group_id`, `login`, `nickname`, `password`, `email`, `icq`, `regdate`, `logdate`, `birthdate`, `is_locked`, `is_deleted`, `rating`, `points`, `last_ip`, `status`, `status_date`, `invited_by`, `invdate`) VALUES
(1, 2, 'admin', 'Администратор', '', 'admin@cms.ru', '100200300', '2013-09-23 12:41:57', '2013-09-15 13:20:33', '1980-10-23', 0, 0, 32, 0, '127.0.0.1', 'Самый длинный статус из всех что существуют в этом прекрасном мире', '2013-09-21 02:06:53', 0, '2013-09-09 23:25:59');
(1, 2, 'admin', 'Администратор', '', 'admin@cms.ru', '100200300', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '1980-10-23', 0, 0, 32, 0, '127.0.0.1', 'Самый длинный статус из всех что существуют в этом прекрасном мире', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP);

DROP TABLE IF EXISTS `#__users_activate`;
CREATE TABLE `#__users_activate` (
Expand Down
Loading

0 comments on commit 93daaee

Please sign in to comment.