Plugin Directory

Changeset 1111236


Ignore:
Timestamp:
03/12/2015 04:40:31 PM (11 years ago)
Author:
Potsky
Message:

v0.4.15

Location:
s2member-secure-file-browser
Files:
153 added
4 edited

Legend:

Unmodified
Added
Removed
  • s2member-secure-file-browser/trunk/class/psk_s2msfb.class.php

    r915328 r1111236  
    713713                // Search group by path
    714714                if ( self::$searchdisplay == '2' ) {
    715 
    716715                    $group   = array();
    717716                    $words   = explode( ' ' , trim( $token ) );
     
    774773                    // Search group by extension
    775774                } else if ( ( self::$searchdisplay == '3' ) || ( self::$searchdisplay == '4' ) ) {
    776 
    777775                    $group   = array();
    778776                    $words   = explode( ' ' , trim( $token ) );
     
    863861                            $filepathrelbase = $row[ 'filepath' ];
    864862                            $filepath        = PSK_S2MSFB_S2MEMBER_FILES_FOLDER . $filepathrelbase;
    865                             if ( ! file_exists( $filepath ) )
     863                            if ( ! file_exists( $filepath ) ) {
    866864                                continue;
     865                            }
     866
    867867                            $file                   = $row[ 'filename' ];
    868868                            $dirbase                = PSK_Tools::sanitize_directory_path( $dirbase , true , false );
     
    988988     * @return string
    989989     */
    990     private static function get_display_name( $isdir , $file , $override ) {
     990    private static function get_display_name( $isdir , $file , $override = '' ) {
    991991        // Prepare dir/file name if cut
    992992        if ( $isdir )
     
    16951695
    16961696        // Find deleted and modified files
    1697         $mysqli = new mysqli( DB_HOST , DB_USER , DB_PASSWORD , DB_NAME );
     1697        @list( $url , $port ) = @explode( ':' , DB_HOST );
     1698        $port = (int)$port;
     1699        if ( $port <= 0 ) {
     1700            $mysqli = new mysqli( DB_HOST , DB_USER , DB_PASSWORD , DB_NAME );
     1701        }
     1702        else {
     1703            $mysqli = new mysqli( $url , DB_USER , DB_PASSWORD , DB_NAME , $port );
     1704        }
    16981705        if ( mysqli_connect_errno() )
    16991706            return "Connect failed: " . mysqli_connect_error();
  • s2member-secure-file-browser/trunk/inc/define.php

    r1099439 r1111236  
    11<?php
    2 define( 'PSK_S2MSFB_VERSION' , '0.4.14' );
     2define( 'PSK_S2MSFB_VERSION' , '0.4.15' );
    33define( 'PSK_S2MSFB_MIN_PHP_VERSION' , '5.2' );
    44define( 'PSK_S2MSFB_MIN_WP_VERSION' , '3.3' );
  • s2member-secure-file-browser/trunk/readme.txt

    r1099439 r1111236  
    55Requires at least: 3.3
    66Tested up to: 4.1.1
    7 Stable tag: 0.4.14
     7Stable tag: 0.4.15
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    191191== Changelog ==
    192192
     193= 0.4.15 =
     194* Enhancement : Support for non standard mysql port
     195
    193196= 0.4.14 =
    194197* Enhancement : Add Serbo-Croatian language (by Borisa Djuraskovic at http://www.webhostinghub.com)
  • s2member-secure-file-browser/trunk/s2member-secure-file-browser.php

    r1099439 r1111236  
    66                You can display the file browser via the shortcode [s2member_secure_files_browser /].
    77                You can manage files and get statistics in the Dashboard > s2Member > Secure File Browser
    8 Version: 0.4.14
    9 Date: 2015-02-25
     8Version: 0.4.15
     9Date: 2015-03-12
    1010Author: Potsky
    1111Author URI: http://www.potsky.com/about/
Note: See TracChangeset for help on using the changeset viewer.