PHP Classes

Site pages guard: Monitor and restore damaged application files

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 545 All time: 5,546 This week: 560Up
Version License PHP version Categories
site-pages-guard 1.001BSD License5.0PHP 5, Systems administration, Security


This class can be used to monitor and restore damaged application files.

It can scan the application directory and take a backup of its files into a ZIP archive.

Later the class can check if all files are still OK. If any files were damaged eventually due to a security, the class may warn the administrator by e-mail and restore the damaged or deleted files form a previous backup.

If the installation is updated, the class may update the existing backup archive.

Innovation Award
PHP Programming Innovation award nominee
December 2009
Number 2

Prize: One subscription to the PDF edition of the PHP Architect magazine
A Web site is always susceptible of being invaded by crackers, no matter how hard you try to protect it.

In some cases, Web pages may be defaced. The original site files may be damaged or even removed.

This class provides a solution to quickly restore the original files to recover from an eventual Web site defacement.

It can generate backups of the relevant files. Then it can restore the backups when it detects that any of the files was changed or eliminated.

Manuel Lemos
Picture of Alexander Selifonov
  Performance   Level  
Name: Alexander Selifonov is available for providing paid consulting. Contact Alexander Selifonov .
Classes: 20 packages by
Country: Russian Federation Russian Federation
Age: 61
All time rank: 502 in Russian Federation Russian Federation
Week rank: 28 Up1 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 16x

Winner: 2x

  • spguard-shot.png
  Files folder image Files  
File Role Description
Plain text file sitepages_guard.php Class Main class module
Accessible without login HTML file sitepages_guard.en.htm Doc. Documentation (english)
Accessible without login HTML file Doc. Documentation (russian)
Accessible without login Plain text file sp_guard.php Example Working and ready-to-use sample

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,546
This week:560Up
 User Ratings  
 All time