*/ global $wpdb, $order_table_name, $paylog_table_name, $coupon_table_name, $balance_log_table_name,$down_log_table_name; $order_table_name = isset($table_prefix) ? ($table_prefix . 'cao_order') : ($wpdb->prefix . 'cao_order'); $paylog_table_name = isset($table_prefix) ? ($table_prefix . 'cao_paylog') : ($wpdb->prefix . 'cao_paylog'); $coupon_table_name = isset($table_prefix) ? ($table_prefix . 'cao_coupon') : ($wpdb->prefix . 'cao_coupon'); $balance_log_table_name = isset($table_prefix) ? ($table_prefix . 'cao_balance_log') : ($wpdb->prefix . 'cao_balance_log'); $ref_log_table_name = isset($table_prefix) ? ($table_prefix . 'cao_ref_log') : ($wpdb->prefix . 'cao_ref_log'); $down_log_table_name = isset($table_prefix) ? ($table_prefix . 'cao_down_log') : ($wpdb->prefix . 'cao_down_log'); $mpwx_log_table_name = isset($table_prefix) ? ($table_prefix . 'cao_mpwx_log') : ($wpdb->prefix . 'cao_mpwx_log'); if (!function_exists('caozhuti_setup')): /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function caozhuti_setup() { $setupDb = new setupDb(); $setupDb->install(); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded