Changeset 885003
- Timestamp:
- 03/31/2014 11:22:20 AM (12 years ago)
- Location:
- wp-vgwort/trunk
- Files:
-
- 3 edited
-
export.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-vgwort.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/trunk/export.php
r847729 r885003 1 1 <?php 2 header( "content-type: text/csv" );3 header( "content-disposition: attachment; filename=\"export.csv\"" );4 2 5 3 // TODO: Wozu wird das hier benötigt? 6 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp- blog-header.php' ) ) {7 include_once( $_SERVER["DOCUMENT_ROOT"] . 'wp- blog-header.php' );4 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-load.php' ) ) { 5 include_once( $_SERVER["DOCUMENT_ROOT"] . 'wp-load.php' ); 8 6 } 9 7 10 8 // TODO: Zwei mal der gleich Code (siehe Code zuvor)? 11 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp- blog-header.php' ) ) {12 include_once( $_SERVER["DOCUMENT_ROOT"] . '/wp- blog-header.php' );9 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-load.php' ) ) { 10 include_once( $_SERVER["DOCUMENT_ROOT"] . '/wp-load.php' ); 13 11 } 14 12 … … 23 21 $doAction = $_POST['action']; 24 22 23 24 $exportDocument = ''; 25 25 26 switch ( $doAction ) { 26 27 … … 29 30 global $wpdb; 30 31 31 $exportDocument = '';32 32 33 $exportResult = $wpdb->get_results( $wpdb->prepare( 'SELECT WPP.ID , WPP.post_title, WPPM.meta_value FROM ' . $wpdb->posts . ' WPP INNER JOIN ' . $wpdb->postmeta . ' WPPM ON WPP.ID = WPPM.post_id WHERE WPPM.meta_key = %s', WP_VGWORT::get_instance()->get_vg_wort_meta() ), ARRAY_A ); 33 34 foreach ( $exportResult as &$result ) { … … 36 37 } 37 38 38 echo( $exportDocument );39 40 39 break; 40 41 default: 41 42 } 42 43 } 44 45 header("Pragma: public"); 46 header("Expires: 0"); 47 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 48 header("Cache-Control: private", false); 49 header("Content-Type: application/octet-stream"); 50 header("Content-Disposition: attachment; filename=\"report.csv\";" ); 51 header("Content-Transfer-Encoding: binary"); 52 53 echo $exportDocument; 54 55 die(); -
wp-vgwort/trunk/readme.txt
r847729 r885003 5 5 Requires at least: 3.0 6 6 Tested up to: 3.8.1 7 Stable tag: 2.1. 17 Stable tag: 2.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 44 = 2.1.1 = 45 * Export Bug behoben 43 46 44 47 = 2.1.1 = -
wp-vgwort/trunk/wp-vgwort.php
r847729 r885003 12 12 * Plugin URI: http://www.mywebcheck.de/vg-wort-plugin-wordpress/ 13 13 * Description: Integrieren Sie Zählmarken der VG WORT in Wordpress. 14 * Version: 2.1. 114 * Version: 2.1.2 15 15 * Author: Marcus Franke, Ronny Harbich 16 16 * Author URI: http://mywebcheck.de
Note: See TracChangeset
for help on using the changeset viewer.