Changeset 1180470
- Timestamp:
- 06/13/2015 11:28:08 PM (11 years ago)
- Location:
- the-welcomizer/trunk
- Files:
-
- 4 edited
-
includes/twiz.admin.class.php (modified) (1 diff)
-
includes/twiz.class.php (modified) (4 diffs)
-
includes/twiz.installation.class.php (modified) (4 diffs)
-
twiz-index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
the-welcomizer/trunk/includes/twiz.admin.class.php
r1179719 r1180470 744 744 745 745 $this->override_network_settings = '0'; 746 747 if( ( !is_multisite() ) or ( $this->override_network_settings == '1' ) ){ 748 749 $code = update_option('twiz_override_network_settings', $this->override_network_settings); 750 $this->override_network_settings = get_option('twiz_override_network_settings'); 751 752 }else{ 753 754 $this->override_network_settings = '0'; 755 } 746 $code = update_option('twiz_override_network_settings', $this->override_network_settings); 756 747 } 757 748 -
the-welcomizer/trunk/includes/twiz.class.php
r1180097 r1180470 938 938 939 939 $this->override_network_settings = get_option('twiz_override_network_settings'); // Main switch between get_option and get_site_option 940 941 if( $this->override_network_settings == '' ) { 942 943 $this->override_network_settings = '0'; 944 } 945 940 946 $ok = $this->setDefaultSectionArrayValues(); 941 947 942 948 if( ( $this->user_id == '' ) or ($this->user_id == '0' ) ){ // for the front-end or installation only 943 949 … … 1169 1175 $jquery = '<script> 1170 1176 //<![CDATA[ 1171 jQuery(document).ready(function($) { 1177 jQuery(document).ready(function($) {'; 1178 1179 1180 if( ( $this->admin_option[self::KEY_DISPLAY_VAR_DUMP] == true ) or ( TWIZ_FORCE_VARDUMP == true ) ){ 1181 1182 $jquery .= ' 1183 $("#twiz_var_dump").css({"display":"block","height":$(window).height()-65, "width":$(window).width()-720});'; 1184 1185 } 1186 $jquery .= ' 1172 1187 $.ajaxSetup({ cache: false }); 1173 1188 $("#twiz_privacy_save").click(function(){ … … 1190 1205 </script>'; 1191 1206 1207 if( ( $this->admin_option[self::KEY_DISPLAY_VAR_DUMP] == true ) or ( TWIZ_FORCE_VARDUMP == true ) ){ 1208 1209 $myTwizMenu = new TwizMenu(); 1210 $html .= '<div id="twiz_var_dump" title="'.__('Click to Refresh', 'the-welcomizer').'">'.$myTwizMenu->getVarDump().'</div>'; 1211 } 1192 1212 return $html.$jquery; 1193 1213 } … … 4006 4026 4007 4027 $code = update_option('twiz_override_network_settings', '1'); 4008 4028 4009 4029 }else{ 4010 4030 -
the-welcomizer/trunk/includes/twiz.installation.class.php
r1179719 r1180470 159 159 160 160 }else{ // UPDATE TO NEW VERSION, or install new separatly 161 161 162 162 $is_overriding_network_settings = get_option('twiz_override_network_settings'); 163 163 164 164 if( ( is_multisite() ) and ( $network_activation == '' ) ){ // blog activated separately on network 165 166 165 167 166 $twiz_privacy_question_answered = get_option('twiz_privacy_question_answered'); … … 176 175 177 176 }else if( is_multisite() and ( $network_activation == '1' ) ){ // network activated after blog activated separately on network 178 177 179 178 $is_overriding_network_settings = ($is_overriding_network_settings == '') ? '0' : $is_overriding_network_settings ; 180 179 $twiz_privacy_question_answered = get_site_option('twiz_privacy_question_answered'); … … 729 728 } 730 729 730 if( !isset($this->admin_option[parent::KEY_DELETE_ALL] ) ) { $this->admin_option[parent::KEY_DELETE_ALL] = ''; } 731 if( !isset($admin_option[parent::KEY_DELETE_ALL] ) ) { $admin_option[parent::KEY_DELETE_ALL] = ''; } 732 if( $this->admin_option[parent::KEY_DELETE_ALL] == '' ) { $this->admin_option[parent::KEY_DELETE_ALL] = '1'; } 733 if( $admin_option[parent::KEY_DELETE_ALL] == '' ) { $admin_option[parent::KEY_DELETE_ALL] = '1'; } 731 734 732 735 if( ( $this->admin_option[parent::KEY_DELETE_ALL] == '1' ) or ( $admin_option[parent::KEY_DELETE_ALL] == '1' ) ){ … … 741 744 $reset_stored_request = $wpdb->get_var( "show tables like '".$this->table."'" ); 742 745 } 746 747 if( !isset($this->admin_option[parent::KEY_REMOVE_CREATED_DIRECTORIES] ) ) { $this->admin_option[parent::KEY_REMOVE_CREATED_DIRECTORIES] = ''; } 748 if( $this->admin_option[parent::KEY_REMOVE_CREATED_DIRECTORIES] == '' ) { $this->admin_option[parent::KEY_REMOVE_CREATED_DIRECTORIES] = '1'; } 743 749 744 750 // remove directories -
the-welcomizer/trunk/twiz-index.php
r1179719 r1180470 108 108 }else{ 109 109 110 if( !is_multisite() ){ // On network activation, twizInstall is called a first time with no params. 110 if ( ! function_exists( 'is_plugin_active_for_network' ) ){ require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); } 111 112 // On network activation, twizInstall is called a first time with no params. 113 if ( ( !is_multisite() ) or( is_plugin_active_for_network( plugin_dir_url( __FILE__ ) ) ) ) { 111 114 112 115 $TwizInstallation = new TwizInstallation(); 113 116 $ok = $TwizInstallation->install( $network_activation ); 114 117 } 118 115 119 } 116 120 … … 121 125 } 122 126 }} 127 128 123 129 // uninstall the plugin, drop table etc... 124 130 if(!function_exists('twizUninstall')){
Note: See TracChangeset
for help on using the changeset viewer.