%
'#FILE: random_image1.aspx - Version 1.0
'#
'# This works on Windows Servers with .NET installed. It has not
'#been tested under any kind of Unix based platform running ASP .NET.
'#
'#INSTALLATION INSTRUCTIONS:
'# 1) Save this file to your server as "random_image1.aspx".
'# 2) Make sure the script has execute permissions.
'# 3) Make sure your IMAGE_DIRECTORY has read permissions, as well
'# as the files within that directory.
'# 4) Change:
'# Const IMAGE_DIRECTORY = ".."
'# as described in the code below.
'# 6) Make your IMG tag look similar to the following:
'#
'#
'#ABOUT THIS SCRIPT:
'# This is a very simple script. All it does is grab a
'#random image from a directory and print it out, hiding the actual
'#filename of the image displayed. Currently, this
'#script just works with gif, jpg/jpeg, and png images.
'#
'#REQUIREMENTS:
'# 1) Windows 2000 Server or later
'# 2) IIS 5.0 or later
'# 3) .NET Framework >= 1.1
'#
'#HISTORY:
'# 07/30/05 1.0 Original release
'#
'#AUTHOR:
'# http://www.davelozinski.com/scripts
'#
%>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import NameSpace="System.Drawing" %>
<%@ Import NameSpace="System.Drawing.Imaging" %>