Last change
on this file since 15907 was
14528,
checked in by mistic100, 12 years ago
|
update for 2.4
delete useless admin page
now compatible with RV Thumb Scroller
|
File size:
935 bytes
|
Rev | Line | |
---|
[9624] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
[11267] | 4 | function plugin_install() |
---|
| 5 | { |
---|
[10984] | 6 | global $prefixeTable; |
---|
[9624] | 7 | |
---|
[11267] | 8 | pwg_query(" |
---|
| 9 | CREATE TABLE `" . $prefixeTable . "comments_categories` ( |
---|
| 10 | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
---|
| 11 | `category_id` mediumint(8) unsigned NOT NULL DEFAULT '0', |
---|
| 12 | `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
---|
| 13 | `author` varchar(255) DEFAULT NULL, |
---|
| 14 | `author_id` smallint(5) DEFAULT NULL, |
---|
| 15 | `content` longtext, |
---|
| 16 | `validated` enum('true','false') NOT NULL DEFAULT 'false', |
---|
| 17 | `validation_date` datetime DEFAULT NULL, |
---|
| 18 | PRIMARY KEY (`id`) |
---|
| 19 | ) DEFAULT CHARSET=utf8 |
---|
| 20 | ;"); |
---|
[14528] | 21 | } |
---|
| 22 | |
---|
| 23 | function plugin_activate() |
---|
| 24 | { |
---|
| 25 | global $conf; |
---|
[10984] | 26 | |
---|
[14528] | 27 | if (isset($conf['comments_on_albums'])) |
---|
| 28 | { |
---|
| 29 | pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="comments_on_albums" LIMIT 1;'); |
---|
| 30 | } |
---|
[9624] | 31 | } |
---|
| 32 | |
---|
[11267] | 33 | function plugin_uninstall() |
---|
| 34 | { |
---|
[10984] | 35 | global $prefixeTable; |
---|
[9624] | 36 | |
---|
[10984] | 37 | pwg_query("DROP TABLE `" . $prefixeTable . "comments_categories`;"); |
---|
[9624] | 38 | } |
---|
| 39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.