source: extensions/user_delete_photo/maintain.inc.php @ 27153

Revision 21964, 415 bytes checked in by ddtddt, 7 years ago (diff)

[extensions] - user_delete_photo - First release

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5function plugin_install()
6{
7    global $prefixeTable;
8
9        $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("udp","datecreate","user delete photo");';
10    pwg_query($query);
11
12}
13
14
15function plugin_uninstall()
16{
17        global $prefixeTable;
18
19
20        $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="udp" LIMIT 1;';
21    pwg_query($q);
22}
23
24
25?>
Note: See TracBrowser for help on using the repository browser.