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

Last change on this file since 20384 was 20090, checked in by mistic100, 11 years ago
  • add webservices
  • add mail function
  • add admin list
  • add admin export function
  • try to deal with Gthumb+
  • activate multisize dropdown menu of collection page

TODO : use webservices instead of toggle_image.php

File size: 665 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{
24  global $prefixeTable;
25 
26  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collections`;');
27  pwg_query('DROP TABLE IF EXISTS `'.$prefixeTable.'collection_images`;');
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.