|
Scans and create missing index files in your xoops installation
Note.: Php 5 Required
New in 2.03 - Check web files against checkfile with xoops file names and filter with allowed extensions in config. Red colored showing files not equal to the settings allow manuel delete using ajax+jquery to prevent page reload. - Create backup containing only empty folders, index.html files and download as zip.
Changes in 2.03 - Added possibility to check files in webfolders against xoops check file and filter from Config. Filter separates extensions of files presumed to be ok. - Files found in check files marked red are presumed not to be part of Xoops, and can be deleted by the 'delete icon' using ajax + jquery avoid reloading the page. - Added the PclZip.Class to create zip file on the fly for users not having php > 5.20. - Scan to create back up from the folders residing in the admin/folder2backup. The scan creates a copy of the empty folders, existing index.html, index.php, index.htm files, delete all other files, creates new indexfiles, and create link to download as zip. Handy when working with developing and want to create a zip with nothing but index files. I tested with htdoc from Xoops 2.4.4 in a Wamp, creation time is aprox. 2 minutes. Not tested in real server yet, but time must be considerble. - New language defines are
(modinfo.php)//Added in 2.03 define ("_MI_INDEXSCAN_ILLEGALFILETYPES", "Skip file types."); define("_MI_INDEXSCAN_ILLEGALFILETYPES_DESC","Add files you wish to skip while 'checking files'. These files will be considered 'safe' if they also are listed in the file 'admin/filecheck.txt'."); define("_MI_INDEXSCAN_FROMBACKUP", "Create file zip"); define ("_MI_INDEXSCAN_FROMBACKUP_DESC", "Creates a zip archieve with same folder structure from the folder you ftp to folder2backup. The zip contains nothing but the folders and, index.html files where missing from your uploaded folder.
The folder name is the name of the folder in your folder2backup folder, for instance 'testing'. You can delete 'testing' this folder is only for example.");
(admin.php)
// Added in 2.03 define ("_AM_INDEXSCAN_CHECKILLEGALFILES","Check files"); define ("_AM_INDEXSCAN_SCANNING4ILLEGALFILES", "Scanning web files"); define("_AM_INDEXSCAN_MAYBEOK", "Looks to be ok"); define ("_AM_INDEXSCAN_NOTINXOOPSINSTALL", "Not Xoops file"); define ("_AM_INDEXSCAN_FINISDILLEGAL", " files found that are not Xoops files. Total files scanned: "); define ("_AM_INDEXSCAN_ILLEGAL_DESC", "The file found Not to be Xoops files, are checked against checkfile.txt in admin folder, and agains files in config defined as allowed file types. These files could be unwanted tmp, thumbs.db, or info files. If you you dont need these files add them to automaticly delete in config and they will be deleted when you run this scan next time.");
Download from culex.dk
or from sourceforge
|