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