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

Last change on this file since 17697 was 17661, checked in by mistic100, 12 years ago

consolidate upgrade process, cURL compliant with safe_mode

File size: 641 bytes
RevLine 
[3609]1<?php
[17307]2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
[3609]3
[17661]4include_once(PHPWG_PLUGINS_PATH . 'gvideo/include/install.inc.php');
[17307]5
[17383]6/* install */
[17307]7function plugin_install() 
[3609]8{
[17661]9  gvideo_install();
[17307]10 
[17661]11  define('gvideo_installed', true);
[3609]12}
13
[17383]14/* activate */
[3609]15function plugin_activate()
16{
[17661]17  if (!defined('gvideo_installed'))
[3609]18  {
[17661]19    gvideo_install();
[3609]20  }
21}
22
[17383]23/* uninstall */
[17307]24function 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.