-
+ A5D4CAC66409C5945CA8C3BF8A893EE1D18935F4CBFFCB85DD30A305B5BD6A404B75B6372FD33242C7BFD752FBD6F8B6552EB522EC76FD9437BD43CFC0AEFAED
mp-wp/wp-admin/export.php
(0 . 0)(1 . 62)
13348 <?php
13349 /**
13350 * WordPress Export Administration Panel
13351 *
13352 * @package WordPress
13353 * @subpackage Administration
13354 */
13355
13356 /** Load WordPress Bootstrap */
13357 require_once ('admin.php');
13358
13359 /** Load WordPress export API */
13360 require_once('includes/export.php');
13361 $title = __('Export');
13362
13363 if ( isset( $_GET['download'] ) ) {
13364 $author = isset($_GET['author']) ? $_GET['author'] : 'all';
13365 export_wp( $author );
13366 die();
13367 }
13368
13369 require_once ('admin-header.php');
13370 ?>
13371
13372 <div class="wrap">
13373 <?php screen_icon(); ?>
13374 <h2><?php echo wp_specialchars( $title ); ?></h2>
13375
13376 <p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
13377 <p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
13378 <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>
13379 <form action="" method="get">
13380 <h3><?php _e('Options'); ?></h3>
13381
13382 <table class="form-table">
13383 <tr>
13384 <th><label for="author"><?php _e('Restrict Author'); ?></label></th>
13385 <td>
13386 <select name="author" id="author">
13387 <option value="all" selected="selected"><?php _e('All Authors'); ?></option>
13388 <?php
13389 $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
13390 foreach ( $authors as $id ) {
13391 $o = get_userdata( $id );
13392 echo "<option value='$o->ID'>$o->display_name</option>";
13393 }
13394 ?>
13395 </select>
13396 </td>
13397 </tr>
13398 </table>
13399 <p class="submit"><input type="submit" name="submit" class="button" value="<?php _e('Download Export File'); ?>" />
13400 <input type="hidden" name="download" value="true" />
13401 </p>
13402 </form>
13403 </div>
13404
13405 <?php
13406
13407
13408 include ('admin-footer.php');
13409 ?>