<?
require_once( 'CSecureMedia.php' );
// the directory of your secured files
$options[ 'secure_dir' ] = '/var/www/securemedia/';
// the password for your protection setup
$options[ 'password' ] = 'yourpassword';
// how many days old may a key be ?
$options[ 'max_age' ] = 1;
$sm = new SecureMedia( $options );
$sm->get( $_GET[ 'key' ], $_GET[ 'file' ] );
?>
|