Blame view

mobile/source/inc/class.tests.php 423 Bytes
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  
  class tests{
    
    static function checkUrl($url,$get = array(),$post = array(),$cookie = array()){
      include_once(MAIN_SOURCE_PATH.'/ext/Snoopy-1.2.4/Snoopy.class.php');
      $snoopy = new Snoopy();
      $snoopy->fetch( MAIN_URL.$url);
  
      if ( preg_match('#Parse error#i',$snoopy -> results) ){
        $snoopy -> status = '<strong>500</strong>';
      }
      
      return $snoopy -> status.' : '.MAIN_URL.$url;
    }
  }
  ?>