Changeset 1003087
- Timestamp:
- 10/07/2014 06:47:01 AM (11 years ago)
- Location:
- auto-last-youtube-video/trunk
- Files:
-
- 6 edited
-
autolastyoutubevideo.php (modified) (1 diff)
-
inc/Zend/Feed.php (modified) (13 diffs)
-
inc/Zend/Loader.php (modified) (5 diffs)
-
inc/Zend/Uri.php (modified) (5 diffs)
-
inc/Zend/Validate.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
auto-last-youtube-video/trunk/autolastyoutubevideo.php
r986635 r1003087 4 4 Plugin URI: http://wordpress.org/plugins/auto-last-youtube-video/ 5 5 Description: 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. 16 Version: 1.0.2 7 7 Author: davidmerinas 8 8 Author URI: http://www.davidmerinas.com -
auto-last-youtube-video/trunk/inc/Zend/Feed.php
r940473 r1003087 85 85 * @see Zend_Http_Client 86 86 */ 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'; 88 88 self::$_httpClient = new Zend_Http_Client(); 89 89 } … … 174 174 * @see Zend_Feed_Exception 175 175 */ 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'; 177 177 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus()); 178 178 } … … 195 195 $doc = new DOMDocument; 196 196 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'; 198 198 throw new Zend_Feed_Exception('Document/string being imported' 199 199 . ' is an Empty string or comes from an empty HTTP response'); … … 217 217 * @see Zend_Feed_Exception 218 218 */ 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'; 220 220 throw new Zend_Feed_Exception($errormsg); 221 221 } … … 227 227 * @see Zend_Feed_Atom 228 228 */ 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'; 230 230 // return a newly created Zend_Feed_Atom object 231 231 return new Zend_Feed_Atom(null, $string); … … 237 237 * @see Zend_Feed_Rss 238 238 */ 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'; 240 240 // return a newly created Zend_Feed_Rss object 241 241 return new Zend_Feed_Rss(null, $string); … … 246 246 * @see Zend_Feed_Exception 247 247 */ 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'; 249 249 throw new Zend_Feed_Exception('Invalid or unsupported feed format'); 250 250 } … … 267 267 * @see Zend_Feed_Exception 268 268 */ 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'; 270 270 throw new Zend_Feed_Exception("File could not be loaded: $php_errormsg"); 271 271 } … … 294 294 * @see Zend_Feed_Exception 295 295 */ 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'; 297 297 throw new Zend_Feed_Exception("Failed to access $uri, got response code " . $response->getStatus()); 298 298 } … … 308 308 * @see Zend_Feed_Exception 309 309 */ 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'; 311 311 throw new Zend_Feed_Exception("Internal error: $php_errormsg"); 312 312 } … … 382 382 $obj = 'Zend_Feed_' . ucfirst(strtolower($format)); 383 383 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'; 385 385 Zend_Loader::loadClass($obj); 386 386 } … … 389 389 * @see Zend_Feed_Builder 390 390 */ 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'; 392 392 return new $obj(null, null, new Zend_Feed_Builder($data)); 393 393 } … … 404 404 $obj = 'Zend_Feed_' . ucfirst(strtolower($format)); 405 405 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'; 407 407 Zend_Loader::loadClass($obj); 408 408 } -
auto-last-youtube-video/trunk/inc/Zend/Loader.php
r940473 r1003087 57 57 58 58 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'; 60 60 throw new Zend_Exception('Directory argument must be a string or an array'); 61 61 } … … 96 96 97 97 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'; 99 99 throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file"); 100 100 } … … 265 265 { 266 266 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'; 268 268 $autoloader = Zend_Loader_Autoloader::getInstance(); 269 269 $autoloader->setFallbackAutoloader(true); … … 273 273 $methods = get_class_methods($class); 274 274 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'; 276 276 throw new Zend_Exception("The class \"$class\" does not have an autoload() method"); 277 277 } … … 300 300 */ 301 301 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'; 303 303 throw new Zend_Exception('Security check: Illegal character in filename'); 304 304 } -
auto-last-youtube-video/trunk/inc/Zend/Uri.php
r940473 r1003087 97 97 98 98 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'; 100 100 throw new Zend_Uri_Exception('An empty string was supplied for the scheme'); 101 101 } … … 103 103 // Security check: $scheme is used to load a class file, so only alphanumerics are allowed. 104 104 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'; 106 106 throw new Zend_Uri_Exception('Illegal scheme supplied, only alphanumeric characters are permitted'); 107 107 } … … 122 122 // TODO 123 123 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'; 125 125 throw new Zend_Uri_Exception("Scheme \"$scheme\" is not supported"); 126 126 break; … … 129 129 130 130 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'; 132 132 try { 133 133 Zend_Loader::loadClass($className); 134 134 } 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'; 136 136 throw new Zend_Uri_Exception("\"$className\" not found"); 137 137 } … … 141 141 142 142 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'; 144 144 throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri"); 145 145 } -
auto-last-youtube-video/trunk/inc/Zend/Validate.php
r940473 r1003087 23 23 * @see Zend_Validate_Interface 24 24 */ 25 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/ //Zend/Validate/Interface.php';25 require_once $_SESSION['AUTO_LAST_YOUTUBE_VIDEO_PATH'].'inc/Zend/Validate/Interface.php'; 26 26 27 27 /** … … 199 199 try { 200 200 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'; 202 202 foreach($namespaces as $namespace) { 203 203 $class = $namespace . '_' . $className; … … 241 241 } 242 242 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'; 244 244 throw new Zend_Validate_Exception("Validate class not found from basename '$classBaseName'"); 245 245 } … … 252 252 public static function getMessageLength() 253 253 { 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'; 255 255 return Zend_Validate_Abstract::getMessageLength(); 256 256 } … … 263 263 public static function setMessageLength($length = -1) 264 264 { 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'; 266 266 Zend_Validate_Abstract::setMessageLength($length); 267 267 } … … 274 274 public static function getDefaultTranslator($translator = null) 275 275 { 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'; 277 277 return Zend_Validate_Abstract::getDefaultTranslator(); 278 278 } … … 285 285 public static function setDefaultTranslator($translator = null) 286 286 { 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'; 288 288 Zend_Validate_Abstract::setDefaultTranslator($translator); 289 289 } -
auto-last-youtube-video/trunk/readme.txt
r986635 r1003087 38 38 39 39 == Changelog == 40 = 1.0.2 = 41 *Trying to fix some library path errors 42 40 43 = 1.0.1 = 41 44 *Now you can select your own anchor text for link to channel
Note: See TracChangeset
for help on using the changeset viewer.