Skip to content

Commit

Permalink
Update install.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokujo committed Sep 6, 2022
1 parent c798938 commit 1ea1326
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions upload/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>MH Admin</name>
<description>Универсальная административная панель для модификаций от MaHarder</description>
<icon></icon>
<version>2.0.7.1</version>
<version>2.0.7.2</version>
<dleversion>13</dleversion>
<versioncompare>greater</versioncompare>
<upgradeurl></upgradeurl>
Expand All @@ -12,14 +12,14 @@
<mnotice>0</mnotice>
<mysqlinstall><![CDATA[]]></mysqlinstall>
<mysqlupgrade><![CDATA[INSERT INTO {prefix}_admin_sections (name, title, descr, icon, allow_groups)
VALUES('maharder', 'MH Admin v2.0.7.1', 'Настройка административной панели от MaHarder', DEFAULT, '1, 2')
ON DUPLICATE KEY UPDATE title = 'MH Admin v2.0.7.1';]]></mysqlupgrade>
VALUES('maharder', 'MH Admin v2.0.7.2', 'Настройка административной панели от MaHarder', DEFAULT, '1, 2')
ON DUPLICATE KEY UPDATE title = 'MH Admin v2.0.7.2';]]></mysqlupgrade>
<mysqlenable><![CDATA[INSERT INTO {prefix}_admin_sections (name, title, descr, icon, allow_groups)
VALUES('maharder', 'MH Admin v2.0.7.1', 'Настройка административной панели от MaHarder', DEFAULT, '1, 2')
ON DUPLICATE KEY UPDATE title = 'MH Admin v2.0.7.1';]]></mysqlenable>
VALUES('maharder', 'MH Admin v2.0.7.2', 'Настройка административной панели от MaHarder', DEFAULT, '1, 2')
ON DUPLICATE KEY UPDATE title = 'MH Admin v2.0.7.2';]]></mysqlenable>
<mysqldisable><![CDATA[DELETE FROM {prefix}_admin_sections WHERE name = 'maharder';]]></mysqldisable>
<mysqldelete><![CDATA[DELETE FROM {prefix}_admin_sections WHERE name = 'maharder';]]></mysqldelete>
<phpinstall><![CDATA[@unlink(ENGINE_DIR . '/inc/maharder/_includes/traits/LogGenerator.php');]]></phpinstall>
<phpinstall><![CDATA[]]></phpinstall>
<phpupgrade><![CDATA[@unlink(ENGINE_DIR . '/inc/maharder/_includes/traits/LogGenerator.php');]]></phpupgrade>
<phpenable><![CDATA[]]></phpenable>
<phpdisable><![CDATA[]]></phpdisable>
Expand Down Expand Up @@ -161,12 +161,19 @@ JS;
<file name="engine/modules/functions.php">
<operation action="after">
<searchcode><![CDATA[global $dlefastcache, $config;]]></searchcode>
<replacecode><![CDATA[ require_once (DLEPlugins::Check(ENGINE_DIR . '/inc/maharder/_includes/extras/paths.php'));
<replacecode><![CDATA[
$mh_ajax = new Ajax();
$data = !$cache_areas ? 'all' : $cache_areas;
$mh_ajax->clear_cache($data);]]></replacecode>
<enabled>1</enabled>
</operation>
</file>
<file name="engine/init.php">
<operation action="before">
<searchcode><![CDATA[require_once (DLEPlugins::Check(ENGINE_DIR . '/modules/functions.php'));]]></searchcode>
<replacecode><![CDATA[ require_once (DLEPlugins::Check(ENGINE_DIR . '/inc/maharder/_includes/extras/paths.php'));]]></replacecode>
<enabled>1</enabled>
</operation>
</file>
</dleplugin>

0 comments on commit 1ea1326

Please sign in to comment.