2.15 */ /* ********************* */ $query = ' SELECT param FROM '.CONFIG_TABLE.' WHERE param = "UserAdvManager_Redir" ;'; $count = pwg_db_num_rows(pwg_query($query)); if ($count == 0) { upgrade_2153_2154(); } /* Check for upgrade from 2.15 to 2.16 */ /* *********************************** */ $query = ' SELECT param FROM '.CONFIG_TABLE.' WHERE param = "UserAdvManager_Version" ;'; $count = pwg_db_num_rows(pwg_query($query)); if ($count == 0) { /* upgrade from branch 2.15 to 2.16 */ /* ******************************** */ upgrade_215_2160(); } load_conf_from_db('param like \'UserAdvManager\\_%\''); } function plugin_uninstall() { global $conf; if (isset($conf['UserAdvManager'])) { $q = ' DELETE FROM '.CONFIG_TABLE.' WHERE param="UserAdvManager" ;'; pwg_query($q); } if (isset($conf['UserAdvManager_ConfirmMail'])) { $q = ' DELETE FROM '.CONFIG_TABLE.' WHERE param="UserAdvManager_ConfirmMail" ;'; pwg_query($q); } if (isset($conf['UserAdvManager_Redir'])) { $q = ' DELETE FROM '.CONFIG_TABLE.' WHERE param="UserAdvManager_Redir" ;'; pwg_query($q); } if (isset($conf['UserAdvManager_Version'])) { $q = ' DELETE FROM '.CONFIG_TABLE.' WHERE param="UserAdvManager_Version" ;'; pwg_query($q); } $q = 'DROP TABLE '.USER_CONFIRM_MAIL_TABLE.';'; pwg_query( $q ); $q = 'DROP TABLE '.USER_LASTVISIT_TABLE.';'; pwg_query( $q ); } ?>