Recommend this page to a friend! |
Download .zip |
Info | View files (5) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-09-28 (8 years ago) | Not enough user ratings | Total: 437 | All time: 5,949 This week: 1,109 |
Version | License | PHP version | Categories | |||
little_leach 0.7 | GNU General Publi... | 5 | HTTP, PHP 5, Files and Folders |
Description | Author | ||||||||||||||
This class can be used to serve files protected from direct download. |
|
- place .htaccess file to the directory which you want to lock - pathes to the locked directorys must be writed from the server document root directory new leach($pathes) - creates Leach and give to him pathes of the directorys where it must search files. leach->setAccess() - give access to the file. It write filename to the Session vars. So he know whether user goes to it throught direct link or not. leach->getFile($filename,$dirname) - get's the file. Where filename - name of the file and dirname - name of the locked directory from the pathes array. If it null, Leach will search file in all listed directorys. |
Files |
File | Role | Description |
---|---|---|
getfile.php | Example | example |
leach.php | Example | example |
README.TXT | Doc. | Installation readme |
.htaccess | Conf. | file access for Apache |
little_leach.php | Class | class |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Author site Author site |