WordPress.org

Plugin Directory

Changeset 594362


Ignore:
Timestamp:
09/04/12 10:05:57 (20 months ago)
Author:
ntm
Message:

8.8.10.14 beta 25

Location:
podpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • podpress/trunk/podpress.php

    r594343 r594362  
    11<?php 
    2 define('PODPRESS_VERSION', '8.8.10.14 beta 24'); 
     2define('PODPRESS_VERSION', '8.8.10.14 beta 25'); 
    33/* 
    44Info for WordPress: 
    55============================================================================== 
    66Plugin Name: podPress 
    7 Version: 8.8.10.14 beta 24 
     7Version: 8.8.10.14 beta 25 
    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. 
     
    742742    } 
    743743    $playerOptions = ''; 
    744     if($podPress->settings['enablePodangoIntegration'] || (TRUE == isset($podPress->settings['mp3Player']) AND 'podango' == $podPress->settings['mp3Player']) ) { 
     744    if( (TRUE === isset($podPress->settings['enablePodangoIntegration']) AND TRUE == $podPress->settings['enablePodangoIntegration']) || (TRUE == isset($podPress->settings['mp3Player']) AND 'podango' == $podPress->settings['mp3Player']) ) { 
    745745        $mp3playerswffile = 'var podPressPlayerFile = "podango_player.swf";'."\n"; 
    746746        // create the parameter string for the mp3 player 
     
    755755        $mp3playerswffile = ''; 
    756756        $mp3playerOptionsStr = ''; 
     757        $podpupplayerOptions = ''; 
    757758        // create the parameter string for the mp3 player 
    758759        foreach($podPress->settings['player'] as $key => $val) { 
     
    868869function podPress_admin_head() { 
    869870    GLOBAL $podPress, $action; 
    870     if(!$podPress->settings['compatibilityChecks']['themeTested']) { 
     871    if(isset($podPress->settings['compatibilityChecks']['themeTested']) AND !$podPress->settings['compatibilityChecks']['themeTested']) { 
    871872        $podPress->settings['compatibilityChecks']['themeTested'] = true; 
    872873        podPress_update_option('podPress_config', $podPress->settings); 
    873874    } 
    874     if(!$podPress->settings['compatibilityChecks']['wp_head']) { 
     875    if(isset($podPress->settings['compatibilityChecks']['wp_head']) AND !$podPress->settings['compatibilityChecks']['wp_head']) { 
    875876        $podPress->settings['compatibilityChecks']['wp_head'] = true; 
    876877        podPress_update_option('podPress_config', $podPress->settings); 
     
    907908function podPress_admin_footer() { 
    908909    GLOBAL $podPress; 
    909     if(!$podPress->settings['compatibilityChecks']['themeTested']) { 
     910    if(isset($podPress->settings['compatibilityChecks']['themeTested']) AND !$podPress->settings['compatibilityChecks']['themeTested']) { 
    910911        $podPress->settings['compatibilityChecks']['themeTested'] = true; 
    911912        podPress_update_option('podPress_config', $podPress->settings); 
    912913    } 
    913     if(!$podPress->settings['compatibilityChecks']['wp_footer']) { 
     914    if(isset($podPress->settings['compatibilityChecks']['wp_footer']) AND !$podPress->settings['compatibilityChecks']['wp_footer']) { 
    914915        $podPress->settings['compatibilityChecks']['wp_footer'] = true; 
    915916        podPress_update_option('podPress_config', $podPress->settings); 
  • podpress/trunk/podpress_admin_functions.php

    r578761 r594362  
    17951795    if ( !function_exists('podPress_var_dump') ) { 
    17961796    function podPress_var_dump($var) { 
    1797         if ( defined( 'PODPRESS_DEBUG_LOG' ) AND TRUE === constant( 'PODPRESS_DEBUG_LOG' ) ) {  
     1797        if ( defined( 'PODPRESS_DEBUG_LOG' ) AND TRUE === constant( 'PODPRESS_DEBUG_LOG' ) ) { 
     1798            $returnmsg = ''; 
    17981799            // write the out put to the log file 
    17991800            $filename = PODPRESS_DIR.'/podpress_log.dat'; 
  • podpress/trunk/podpress_premium_functions.php

    r575290 r594362  
    350350        } 
    351351    } 
    352     if(!function_exists('podPress_var_dump')) { 
    353     function podPress_var_dump($var) { 
    354         if ( defined( 'PODPRESS_DEBUG_LOG' ) AND TRUE === constant( 'PODPRESS_DEBUG_LOG' ) ) {  
    355             // write the out put to the log file 
    356             $filename = PODPRESS_DIR.'/podpress_log.dat'; 
    357             if ( is_file($filename) ) { 
    358                 $result = @chmod($filename, 0777); 
    359                 if (FALSE === $result) {         
    360                     return sprintf(__('This PHP script has not the permission to use chmod (or chown) for the %1$s file.', 'podpress'), $filename); 
    361                 } 
    362                 if ( (filesize($filename)/1024) > 100 ) { // delete the Logfile if it is bigger than 100 kByte 
    363                     $result = @unlink($filename);  
     352    if ( !function_exists('podPress_var_dump') ) { 
     353        function podPress_var_dump($var) { 
     354            if ( defined( 'PODPRESS_DEBUG_LOG' ) AND TRUE === constant( 'PODPRESS_DEBUG_LOG' ) ) {  
     355                $returnmsg = ''; 
     356                // write the out put to the log file 
     357                $filename = PODPRESS_DIR.'/podpress_log.dat'; 
     358                if ( is_file($filename) ) { 
     359                    $result = @chmod($filename, 0777); 
     360                    if (FALSE === $result) {         
     361                        return sprintf(__('This PHP script has not the permission to use chmod (or chown) for the %1$s file.', 'podpress'), $filename); 
     362                    } 
     363                    if ( (filesize($filename)/1024) > 100 ) { // delete the Logfile if it is bigger than 100 kByte 
     364                        $result = @unlink($filename);  
     365                        if (FALSE === $result) { 
     366                            $returnmsg = sprintf(' '.__('This PHP script has not the permission to delete the %1$s file (unlink).', 'podpress'), $filename); 
     367                        } 
     368                    }  
     369                } 
     370                $handle = @fopen($filename, "a"); 
     371                if ( FALSE !== $handle ) {  
     372                    //@fputs($handle, '['.date('j.m.Y - H:i:s', time()).'] '.var_export($var, TRUE)."\n"); 
     373                    @fputs($handle, '['.date('j.m.Y - H:i:s').'] '.var_export($var, TRUE)."\n"); 
     374                    $status = @fclose($handle); 
     375                    $returnmsg .= ''; 
     376                } else { 
     377                    $returnmsg .= sprintf(__('This PHP script has not the permission to use create or open the %1$s file for writing (fopen).', 'podpress'), $filename); 
     378                } 
     379                if ( is_file($filename) ) {  
     380                    $result = @chmod($filename, 0644);  
    364381                    if (FALSE === $result) { 
    365                         $returnmsg = sprintf(' '.__('This PHP script has not the permission to delete the %1$s file (unlink).', 'podpress'), $filename); 
     382                        $returnmsg = sprintf(' '.__('This PHP script has not the permission to use chmod (or chown) for the %1$s file.', 'podpress'), $filename); 
    366383                    } 
    367                 }  
    368             } 
    369             $handle = @fopen($filename, "a"); 
    370             if ( FALSE !== $handle ) {  
    371                 //@fputs($handle, '['.date('j.m.Y - H:i:s', time()).'] '.var_export($var, TRUE)."\n"); 
    372                 @fputs($handle, '['.date('j.m.Y - H:i:s').'] '.var_export($var, TRUE)."\n"); 
    373                 $status = @fclose($handle); 
    374                 $returnmsg .= ''; 
    375             } else { 
    376                 $returnmsg .= sprintf(__('This PHP script has not the permission to use create or open the %1$s file for writing (fopen).', 'podpress'), $filename); 
    377             } 
    378             if ( is_file($filename) ) {  
    379                 $result = @chmod($filename, 0644);  
    380                 if (FALSE === $result) { 
    381                     $returnmsg = sprintf(' '.__('This PHP script has not the permission to use chmod (or chown) for the %1$s file.', 'podpress'), $filename); 
    382                 } 
    383             } 
    384             return $returnmsg; 
    385         } 
    386     } 
    387     } 
    388  
     384                } 
     385                return $returnmsg; 
     386            } 
     387        } 
     388    } 
    389389?> 
Note: See TracChangeset for help on using the changeset viewer.