Login   Register  
PHP Classes
elePHPant
Icontem

File: securemedia.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Florian Metzger  >  Secure Media  >  securemedia.php  >  Download  
File: securemedia.php
Role: Example script
Content type: text/plain
Description: sample script
Class: Secure Media
Protect Flash files from hotlinking by other sites
Author: By
Last change:
Date: 2004-10-14 06:30
Size: 382 bytes
 

Contents

Class file image Download
<?

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' ] );

?>