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