<?
require "expire.class.php";
header('Content-Type: image/jpeg'); //tell the browser that it's jpg
$expire = new Expire(10, 2, "examplecode", 0); //set the info.
if(!$expire->checkCode($_GET['expire'])) exit(); //if the code is invalid
echo file_get_contents("wm.jpg"); //print file
?>
|