ninja_forms_tab_impexp_backup

The Ninja Forms ninja forms tab impexp backup function.

Description

ninja_forms_tab_impexp_backup(); 

Usage

  1. if ( !function_exists( 'ninja_forms_tab_impexp_backup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms-impexp/tabs/impexp-backup/impexp-backup.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_tab_impexp_backup(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/admin/pages/ninja-forms-impexp/tabs/impexp-backup/impexp-backup.php  
  1. function ninja_forms_tab_impexp_backup() { 
  2. global $wpdb; 
  3. ?> 
  4. <h2><?php _e( 'Backup / Restore', 'ninja-forms' );?></h2> 
  5. <p class="description description-wide"> 
  6. <h3 class="section-title"><?php _e( 'Backup Ninja Forms', 'ninja-forms' );?>:</h3> 
  7. <div class="form-section"> 
  8. <input type="submit" name="submit" id="" class="button-primary" value="<?php _e( 'Backup Ninja Forms', 'ninja-forms' ); ?>"> 
  9. </div> 
  10. </p> 
  11. <p class="description description-wide"> 
  12. <h3 class="section-title"><?php _e( 'Restore Ninja Forms', 'ninja-forms' );?>:</h3> 
  13. <div class="form-section"> 
  14. <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> 
  15. <input type="file" name="userfile" id=""> 
  16. <input type="submit" name="submit" id="" class="button-primary" value="<?php _e( 'Restore Ninja Forms', 'ninja-forms' ); ?>"> 
  17. <?php 
  18. if(isset($_POST['submit']) AND isset($_POST['ninja_forms_restore'])) { 
  19. ?> 
  20. <div id="message" class="updated below-h2"> 
  21. <p><?php _e( 'Data restored successfully!', 'ninja-forms' ); ?></p> 
  22. </div> 
  23. <?php 
  24. ?> 
  25. </div> 
  26. </p> 
  27. <?php