PluginProbe
FV Player 8 / trunk
FV Player 8 vtrunk
trunk 8.0.18 8.0.19 8.0.20 8.0.21 8.0.25 8.0.27 8.1 8.1.3
fv-player / includes / class.bunnycdn.rewrite.php

class.bunnycdn.rewrite.php in FV Player 8 trunk, at includes/class.bunnycdn.rewrite.php

14 lines 443 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if( !class_exists('FV_Player_BunnyCDN_Rewrite') ) {
4
5 class FV_Player_BunnyCDN_Rewrite extends BunnyCDNFilter {
6 public function rewrite_url( $url ) {
7 $directoriesRegex = implode('|', $this->directories);
8 $regex = '~(?:'. quotemeta($this->baseUrl) .')?/((?:'.$directoriesRegex.').*)~'; // custom regex to match url
9 return preg_replace_callback($regex, array(&$this, "rewriteUrl"), $url);
10 }
11 }
12
13 }
14