Exemple #1
0
function detect_bad($itemId, $createdOn, $image)
{
    global $number;
    $id = $image->id;
    $storeName = $image->storeName;
    $thumbnail = $image->thumbnail;
    if (Util::contains($storeName, "?") || Util::contains($storeName, "&") || Util::contains($thumbnail, "?") || Util::contains($thumbnail, "&")) {
        $url = "http://media1.3mik.com/" . $storeName;
        $code = get_http_code($url);
        printf("%d :: suspected : item %s on %s \n\t image %s \n\t thumbnail %s \n\t code = %s \n\n", $number, $itemId, $createdOn, $storeName, $thumbnail, $code);
        sleep(2);
        $number++;
    }
}