source:
extensions/gvideo/maintain.inc.php
@
19231
Last change on this file since 19231 was 17661, checked in by , 12 years ago | |
---|---|
File size: 641 bytes |
Rev | Line | |
---|---|---|
[3609] | 1 | <?php |
[17307] | 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
[3609] | 3 | |
[17661] | 4 | include_once(PHPWG_PLUGINS_PATH . 'gvideo/include/install.inc.php'); |
[17307] | 5 | |
[17383] | 6 | /* install */ |
[17307] | 7 | function plugin_install() |
[3609] | 8 | { |
[17661] | 9 | gvideo_install(); |
[17307] | 10 | |
[17661] | 11 | define('gvideo_installed', true); |
[3609] | 12 | } |
13 | ||
[17383] | 14 | /* activate */ |
[3609] | 15 | function plugin_activate() |
16 | { | |
[17661] | 17 | if (!defined('gvideo_installed')) |
[3609] | 18 | { |
[17661] | 19 | gvideo_install(); |
[3609] | 20 | } |
21 | } | |
22 | ||
[17383] | 23 | /* uninstall */ |
[17307] | 24 | function plugin_uninstall() |
[17661] | 25 | { |
26 | global $prefixeTable; | |
27 | ||
[17307] | 28 | pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "gvideo" LIMIT 1;'); |
[17661] | 29 | pwg_query('DROP TABLE `'.$prefixeTable.'image_video`;'); |
[17488] | 30 | pwg_query('ALTER TABLE `' . IMAGES_TABLE . '` DROP `is_gvideo`;'); |
[17307] | 31 | } |
32 | ||
[3296] | 33 | ?> |
Note: See TracBrowser
for help on using the repository browser.