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