Changeset 9683 for extensions/SmiliesSupport/maintain.inc.php
- Timestamp:
- Mar 14, 2011, 9:38:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/maintain.inc.php
r3304 r9683 1 1 <?php 2 3 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 3 5 4 function plugin_install() 6 5 { 7 6 global $conf; 8 7 9 10 11 12 VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");';13 14 8 if (!isset($conf['smiliessupport'])) 9 { 10 $q = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 11 VALUES ("smiliessupport","plugins/SmiliesSupport/smilies,5,sourire.gif","Parametres SmiliesSupport");'; 12 pwg_query($q); 13 } 15 14 } 16 15 17 16 function plugin_uninstall() 18 17 { 19 18 global $conf; 20 19 21 22 23 24 20 if (isset($conf['smiliessupport'])) 21 { 22 pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="smiliessupport" LIMIT 1;'); 23 } 25 24 } 25 26 ?>
Note: See TracChangeset
for help on using the changeset viewer.