Files
Piwigo-Social-Buttons/maintain.inc.php
mistic100 267f127067 add light mode: no script loaded
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
2013-10-04 20:09:05 +00:00

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']);
}
?>