mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 21:04:33 +00:00
39 lines
888 B
PHP
39 lines
888 B
PHP
<?php
|
|
if (!defined('PHPWG_ROOT_PATH'))
|
|
{
|
|
die('Hacking attempt!');
|
|
}
|
|
|
|
require_once(dirname(__FILE__) . '/include/database.class.php');
|
|
require_once(dirname(__FILE__) . '/tools/watermark_profiles.inc.php');
|
|
|
|
class bratonien_tools_maintain extends PluginMaintain
|
|
{
|
|
public function install($plugin_version, &$errors = array())
|
|
{
|
|
bratonien_tools_create_tables();
|
|
bratonien_tools_create_default_watermark_profiles();
|
|
}
|
|
|
|
public function activate($plugin_version, &$errors = array())
|
|
{
|
|
bratonien_tools_create_tables();
|
|
bratonien_tools_create_default_watermark_profiles();
|
|
}
|
|
|
|
public function deactivate()
|
|
{
|
|
}
|
|
|
|
public function update($old_version, $new_version, &$errors = array())
|
|
{
|
|
bratonien_tools_create_tables();
|
|
bratonien_tools_create_default_watermark_profiles();
|
|
}
|
|
|
|
public function uninstall()
|
|
{
|
|
bratonien_tools_drop_tables();
|
|
}
|
|
}
|