WordPress.org

Plugin Directory


Ignore:
Timestamp:
05/15/11 19:29:36 (3 years ago)
Author:
mark8barnes
Message:

Version 0.45.1: Fixes PHP4 incompatibility, and bug when attaching URLs.

Location:
sermon-browser/trunk
Files:
4 edited

Legend:

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

    r384459 r385190  
    814814                    } 
    815815                } else { 
    816                     $wpdb->query("INSERT INTO {$wpdb->prefix}sb_stuff VALUES (null, 'url', '{$wpdb->escape(url)}', 0, 0, 0)"); 
     816                    $wpdb->query("INSERT INTO {$wpdb->prefix}sb_stuff VALUES (null, 'url', '".$wpdb->escape($url)."', 0, 0, 0)"); 
    817817                    echo "<script>document.location = '".admin_url('admin.php?page=sermon-browser/new_sermon.php&getid3='.$wpdb->insert_id)."';</script>"; 
    818818                    die(); 
     
    14071407                    $prefix = ''; 
    14081408                    $dest = SB_ABSPATH.sb_get_option('upload_dir').$prefix.$filename; 
    1409                     if ($wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}sb_stuff WHERE name = '{$wpdb->escape($filename)}'") == 0 && move_uploaded_file($_FILES['upload']['tmp_name'][$uid], $dest)) { 
     1409                    if ($wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}sb_stuff WHERE name = '".$wpdb->escape($filename)."'") == 0 && move_uploaded_file($_FILES['upload']['tmp_name'][$uid], $dest)) { 
    14101410                        $filename = $prefix.mysql_real_escape_string($filename); 
    1411                         $wpdb->query("INSERT INTO {$wpdb->prefix}sb_stuff VALUES (null, 'file', '{$wpdb->escape($filename)}', $id, 0, 0)"); 
     1411                        $wpdb->query("INSERT INTO {$wpdb->prefix}sb_stuff VALUES (null, 'file', '".$wpdb->escape($filename)."', $id, 0, 0)"); 
    14121412                    } else { 
    14131413                        echo '<div id="message" class="updated fade"><p><b>'.$filename.__(' already exists.', $sermon_domain).'</b></div>'; 
  • sermon-browser/trunk/sb-includes/podcast.php

    r384459 r385190  
    2525    global $wpdb; 
    2626    if (strtolower(substr($media_name, -3)) == 'mp3' && $media_type == 'Files') { 
    27         $duration = $wpdb->get_var("SELECT duration FROM {$wpdb->prefix}sb_stuff WHERE type = 'file' AND name = '{$wpdb->escape($media_name)}'"); 
     27        $duration = $wpdb->get_var("SELECT duration FROM {$wpdb->prefix}sb_stuff WHERE type = 'file' AND name = '".$wpdb->escape($media_name)."'"); 
    2828        if ($duration) 
    2929            return $duration; 
     
    3333            $MediaFileInfo = $getID3->analyze(SB_ABSPATH.sb_get_option('upload_dir').$media_name); 
    3434            $duration = isset($MediaFileInfo['playtime_string']) ? $MediaFileInfo['playtime_string'] : ''; 
    35             $wpdb->query("UPDATE {$wpdb->prefix}sb_stuff SET duration = '{$wpdb->escape($duration)}' WHERE type = 'file' AND name = '{$wpdb->escape($media_name)}'"); 
     35            $wpdb->query("UPDATE {$wpdb->prefix}sb_stuff SET duration = '".$wpdb->escape($duration)."' WHERE type = 'file' AND name = '".$wpdb->escape($media_name)."'"); 
    3636            return $duration; 
    3737        } 
  • sermon-browser/trunk/sb-includes/readme.txt

    r384462 r385190  
    222222== Upgrade Notice == 
    223223 
     224= 0.45.1 = 
     225Fixes PHP4 incompatibility, and bug when attaching URLs. 
     226 
    224227= 0.45 = 
    225228Adds compatibility with WordPress Multisite, and with many more MP3 players. Also fixes several minor bugs. 
     
    229232 
    230233= 0.44 = 
    231 Fixes several bugs (including an important security fix), and adds support for the admin bar in WordPress 3.1 
    232  
    233 = 0.44 = 
    234 Fixes several bugs (including an important security fix), and adds support for the admin bar in WordPress 3.1 
    235  
    236 = 0.43.5 = 
     234Adds WordPress 3.1 compatibility, fixes several bugs (including an important security fix), and adds support for the admin bar in WordPress 3.1 
     235 
     236= 0.43.6 = 
    237237Important security fixes. All users should upgrade to this version. 
    238238 
    239239== Changelog == 
     240 
     241= 0.45.1 (15 May 2011) = 
     242* **Bug fix:** Syntax errors on PHP4, and URLs not attaching correctly ([link](http://www.sermonbrowser.com/forum/sermon-browser-support/upgrade-error-line-816/)). 
    240243 
    241244= 0.45 (13 May 2011) = 
  • sermon-browser/trunk/sermon.php

    r384459 r385190  
    55Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials. 
    66Author: Mark Barnes 
    7 Version: 0.45 
     7Version: 0.45.1 
    88Author URI: http://www.4-14.org.uk/ 
    99 
     
    5454* @package common_functions 
    5555*/ 
    56 define('SB_CURRENT_VERSION', '0.45'); 
     56define('SB_CURRENT_VERSION', '0.45.1'); 
    5757define('SB_DATABASE_VERSION', '1.7'); 
    5858add_action ('plugins_loaded', 'sb_hijack'); 
Note: See TracChangeset for help on using the changeset viewer.