Plugin Directory

Changeset 1003087


Ignore:
Timestamp:
10/07/2014 06:47:01 AM (11 years ago)
Author:
davidmerinas
Message:

Trying to fix library path errors

Location:
auto-last-youtube-video/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • auto-last-youtube-video/trunk/autolastyoutubevideo.php

    r986635 r1003087  
    44Plugin URI: http://wordpress.org/plugins/auto-last-youtube-video/
    55Description: This plugin providesboth Widget and Shortcode to show latest videos from any public Youtube channel. Using [auto_last_youtube_video user='channel_name' width='450' height='320'][/auto_last_youtube_video] in a page or post will show last video uploaded to that channel and will change if another video is uploaded. The widget let you show as many videos as you want from any Youtube channel.
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: davidmerinas
    88Author URI: http://www.davidmerinas.com
  • auto-last-youtube-video/trunk/inc/Zend/Feed.php

    r940473 r1003087  
    8585             * @see Zend_Http_Client
    8686             */
    87             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Http/Client.php';
     87            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Http/Client.php';
    8888            self::$_httpClient = new Zend_Http_Client();
    8989        }
     
    174174             * @see Zend_Feed_Exception
    175175             */
    176             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     176            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    177177            throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus());
    178178        }
     
    195195        $doc = new DOMDocument;
    196196        if (trim($string) == '') {
    197             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     197            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    198198            throw new Zend_Feed_Exception('Document/string being imported'
    199199            . ' is an Empty string or comes from an empty HTTP response');
     
    217217             * @see Zend_Feed_Exception
    218218             */
    219             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     219            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    220220            throw new Zend_Feed_Exception($errormsg);
    221221        }
     
    227227             * @see Zend_Feed_Atom
    228228             */
    229             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Atom.php';
     229            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Atom.php';
    230230            // return a newly created Zend_Feed_Atom object
    231231            return new Zend_Feed_Atom(null, $string);
     
    237237             * @see Zend_Feed_Rss
    238238             */
    239             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Rss.php';
     239            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Rss.php';
    240240            // return a newly created Zend_Feed_Rss object
    241241            return new Zend_Feed_Rss(null, $string);
     
    246246         * @see Zend_Feed_Exception
    247247         */
    248         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     248        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    249249        throw new Zend_Feed_Exception('Invalid or unsupported feed format');
    250250    }
     
    267267             * @see Zend_Feed_Exception
    268268             */
    269             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     269            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    270270            throw new Zend_Feed_Exception("File could not be loaded: $php_errormsg");
    271271        }
     
    294294             * @see Zend_Feed_Exception
    295295             */
    296             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     296            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    297297            throw new Zend_Feed_Exception("Failed to access $uri, got response code " . $response->getStatus());
    298298        }
     
    308308             * @see Zend_Feed_Exception
    309309             */
    310             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Exception.php';
     310            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Exception.php';
    311311            throw new Zend_Feed_Exception("Internal error: $php_errormsg");
    312312        }
     
    382382        $obj = 'Zend_Feed_' . ucfirst(strtolower($format));
    383383        if (!class_exists($obj)) {
    384             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Loader.php';
     384            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Loader.php';
    385385            Zend_Loader::loadClass($obj);
    386386        }
     
    389389         * @see Zend_Feed_Builder
    390390         */
    391         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Feed/Builder.php';
     391        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Feed/Builder.php';
    392392        return new $obj(null, null, new Zend_Feed_Builder($data));
    393393    }
     
    404404        $obj = 'Zend_Feed_' . ucfirst(strtolower($format));
    405405        if (!class_exists($obj)) {
    406             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Loader.php';
     406            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Loader.php';
    407407            Zend_Loader::loadClass($obj);
    408408        }
  • auto-last-youtube-video/trunk/inc/Zend/Loader.php

    r940473 r1003087  
    5757
    5858        if ((null !== $dirs) && !is_string($dirs) && !is_array($dirs)) {
    59             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Exception.php';
     59            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Exception.php';
    6060            throw new Zend_Exception('Directory argument must be a string or an array');
    6161        }
     
    9696
    9797        if (!class_exists($class, false) && !interface_exists($class, false)) {
    98             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Exception.php';
     98            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Exception.php';
    9999            throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
    100100        }
     
    265265    {
    266266        trigger_error(__CLASS__ . '::' . __METHOD__ . ' is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead', E_USER_NOTICE);
    267         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Loader/Autoloader.php';
     267        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Loader/Autoloader.php';
    268268        $autoloader = Zend_Loader_Autoloader::getInstance();
    269269        $autoloader->setFallbackAutoloader(true);
     
    273273            $methods = get_class_methods($class);
    274274            if (!in_array('autoload', (array) $methods)) {
    275                 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Exception.php';
     275                require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Exception.php';
    276276                throw new Zend_Exception("The class \"$class\" does not have an autoload() method");
    277277            }
     
    300300         */
    301301        if (preg_match('/[^a-z0-9\\/\\\\_.:-]/i', $filename)) {
    302             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Exception.php';
     302            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Exception.php';
    303303            throw new Zend_Exception('Security check: Illegal character in filename');
    304304        }
  • auto-last-youtube-video/trunk/inc/Zend/Uri.php

    r940473 r1003087  
    9797
    9898        if (strlen($scheme) === 0) {
    99             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Uri/Exception.php';
     99            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Uri/Exception.php';
    100100            throw new Zend_Uri_Exception('An empty string was supplied for the scheme');
    101101        }
     
    103103        // Security check: $scheme is used to load a class file, so only alphanumerics are allowed.
    104104        if (ctype_alnum($scheme) === false) {
    105             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Uri/Exception.php';
     105            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Uri/Exception.php';
    106106            throw new Zend_Uri_Exception('Illegal scheme supplied, only alphanumeric characters are permitted');
    107107        }
     
    122122                    // TODO
    123123                default:
    124                     require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Uri/Exception.php';
     124                    require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Uri/Exception.php';
    125125                    throw new Zend_Uri_Exception("Scheme \"$scheme\" is not supported");
    126126                    break;
     
    129129
    130130        if (!class_exists($className)) {
    131             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Loader.php';
     131            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Loader.php';
    132132            try {
    133133                Zend_Loader::loadClass($className);
    134134            } catch (Exception $e) {
    135                 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Uri/Exception.php';
     135                require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Uri/Exception.php';
    136136                throw new Zend_Uri_Exception("\"$className\" not found");
    137137            }
     
    141141
    142142        if (! $schemeHandler instanceof Zend_Uri) {
    143             require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Uri/Exception.php';
     143            require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Uri/Exception.php';
    144144            throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri");
    145145        }
  • auto-last-youtube-video/trunk/inc/Zend/Validate.php

    r940473 r1003087  
    2323 * @see Zend_Validate_Interface
    2424 */
    25 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Interface.php';
     25require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Interface.php';
    2626
    2727/**
     
    199199        try {
    200200            if (!class_exists($className, false)) {
    201                 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Loader.php';
     201                require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Loader.php';
    202202                foreach($namespaces as $namespace) {
    203203                    $class = $namespace . '_' . $className;
     
    241241        }
    242242
    243         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Exception.php';
     243        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Exception.php';
    244244        throw new Zend_Validate_Exception("Validate class not found from basename '$classBaseName'");
    245245    }
     
    252252    public static function getMessageLength()
    253253    {
    254         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Abstract.php';
     254        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Abstract.php';
    255255        return Zend_Validate_Abstract::getMessageLength();
    256256    }
     
    263263    public static function setMessageLength($length = -1)
    264264    {
    265         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Abstract.php';
     265        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Abstract.php';
    266266        Zend_Validate_Abstract::setMessageLength($length);
    267267    }
     
    274274    public static function getDefaultTranslator($translator = null)
    275275    {
    276         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Abstract.php';
     276        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Abstract.php';
    277277        return Zend_Validate_Abstract::getDefaultTranslator();
    278278    }
     
    285285    public static function setDefaultTranslator($translator = null)
    286286    {
    287         require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc///Zend/Validate/Abstract.php';
     287        require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Abstract.php';
    288288        Zend_Validate_Abstract::setDefaultTranslator($translator);
    289289    }
  • auto-last-youtube-video/trunk/readme.txt

    r986635 r1003087  
    3838
    3939== Changelog ==
     40= 1.0.2 =
     41*Trying to fix some library path errors
     42
    4043= 1.0.1 =
    4144*Now you can select your own anchor text for link to channel
Note: See TracChangeset for help on using the changeset viewer.