You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
<?php |
|
|
|
/** |
|
* AVE.cms - Навигация по рубрике |
|
* |
|
* @package AVE.cms |
|
* @subpackage module_RubNav |
|
* @filesource |
|
*/ |
|
|
|
/** |
|
* mySQL-запросы для установки, обновления и удаления модуля |
|
*/ |
|
|
|
$module_sql_install = array(); |
|
$module_sql_deinstall = array(); |
|
$module_sql_update = array(); |
|
|
|
//Удаление модуля |
|
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%%_module_rubnav;"; |
|
|
|
//Установка модуля |
|
$module_sql_install[] = "CREATE TABLE %%PRFX%%_module_rubnav ( |
|
`id` mediumint(5) unsigned NOT NULL auto_increment, |
|
`rubnav_tmpl_next` longtext NOT NULL, |
|
`rubnav_tmpl_prev` longtext NOT NULL, |
|
PRIMARY KEY (`id`) |
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; |
|
|
|
$module_sql_install[] = "INSERT INTO `%%PRFX%%_module_rubnav` VALUES (1, '<a href=\"[tag:link]\">[tag:linkname]</a>', '<a href=\"[tag:link]\">[tag:linkname]</a>');"; |
|
|
|
// Обновление модуля |
|
$module_sql_update[] = " |
|
UPDATE |
|
`%%PRFX%%_module` |
|
SET |
|
ModuleAveTag = '" . $modul['ModuleAveTag'] . "', |
|
ModulePHPTag = '" . $modul['ModulePHPTag'] . "', |
|
ModuleVersion = '" . $modul['ModuleVersion'] . "' |
|
WHERE |
|
ModuleSysName = '" . $modul['ModuleSysName'] . "' |
|
LIMIT 1; |
|
"; |
|
?>
|