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

Revision 12770, 362 bytes checked in by rvelices, 8 years ago (diff)
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.