source: extensions/GuestBook/maintain.inc.php @ 24889

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

use my plugin architecture, add options to hide the page for guests, fix admin links in mails

File size: 523 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4defined('GUESTBOOK_ID') or define('GUESTBOOK_ID', basename(dirname(__FILE__)));
5include_once(PHPWG_PLUGINS_PATH . GUESTBOOK_ID . '/include/install.inc.php');
6
7// Installation
8function plugin_install()
9{
10  guestbook_install();
11  define('guestbook_installed', true
12}
13
14// Activation
15function plugin_activate()
16{
17  if (!defined('guestbook_installed'))
18  {
19    guestbook_install();
20  }
21}
22
23// Uninstallation
24function plugin_uninstall()
25{
26  guestbook_uninstall();
27}
Note: See TracBrowser for help on using the repository browser.