mirror of
https://github.com/Piwigo/Piwigo-Social-Buttons.git
synced 2026-03-28 17:42:48 +01:00
tests in migration task add an id to the div on picture page git-svn-id: http://piwigo.org/svn/extensions/SocialButtons@24757 68402e56-0260-453c-a942-63ccdbb3a9ee
32 lines
597 B
PHP
32 lines
597 B
PHP
<?php
|
|
defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
|
|
|
|
defined('SOCIALBUTT_ID') or define('SOCIALBUTT_ID', basename(dirname(__FILE__)));
|
|
include_once(PHPWG_PLUGINS_PATH . SOCIALBUTT_ID . '/include/install.inc.php');
|
|
|
|
|
|
function plugin_install()
|
|
{
|
|
socialbutt_install();
|
|
define('socialbutt_installed', true);
|
|
}
|
|
|
|
|
|
function plugin_activate()
|
|
{
|
|
if (!defined('socialbutt_installed'))
|
|
{
|
|
socialbutt_install();
|
|
}
|
|
}
|
|
|
|
|
|
function plugin_uninstall()
|
|
{
|
|
global $conf;
|
|
|
|
pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "SocialButtons";');
|
|
unset($conf['SocialButtons']);
|
|
}
|
|
|
|
?>
|