WordPress.org

Plugin Directory

Changeset 561252


Ignore:
Timestamp:
06/20/12 17:48:50 (22 months ago)
Author:
ntm
Message:

8.8.10.14 beta 13

Location:
podpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • podpress/trunk/podpress.php

    r560614 r561252  
    11<?php 
    2 define('PODPRESS_VERSION', '8.8.10.14 beta 12'); 
     2define('PODPRESS_VERSION', '8.8.10.14 beta 13'); 
    33/* 
    44Info for WordPress: 
    55============================================================================== 
    66Plugin Name: podPress 
    7 Version: 8.8.10.14 beta 12 
     7Version: 8.8.10.14 beta 13 
    88Plugin URI: http://www.mightyseek.com/podpress/ 
    99Description: The podPress plugin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in <a href="admin.php?page=podpress/podpress_feed.php">'podPress'->Feed/iTunes Settings</a>. If this plugin works for you, send us a comment. 
  • podpress/trunk/podpress_admin_functions.php

    r560614 r561252  
    10911091         
    10921092        if(!$resolved) { 
    1093             $systemFileName = $podPress->convertPodcastFileNameToSystemPath($mediafile); 
     1093            $systemFileName = $podPress->TryToFindAbsFileName($mediafile); 
     1094            if(FALSE !== $systemFileName) { 
     1095                $uriFileName = $systemFileName; 
     1096            } else { 
     1097                $uriFileName = $podPress->convertPodcastFileNameToValidWebPath($mediafile); 
     1098            } 
    10941099        } else { 
    10951100            $systemFileName = $mediafile; 
     
    10991104        podPress_var_dump('podPress_getID3tags - ' . $systemFileName); 
    11001105 
    1101         if(file_exists($systemFileName)) { 
    1102             $uriFileName = $systemFileName; 
     1106        $uriFileName = $systemFileName; 
     1107         
     1108        if(TRUE === is_readable($systemFileName)) { 
    11031109            podPress_var_dump('podPress_getID3tags - local file exists: '.$uriFileName); 
    11041110        } else { 
    1105             if(!$resolved) { 
    1106                 $uriFileName = $podPress->convertPodcastFileNameToValidWebPath($mediafile); 
    1107             } else { 
    1108                 $uriFileName = $mediafile; 
    1109             } 
    11101111            $local_uploadURL = $podPress->uploadurl; 
    11111112            podPress_var_dump('podPress_getID3tags - local_uploadURL: '.$local_uploadURL); 
     
    11181119                podPress_var_dump('podPress_getID3tags - it is a local file'); 
    11191120                $uriFileName = $podPress->uploadpath.str_replace($local_uploadURL,'',$uriFileName); 
    1120                 //$uriFileName = str_replace('\\', '/',$uriFileName); 
    11211121                podPress_var_dump('podPress_getID3tags - new uriFileName: '.$uriFileName); 
    11221122            } else { 
     
    13291329            podPress_var_dump('start of the duration retrieval'); 
    13301330            $systemFileName = $podPress->convertPodcastFileNameToSystemPath($mediafile); 
     1331             
    13311332            if(file_exists($systemFileName)) { 
     1333                podPress_var_dump('podPress_getDuration - is local file: '.$systemFileName); 
    13321334                $uriFileName = $systemFileName; 
    13331335            } else { 
  • podpress/trunk/podpress_backend.php

    r397441 r561252  
    2323if ( isset($_GET['action']) OR isset($_POST['action']) ) { 
    2424    if ( !defined('DB_NAME') ) { // everything is normal 
     25     
     26        // determine the root folder of the WP blog and the one above this folder 
     27        $podpress_abspath_parts = explode(DIRECTORY_SEPARATOR.'wp-content', __FILE__); 
     28        $podpress_abspath = $podpress_abspath_parts[0]; 
     29        $podpress_abspath_parts = explode(DIRECTORY_SEPARATOR, $podpress_abspath); 
     30        $podpress_nr_parts = count($podpress_abspath_parts); 
     31        $i = 0; 
     32        $podpress_abspath = ''; 
     33        $podpress_path_above_of_WP = ''; 
     34        foreach ($podpress_abspath_parts as $podpress_abspath_part) { 
     35            if ( $i < $podpress_nr_parts and FALSE === empty($podpress_abspath_part) ) { 
     36                $podpress_abspath .= DIRECTORY_SEPARATOR . $podpress_abspath_part; 
     37                if ( $i < ($podpress_nr_parts-1) ) { 
     38                    $podpress_path_above_of_WP .= DIRECTORY_SEPARATOR . $podpress_abspath_part; 
     39                } 
     40            } 
     41            $i++; 
     42        } 
     43         
    2544        define('WP_USE_THEMES', false); 
    26         require_once('../../../wp-config.php'); 
     45         
     46        if ( TRUE === is_readable($podpress_abspath.'/wp-config.php') ) { 
     47            require_once($podpress_abspath.'/wp-config.php'); 
     48        } elseif( TRUE === is_readable($podpress_path_above_of_WP.'/wp-config.php') ) { 
     49            require_once($podpress_path_above_of_WP.'/wp-config.php'); 
     50        } else { 
     51            die('Error: could not find wp-config.php.'); 
     52        } 
    2753        require_once(ABSPATH.PLUGINDIR.'/podpress/podpress_admin_functions.php'); 
    2854 
  • podpress/trunk/podpress_class.php

    r560614 r561252  
    837837                $uploadpath_parts = explode('/', $uploadpath_san2); 
    838838                 
    839                 //$result= parse_url($url); 
     839                //~ $result= parse_url($url); 
    840840                $home = preg_replace('/^https?/i', '', get_bloginfo('home')); 
    841841                $url = preg_replace('/^https?/i', '', $url); 
     
    847847                    return $filename; 
    848848                } else { 
    849                     return false; 
     849                    $filename = ABSPATH.ltrim($result['path'], '/'); 
     850                    if (TRUE === file_exists($filename)) { 
     851                        return $filename; 
     852                    } else { 
     853                        return false; 
     854                    } 
    850855                } 
    851856            } else { 
  • podpress/trunk/readme.txt

    r560585 r561252  
    5959* beta 10: minor fixes for the JS at the editor page (m4a preview player size) 
    6060* beta 11: new iTunes:image size is 1400x1400 pixels / bug fix: for a warning which occured with PHP 5.4 (Thank you [enderandrew](http://wordpress.org/support/profile/enderandrew) for [reporting the problem](http://wordpress.org/support/topic/plugin-podpress-php-54-warning).) 
    61 * beta 12:new: option which makes the 1PixelOut player to stay always open 
    62 * beta 12:new: option which lets the 1PixelOut player show the remaining track time rather than the elapsed time 
    63 * beta 12:If a request of a blog page is a request via HTTPS then podPress will load icons and default images with the related URL scheme (https:// instead of http://). 
     61* beta 12: new: option which makes the 1PixelOut player to stay always open 
     62* beta 12: new: option which lets the 1PixelOut player show the remaining track time rather than the elapsed time 
     63* beta 12: If a request of a blog page is a request via HTTPS then podPress will load icons and default images with the related URL scheme (https:// instead of http://). 
     64* beta 13: podPress uses an improved method to determine the location of the wp-config.php during some AJAX actions (e.g. related to file size and duration detection) 
     65* beta 13: The detection of the duration and the ID3 tags of a media file will work more reliable for all media files which are stored in a sub folder of the blog 
    6466 
    6567= v8.8.10.13 = 
Note: See TracChangeset for help on using the changeset viewer.