PHP Classes

File: protect_picture_cache.php

Recommend this page to a friend!
  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: 20 years ago
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);
?>