5 print "Content-type: text/html\n\n";
8 # get current and last shown picture id
9 $sCurrPic = join( "", common
::File_read
( "currpic.txt" ) );
11 %aRequestMap = common
::HTTP_getRequest
();
12 $sLastPic = $aRequestMap{ "LastPic" };
15 print "<META http-equiv=\"refresh\" CONTENT=\"" . $common::REFRESH_TIME
. "; URL=poll.pl?LastPic=" . $sCurrPic . "\">";
18 #' a new picture was chosen ?
19 if( $sLastPic ne $sCurrPic )
21 # then show the new picture
22 print "<BODY bgcolor=\"red\" onLoad=\"parent.frame1.location.href='./show.pl?" . $sCurrPic . "'\">";
26 # otherwise do nothing
27 print "<BODY bgcolor=\"green\">";