Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Protected function url_exists($item=''){
  2.                        
  3.                         if ($this->CheckList($item,$this->nofile_keys))return false;
  4.                         //if (preg_match( '#(?|href|src)="(.+)"#iU',$item,$url )>0){ //original
  5.                         if (preg_match( '(href|src)\\="([^"]+)',$item,$url )>0){
  6.                                 $path = $this->clean($url[1]);
  7.                                 $path = $this->find_path($path);
  8.                                 return $path !== FALSE;
  9.                         }
  10.                         return false;                                  
  11.                 }