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
9 years ago
|
<?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 CPPREFIX_module_rubnav;";
|
||
|
|
||
|
//Установка модуля
|
||
|
$module_sql_install[] = "CREATE TABLE CPPREFIX_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 `CPPREFIX_module_rubnav` VALUES (1, '<a href=\"[tag:link]\">[tag:linkname]</a>', '<a href=\"[tag:link]\">[tag:linkname]</a>');";
|
||
|
|
||
|
// Обновление модуля
|
||
|
$module_sql_update[] = "
|
||
|
UPDATE
|
||
|
`CPPREFIX_module`
|
||
|
SET
|
||
|
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
|
||
|
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',
|
||
|
ModuleVersion = '" . $modul['ModuleVersion'] . "'
|
||
|
WHERE
|
||
|
ModuleSysName = '" . $modul['ModuleSysName'] . "'
|
||
|
LIMIT 1;
|
||
|
";
|
||
|
?>
|