예제 #1
0
function garfield_check($date) {
  $gfx=null;

  $gfx=sprintf("http://images.ucomics.com/comics/ga/%s/ga%s.gif", date_ftime($date, "%Y"), date_ftime($date, "%y%m%d"));
  if(!@fopen($gfx, "r"))
    $gfx=null;

  return $gfx;
}
예제 #2
0
function phd_check($date) {
  $gfx=null;

  $gfx=sprintf("http://www.phdcomics.com/comics/archive/phd%ss.gif", date_ftime($date, "%m%d%y"), $num);
  if(!@fopen($gfx, "r"))
    $gfx=null;

  return $gfx;
}
예제 #3
0
function gpf_check($date) {
  $gfx=null;

  @$f=fopen("http://www.gpf-comics.com/d/".date_ftime($date, "%Y%m%d").".html", "r");
  if($f) {
    while($r=fgets($f)) {
      if(eregi("<IMG ALT=\"\" BORDER=0 SRC=\"/comics/([a-z0-9\.]*)\".*><BR>", $r, $m)) {
        $gfx="http://www.gpf-comics.com/comics/$m[1]";
      }
    }
    fclose($f);
  }

  return $gfx;
}
예제 #4
0
function calvinandhobbes_check($date) {
  $gfx=null;

  $f=fopen("http://www.gocomics.com/calvinandhobbes/".date_ftime($date, "%Y/%m/%d/"), "r");
  while($r=fgets($f)) {
    if(eregi("src=\"http://imgsrv.gocomics.com/dim/\?fh=([0-9a-z\.]*)\"", $r, $m)) {
      if($m[1]) {
        $gfx="http://imgsrv.gocomics.com/dim/?fh=$m[1]";
      }
    }
  }
  fclose($f);

  return $gfx;
}
예제 #5
0
function uf_check($date) {
  $gfx=null;

  $f=fopen(sprintf("http://ars.userfriendly.org/cartoons/?id=%s&mode=classic", date_ftime($date, "%Y%m%d")), "r");
  while($r=fgets($f)) {
    if(eregi("<img border=\"0\" src=\"http://www\.userfriendly\.org/cartoons/archives/([0-9]{2}[a-z]{3}/uf[0-9]*\.gif)\" ", $r, $m)) {
      $gfx=$m[1];
    }
  }

  if($gfx)
    $gfx=sprintf("http://www.userfriendly.org/cartoons/archives/%s", $gfx);

  return $gfx;
}
예제 #6
0
function sluggy_check($date) {
  $gfx=null;

  $f=fopen("http://www.sluggy.com/daily.php?date=".date_ftime($date, "%y%m%d"), "r");
  while($r=fgets($f)) {
    if(eregi("<img src=\"http://www.sluggy.com/images/comics/([0-9a-z\.]*)\" alt=\"([0-9a-z\.]*)\">", $r, $m)) {
      if($m[1]==$m[2]) {
        if(substr($m[1], 0, 6)==date_ftime($date, "%y%m%d"))
          $gfx="http://www.sluggy.com/images/comics/$m[1]";
      }
    }
  }
  fclose($f);

  return $gfx;
}