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