PluginProbe
Watu Quiz / trunk
Watu Quiz vtrunk
3.4.8 trunk 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.5.3 3.4.6 3.4.7
watu / uninstall.php

uninstall.php in Watu Quiz trunk, at uninstall.php

24 lines 793 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin URI: http://wordpress.org/plugins/watu/
4 Author: Kiboko Labs
5 */
6
7 global $wpdb;
8
9 if(!defined('WP_UNINSTALL_PLUGIN') or !WP_UNINSTALL_PLUGIN) exit;
10
11 $delDb = get_option('watu_delete_db');
12
13 delete_option('watu_show_answers');
14 delete_option('watu_single_page');
15 delete_option('watu_answer_type');
16 delete_option( 'watu_db_tables' );
17
18 if( $delDb == 'checked="checked"' and get_option('watu_delete_db_confirm') == 'yes') {
19 $wpdb->query(" DROP TABLE IF EXISTS {$wpdb->prefix}watu_master ");
20 $wpdb->query(" DROP TABLE IF EXISTS {$wpdb->prefix}watu_question ");
21 $wpdb->query(" DROP TABLE IF EXISTS {$wpdb->prefix}watu_answer ");
22 $wpdb->query(" DROP TABLE IF EXISTS {$wpdb->prefix}watu_grading ");
23 $wpdb->query(" DROP TABLE IF EXISTS {$wpdb->prefix}watu_takings ");
24 }