WordPress.org

Plugin Directory


Ignore:
Timestamp:
04/12/09 13:36:46 (5 years ago)
Author:
mark8barnes
Message:
 
Location:
sermon-browser/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/sb-includes/dictionary.php

    r109328 r109985  
    5151        '[file]' => '<?php sb_print_url($media_name) ?>', 
    5252        '[file_with_download]' => '<?php sb_print_url_link($media_name) ?>', 
    53         '[embed_loop]' => '<?php $media = sb_get_stuff($sermon); foreach ((array) $media as $media_type => $media_names) { if (is_array($media_names) && $media_type == "Code") { foreach ((array)$media_names as $media_name) { ?>', 
     53        '[embed_loop]' => '<?php $media = sb_get_stuff($sermon["Sermon"]); foreach ((array) $media as $media_type => $media_names) { if (is_array($media_names) && $media_type == "Code") { foreach ((array)$media_names as $media_name) { ?>', 
    5454        '[/embed_loop]' => '<?php } } } ?>', 
    5555        '[embed]' => '<?php sb_print_code($media_name) ?>', 
  • sermon-browser/trunk/sb-includes/frontend.php

    r109328 r109985  
    360360            sb_increase_download_count ($file_name); 
    361361            $file_name = sb_get_value('wordpress_path').get_option("sb_sermon_upload_dir").$file_name; 
    362             header("Content-Length: ".filesize($file_name)); 
     362            $filesize = filesize($file_name); 
     363            if ($filesize != 0) 
     364                header("Content-Length: ".filesize($file_name)); 
    363365            readfile_segments($file_name); 
    364366        } 
  • sermon-browser/trunk/sb-includes/podcast.php

    r109328 r109985  
    1313    if ($media_type == 'URLs') { 
    1414        if(ini_get('allow_url_fopen')) { 
    15             $headers = array_change_key_case(get_headers($media_name, 1),CASE_LOWER); 
     15            $headers = array_change_key_case(@get_headers($media_name, 1),CASE_LOWER); 
    1616            $filesize = $headers['content-length']; 
    1717            if ($filesize) return "length=\"{$filesize}\""; 
  • sermon-browser/trunk/sermon.php

    r109328 r109985  
    55Description: Add sermons to your Wordpress blog. Coding by <a href="http://codeandmore.com/">Tien Do Xuan</a> and  
    66Author: Mark Barnes 
    7 Version: 0.42 
     7Version: 0.42.1 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    3030 
    3131//Set global constants 
    32 define('SB_CURRENT_VERSION', '0.42'); 
     32define('SB_CURRENT_VERSION', '0.42.1'); 
    3333define('SB_DATABASE_VERSION', '1.5'); 
    3434 
     
    218218                );"; 
    219219              dbDelta($sql); 
    220               $sql = "INSERT INTO " . $table_name . "(name) VALUES ( 'Exposition of the Psalms' );"; 
     220              $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of the Psalms', '' );"; 
    221221              dbDelta($sql); 
    222               $sql = "INSERT INTO " . $table_name . "(name) VALUES ( 'Exposition of Romans' );"; 
     222              $sql = "INSERT INTO " . $table_name . "(name, page_id) VALUES ( 'Exposition of Romans', '' );"; 
    223223              dbDelta($sql); 
    224224           } 
Note: See TracChangeset for help on using the changeset viewer.