source: extensions/gvideo/maintain.inc.php @ 25973

Last change on this file since 25973 was 20804, checked in by mistic100, 11 years ago
  • add support for semi-private Vimeo videos
  • escape tags
  • compatible with safe_mode=On
  • deactivate autosize
File size: 722 bytes
RevLine 
[3609]1<?php
[17307]2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
[3609]3
[20804]4defined('GVIDEO_ID') or define('GVIDEO_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . GVIDEO_ID . '/include/install.inc.php');
[17307]6
[20804]7
[17383]8/* install */
[17307]9function plugin_install() 
[3609]10{
[17661]11  gvideo_install();
[17307]12 
[17661]13  define('gvideo_installed', true);
[3609]14}
15
[17383]16/* activate */
[3609]17function plugin_activate()
18{
[17661]19  if (!defined('gvideo_installed'))
[3609]20  {
[17661]21    gvideo_install();
[3609]22  }
23}
24
[17383]25/* uninstall */
[17307]26function 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.