Login   Register  
PHP Classes
elePHPant
Icontem

File: protect_picture_cache.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of MARY Matthieu  >  Protect picture  >  protect_picture_cache.php  >  Download  
File: protect_picture_cache.php
Role: Application script
Content type: text/plain
Description: this file read the picture in the case you doesn't use files in a sessions_save_handlers way
Class: Protect picture
Protect the path of yours pictures
Author: By
Last change:
Date: 2004-02-13 01:06
Size: 251 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once 
'class_cache.php';
$cache = new cache(30,'./cache/class_protect_picture');
if (
$cache->inCache(session_id()))
{
    
$val explode('||',$cache->readCache());
    @
readfile($val[$_GET['id']]);
}
unset(
$cache);
?>