-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
59 additions
and
73 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<dleplugin> | ||
<name>Telegram Posting</name> | ||
<description>Модуль будет отправлять сообщения в выбранный чат при помощи бота. Гибкие настройки позволят модулю отправлять лишь то, что вы хотите.</description> | ||
<icon>engine/skins/images/telegram.png</icon> | ||
<version>1.2.1</version> | ||
<dleversion>13.0</dleversion> | ||
<versioncompare>greater</versioncompare> | ||
<mysqlinstall><![CDATA[INSERT INTO {prefix}_admin_sections (name, title, descr, icon, allow_groups) VALUES ('telegram', 'Telegram Posting v1.2.1', 'Публикация сообщений при появлении и / или обновлений новостей', 'telegram.png', '1'); | ||
CREATE TABLE IF NOT EXISTS {prefix}_telegram_cron ( cron_id int auto_increment primary key, news_id int not null, time timestamp null, type varchar(255) not null ) comment 'Отправка сообщений по крону';]]></mysqlinstall> | ||
<mysqlupgrade><![CDATA[DELETE FROM {prefix}_admin_sections WHERE name = 'telegram'; | ||
INSERT INTO {prefix}_admin_sections (name, title, descr, icon, allow_groups) VALUES ('telegram', 'Telegram Posting v1.2.1', 'Публикация сообщений при появлении и / или обновлений новостей', 'telegram.png', '1'); | ||
CREATE TABLE IF NOT EXISTS {prefix}_telegram_cron ( cron_id int auto_increment primary key, news_id int not null, time timestamp null, type varchar(255) not null ) comment 'Отправка сообщений по крону';]]></mysqlupgrade> | ||
<mysqlenable><![CDATA[INSERT INTO {prefix}_admin_sections (name, title, descr, icon, allow_groups) VALUES ('telegram', 'Telegram Posting v1.2.1', 'Публикация сообщений при появлении и / или обновлений новостей', 'telegram.png', '1');]]></mysqlenable> | ||
<mysqldisable><![CDATA[DELETE FROM {prefix}_admin_sections WHERE name = 'telegram';]]></mysqldisable> | ||
<mysqldelete><![CDATA[DELETE FROM {prefix}_admin_sections WHERE name = 'telegram'; | ||
DROP TABLE {prefix}_telegram_cron;]]></mysqldelete> | ||
<file name="engine/inc/addnews.php"> | ||
<operation action="before"> | ||
<searchcode><![CDATA[clear_cache( array('news_', 'tagscloud_', 'archives_', 'calendar_', 'topnews_', 'rss', 'stats') );]]></searchcode> | ||
<replacecode><![CDATA[include_once (DLEPlugins::Check(ENGINE_DIR . "/inc/maharder/telegram/addnews.php"));]]></replacecode> | ||
</operation> | ||
</file> | ||
<file name="engine/inc/editnews.php"> | ||
<operation action="before"> | ||
<searchcode><![CDATA[clear_cache( array('news_', 'full_'.$item_db[0], 'comm_'.$item_db[0], 'tagscloud_', 'archives_', 'calendar_', 'rss', 'stats') );]]></searchcode> | ||
<replacecode><![CDATA[include_once (DLEPlugins::Check(ENGINE_DIR . "/inc/maharder/telegram/editnews.php"));]]></replacecode> | ||
</operation> | ||
</file> | ||
</dleplugin> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
Установка | ||
Установка / Обновление | ||
1. Загрузить все файлы на сервер с перезаписью | ||
2. Запустить файл www.ваш-сайт.ru/install.php | ||
3. Следовать инструкциям | ||
|
||
Обновление до 1.01 | ||
1. Заменить все файлы |