balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

debug.php (3690B)


      1 <h1 class="sp-text-xl sp-mt-4 sp-mb-1"><?php esc_html_e( 'System Information', 'coming-soon' ); ?></h1>
      2 <textarea readonly="readonly" style="width: 100%; height: 500px"><?php echo esc_textarea(seedprod_lite_get_system_info()); ?></textarea>
      3 
      4 
      5 <?php
      6 if ( ! empty( $_POST['sp_reset_cs'] ) && $_POST['sp_reset_cs'] == 1 ) {
      7 	update_option( 'seedprod_coming_soon_page_id', false );
      8 }
      9 if ( ! empty( $_POST['sp_reset_mm'] ) && $_POST['sp_reset_mm'] == 1 ) {
     10 	update_option( 'seedprod_maintenance_mode_page_id', false );
     11 }
     12 if ( ! empty( $_POST['sp_reset_p404'] ) && $_POST['sp_reset_p404'] == 1 ) {
     13 	update_option( 'seedprod_404_page_id', false );
     14 }
     15 if ( ! empty( $_POST['sp_reset_loginp'] ) && $_POST['sp_reset_loginp'] == 1 ) {
     16 	update_option( 'seedprod_login_page_id', false );
     17 }
     18 if ( ! empty( $_POST['sp_builder_debug'] ) && $_POST['sp_builder_debug'] == 1 ) {
     19 	update_option( 'seedprod_builder_debug', true );
     20 } elseif ( ! empty( $_POST ) ) {
     21 	update_option( 'seedprod_builder_debug', false );
     22 }
     23 
     24 // get option
     25 $seedprod_builder_debug = get_option( 'seedprod_builder_debug' );
     26 ?>
     27 <h1 class="sp-text-xl sp-mt-4 sp-mb-1"><?php esc_html_e( 'Debug Tools', 'coming-soon' ); ?></h1>
     28 <?php if ( ! empty( ! empty( $_POST ) ) ) { ?>
     29 <div id="setting-error-settings_updated" class="notice notice-success settings-error is-dismissible" style="margin:0px 20px 0 0"> 
     30 <p><strong>Updated.</strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>
     31 <?php } ?>
     32 <form method="post" novalidate="novalidate">
     33 <table class="form-table" role="presentation">
     34 <tbody>
     35 <tr>
     36 <th scope="row">Builder Debug<br><small>If you are having a problem in the builder like inserting an image or some other feature in the builder is broken, check this box.</small></th>
     37 <td> <fieldset><legend class="screen-reader-text"><span>Builder Debug</span></legend><label for="sp_builder_debug">
     38 <input name="sp_builder_debug" type="checkbox" id="sp_builder_debug" value="1" <?php echo ( ! empty( $seedprod_builder_debug ) ) ? 'checked' : ''; ?>>
     39 	Enable Builder Debug</label>
     40 </fieldset></td>
     41 </tr>
     42 <tr>
     43 <th scope="row">Reset Coming Soon Page<br><small>This will delete the current coming soon page.</small></th>
     44 <td> <fieldset><legend class="screen-reader-text"><span>Builder Debug</span></legend><label for="sp_reset_cs">
     45 <input name="sp_reset_cs" type="checkbox" id="sp_reset_cs" value="1">
     46 Check Box and Save to Reset</label>
     47 </fieldset></td>
     48 </tr>
     49 <tr>
     50 <th scope="row">Reset Maintenance Mode Page<br><small>This will delete the current maintenance page.</small></th>
     51 <td> <fieldset><legend class="screen-reader-text"><span>Builder Debug</span></legend><label for="sp_reset_mm">
     52 <input name="sp_reset_mm" type="checkbox" id="sp_reset_mm" value="1">
     53 Check Box and Save to Reset</label>
     54 </fieldset></td>
     55 </tr>
     56 <tr>
     57 <th scope="row">Reset Login Page<br><small>This will delete the current Custom Login page.</small></th>
     58 <td> <fieldset><legend class="screen-reader-text"><span>Builder Debug</span></legend><label for="sp_reset_loginp">
     59 <input name="sp_reset_loginp" type="checkbox" id="sp_reset_loginp" value="1">
     60 Check Box and Save to Reset</label>
     61 </fieldset></td>
     62 </tr>
     63 <tr>
     64 <th scope="row">Reset 404 Page<br><small>This will delete the current 404 page.</small></th>
     65 <td> <fieldset><legend class="screen-reader-text"><span>Builder Debug</span></legend><label for="sp_reset_p404">
     66 <input name="sp_reset_p404" type="checkbox" id="sp_reset_p404" value="1">
     67 Check Box and Save to Reset</label>
     68 </fieldset></td>
     69 </tr></tbody>
     70 </table>
     71 <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes"></p>
     72 </form>