PHP Cross Reference of WordPress Subversion HEAD |
| [ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] |
[Summary view] [Print] [Text view]
1 <?php 2 require_once ('admin.php'); 3 require_once ('includes/export.php'); 4 $title = __('Export'); 5 $parent_file = 'edit.php'; 6 7 if ( isset( $_GET['download'] ) ) { 8 export_wp( $_GET['author'] ); 9 die(); 10 } 11 12 require_once ('admin-header.php'); 13 ?> 14 15 <div class="wrap"> 16 <h2><?php _e('Export'); ?></h2> 17 <div class="narrow"> 18 <p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p> 19 <p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories.'); ?></p> 20 <p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p> 21 <form action="" method="get"> 22 <h3><?php _e('Optional options'); ?></h3> 23 24 <table> 25 <tr> 26 <th><?php _e('Restrict Author:'); ?></th> 27 <td> 28 <select name="author"> 29 <option value="all" selected="selected"><?php _e('All'); ?></option> 30 <?php 31 $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" ); 32 foreach ( $authors as $id ) { 33 $o = get_userdata( $id ); 34 echo "<option value='$o->ID'>$o->display_name</option>"; 35 } 36 ?> 37 </select> 38 </td> 39 </tr> 40 </table> 41 <p class="submit"><input type="submit" name="submit" value="<?php _e('Download Export File'); ?> »" /> 42 <input type="hidden" name="download" value="true" /> 43 </p> 44 </form> 45 </div> 46 </div> 47 48 <?php 49 50 51 include ('admin-footer.php'); 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs | Cross-referenced by PHPXref 0.6 and RedAlt |