Changeset 14528 for extensions/Comments_on_Albums/maintain.inc.php
- Timestamp:
- Apr 29, 2012, 5:09:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/maintain.inc.php
r11267 r14528 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 4 // Default configuration5 define(6 'default_config',7 serialize(array(8 'icon_color' => 'outline_ff3363.png',9 'icon_color_over' => 'outline_ff7700.png',10 ))11 );12 13 // Installation14 4 function plugin_install() 15 5 { … … 29 19 ) DEFAULT CHARSET=utf8 30 20 ;"); 31 32 pwg_query("33 INSERT INTO " . CONFIG_TABLE . "(param,value,comment)34 VALUES(35 'comments_on_albums',36 '" . default_config . "',37 'Comments on Albums plugin'38 )39 ;");40 21 } 41 22 42 // Uninstallation 23 function plugin_activate() 24 { 25 global $conf; 26 27 if (isset($conf['comments_on_albums'])) 28 { 29 pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="comments_on_albums" LIMIT 1;'); 30 } 31 } 32 43 33 function plugin_uninstall() 44 34 { … … 46 36 47 37 pwg_query("DROP TABLE `" . $prefixeTable . "comments_categories`;"); 48 pwg_query("DELETE FROM " . CONFIG_TABLE . " WHERE `param` = 'comments_on_albums';");49 38 } 50 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.