Plugin Directory

Changeset 885003


Ignore:
Timestamp:
03/31/2014 11:22:20 AM (12 years ago)
Author:
smoo1337
Message:

Update Bug behoben

Location:
wp-vgwort/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-vgwort/trunk/export.php

    r847729 r885003  
    11<?php
    2 header( "content-type: text/csv" );
    3 header( "content-disposition: attachment; filename=\"export.csv\"" );
    42
    53// 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' );
     4if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-load.php' ) ) {
     5    include_once( $_SERVER["DOCUMENT_ROOT"] . 'wp-load.php' );
    86}
    97
    108// 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' );
     9if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-load.php' ) ) {
     10    include_once( $_SERVER["DOCUMENT_ROOT"] . '/wp-load.php' );
    1311}
    1412
     
    2321        $doAction = $_POST['action'];
    2422
     23       
     24    $exportDocument = '';
     25       
    2526    switch ( $doAction ) {
    2627
     
    2930            global $wpdb;
    3031
    31             $exportDocument = '';
     32           
    3233            $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 );
    3334            foreach ( $exportResult as &$result ) {
     
    3637            }
    3738
    38             echo( $exportDocument );
    39 
    4039            break;
     40           
     41            default:
    4142    }
    4243}
     44
     45header("Pragma: public");
     46header("Expires: 0");
     47header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
     48header("Cache-Control: private", false);
     49header("Content-Type: application/octet-stream");
     50header("Content-Disposition: attachment; filename=\"report.csv\";" );
     51header("Content-Transfer-Encoding: binary");
     52
     53echo $exportDocument;
     54
     55die();
  • wp-vgwort/trunk/readme.txt

    r847729 r885003  
    55Requires at least: 3.0
    66Tested up to: 3.8.1
    7 Stable tag: 2.1.1
     7Stable tag: 2.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 2.1.1 =
     45* Export Bug behoben
    4346
    4447= 2.1.1 =
  • wp-vgwort/trunk/wp-vgwort.php

    r847729 r885003  
    1212 * Plugin URI:  http://www.mywebcheck.de/vg-wort-plugin-wordpress/
    1313 * Description: Integrieren Sie Zählmarken der VG WORT in Wordpress.
    14  * Version:     2.1.1
     14 * Version:     2.1.2
    1515 * Author:      Marcus Franke, Ronny Harbich
    1616 * Author URI:  http://mywebcheck.de
Note: See TracChangeset for help on using the changeset viewer.