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

Last change on this file since 19198 was 17657, checked in by mistic100, 12 years ago

consolidate upgrade process, remote filter_var function (PHP 5.2)

File size: 579 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4include_once(PHPWG_PLUGINS_PATH . 'UserCollections/include/install.inc.php');
5
6function plugin_install() 
7{
8  user_collections_install();
9 
10  define('user_collections_installed', true);
11}
12
13function plugin_activate()
14{
15  if (!defined('user_collections_intalled'))
16  {
17    user_collections_install();
18  }
19}
20
21function plugin_uninstall() 
22{
23  global $prefixeTable;
24 
25  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collections`;');
26  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collection_images`;');
27}
28
29?>
Note: See TracBrowser for help on using the repository browser.