Login   Register  
PHP Classes
elePHPant
Icontem

Class: Protect picture

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  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Protect picture
Base name: class_protect_pictur
Description: Protect the path of yours pictures
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 3887 users
All time rank: 633
Week users: 4 users
Week rank: 933
Picture of MARY Matthieu
Author: MARY Matthieu <e-mail contact>
Packages: 19 Browse this author's classes Browse this author's classes
Country: France, Metropolitan France, Metropolitan - PHP jobs in France, Metropolitan
Age: 33
All time rank: 231 in France, Metropolitan France, Metropolitan
Week rank: 115 Down1 in France, Metropolitan France, Metropolitan Equal


  Detailed description  
This class is meant to protect the path of your site pictures in order to prevent that somebody eventually using robot scripts steals the images by accessing the pictures directly.

The class changes the URL of the images used in HTML <input type="IMAGE"> or <IMG> tags using a new URL through which real browsers can retrieve the picture files.

The class requires php 4.0 or later with session support enabled.

To use this class put the protect_picture.php script in the same directory of the script that references thes pictures to be protected. Then, at the beginning of that, just call:

$pprotect = new protect_picture(session_id());

and at the end of your script call

$pprotect->protect();

This class supports all the session_save_handler method : file in most cases with th $_SESSION array or in the others way a cache file

 

  Groups  
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

  Freshmeat project   Rate classes User ratings   Applications   Related links   Files Files  

  Freshmeat project  
Project record: class_protect_picture
Popularity score: 27.69
Vitality score: 1.77

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (64.3%)
Sufficient (60.7%)
Sufficient (65.0%)
Sufficient (71.4%)
-
-
Not sure (51.9%)
1372
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
documentation functions documentation
forum Share yours problems, questions, and use on the official forum for this class

  Files folder image Files  
File Role Description
Plain text file CHANGELOG Doc. LOG changes
Plain text file class_cache.php Class the caches functions
Plain text file class_protect_picture.php Class class file
Plain text file class_protect_picture_example.php Example examples: change the SRC of your pictures to test
Plain text file LICENCE Lic. copy of GPL licence
Plain text file protect_picture.php Appl. script which read files
Plain text file protect_picture_cache.php Appl. this file read the picture in the case you doesn't use files in a sessions_save_handlers way

Download all files: class_protect_pictur.tar.gz class_protect_pictur.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.