source: extensions/UserCollections/maintain.inc.php @ 24637

Last change on this file since 24637 was 24421, checked in by mistic100, 11 years ago

new system for shares : password protection, link timeout, management popup + for mails
handle lightbox conflicts
menublock is visible by AMM

File size: 869 bytes
RevLine 
[16591]1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
[20090]4defined('USER_COLLEC_ID') or define('USER_COLLEC_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . USER_COLLEC_ID . '/include/install.inc.php');
[17657]6
[16591]7function plugin_install() 
8{
[17657]9  user_collections_install();
[16591]10 
[17657]11  define('user_collections_installed', true);
[16591]12}
13
14function plugin_activate()
[16658]15{
[17657]16  if (!defined('user_collections_intalled'))
[16658]17  {
[17657]18    user_collections_install();
[16658]19  }
20}
[16591]21
22function plugin_uninstall() 
23{
[24421]24  global $prefixeTable, $conf;
[16591]25 
[24421]26  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "user_collections";');
[16591]27  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collections`;');
28  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collection_images`;');
[24421]29  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collection_shares`;');
30 
31  unset($conf['user_collections']);
[16591]32}
33
34?>
Note: See TracBrowser for help on using the repository browser.