Last change
on this file since 18113 was
15994,
checked in by mistic100, 12 years ago
|
fix possible warnings when activating
clean index.php
|
File size:
715 bytes
|
Rev | Line | |
---|
[11600] | 1 | <?php |
---|
| 2 | function plugin_install() |
---|
[15121] | 3 | { |
---|
[15994] | 4 | $google_conf = array( |
---|
[15121] | 5 | 'size' => 'medium', |
---|
| 6 | 'position' => 'toolbar', |
---|
[15123] | 7 | 'annotation' => 'bubble', |
---|
[15121] | 8 | ); |
---|
| 9 | |
---|
[15994] | 10 | conf_update_param('GooglePlusOne', serialize($google_conf)); |
---|
[11600] | 11 | } |
---|
| 12 | |
---|
[15121] | 13 | function plugin_activate() |
---|
| 14 | { |
---|
| 15 | global $conf; |
---|
| 16 | |
---|
| 17 | if (@unserialize($conf['GooglePlusOne']) === false) |
---|
| 18 | { |
---|
[15994] | 19 | $google_conf = explode(',', $conf['GooglePlusOne']); |
---|
| 20 | $google_conf = array( |
---|
| 21 | 'size' => $tweet_conf[0], |
---|
| 22 | 'position' => $tweet_conf[1], |
---|
[15121] | 23 | 'annotation' => 'bubble', |
---|
| 24 | ); |
---|
| 25 | |
---|
[15994] | 26 | conf_update_param('GooglePlusOne', serialize($google_conf)); |
---|
[15121] | 27 | } |
---|
| 28 | } |
---|
| 29 | |
---|
[11600] | 30 | function plugin_uninstall() |
---|
| 31 | { |
---|
| 32 | pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="GooglePlusOne" LIMIT 1;'); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.