private function GET_CATEGORIES_GOOGLE_SAFE($sitename)
 {
     if (!class_exists("phpGSB")) {
         return null;
     }
     $t = time();
     include_once dirname(__FILE__) . "/class.categorize.externals.inc";
     $ext = new external_categorize(null);
     if ($GLOBALS["VERBOSE"]) {
         $took = distanceOfTimeInWords($t, time(), true);
         echo "GET_CATEGORIES_GOOGLE_SAFE({$sitename}) {$took}<br>\n";
     }
     return trim($ext->UBoxGoogleSafeBrowsingPhpGsbLookup($sitename));
 }
Exemplo n.º 2
0
function tests_mysql()
{
    $f = new external_categorize(null);
    echo $f->UBoxGoogleSafeBrowsingPhpGsbLookup("abu-farhan.com");
}