source: extensions/SocialButtons/maintain.inc.php @ 25663

Last change on this file since 25663 was 24757, checked in by mistic100, 11 years ago

add light mode: no script loaded
tests in migration task
add an id to the div on picture page

File size: 597 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4defined('SOCIALBUTT_ID') or define('SOCIALBUTT_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . SOCIALBUTT_ID . '/include/install.inc.php');
6
7
8function plugin_install() 
9{
10  socialbutt_install();
11  define('socialbutt_installed', true);
12}
13
14
15function plugin_activate()
16{
17  if (!defined('socialbutt_installed'))
18  {
19    socialbutt_install();
20  }
21}
22
23
24function plugin_uninstall() 
25{
26  global $conf;
27 
28  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "SocialButtons";');
29  unset($conf['SocialButtons']);
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.