source: extensions/derivatives/maintain.inc.php @ 19456

Last change on this file since 19456 was 12770, checked in by rvelices, 13 years ago
File size: 362 bytes
Line 
1<?php
2
3function plugin_activate()
4{
5  $dir_name = basename( dirname(__FILE__) );
6  $c = <<<EOD
7<?php
8define('PHPWG_ROOT_PATH','./');
9include_once( PHPWG_ROOT_PATH. 'plugins/$dir_name/i.php');
10?>
11EOD;
12  $fp = fopen( PHPWG_ROOT_PATH.'i.php', 'w' );
13  fwrite( $fp, $c);
14  fclose( $fp );
15}
16
17function plugin_deactivate()
18{
19  @unlink( PHPWG_ROOT_PATH.'i.php' );
20}
21
22
23?>
Note: See TracBrowser for help on using the repository browser.