Getting Started with ApPHP WebsiteCleaner (v1.0.0 or above)



1. Common Notices

• Be careful when deleting unneeded files - this may harm your computer.


2. Getting Started

2.1. Cache Files Settings.


Open inclide/settings.inc.php to configure the script. Below you can see the configuration settings: These settings gives you possibility to define cache files extension and whether to allow deleting these files or not.
// cache files settings
define('_CACHE_FILE_EXTENSION', '.cch');
define('_CACHE_ALLOW_DELETING', true); 


2.2. Thumb Files Settings.


These settings gives you possibility to define whether to allow deleting of thumbnail files or not.
// thumb files settings
define('_THUMB_ALLOW_DELETING', true); 


2.3. ErrorLog Files Settings.


These settings allows you to define errorlog files and whether to allow deleting of these files or not.
// errorlog files settings
define('_ERRORLOG_FILE_NAME', 'error_log');
define('_ERRORLOG_ALLOW_DELETING', true); 


2.4. Infected Files Settings.


These settings allows you to define configuration for infected files.
// infected files settings
define('_INFECTED_SEARCH_STRING', 'eval(');
define('_INFECTED_REPLACE_STRING', '');
define('_INFECTED_ALLOW_DELETING', false);
define('_INFECTED_ALLOW_CLEANING', true);
$_INFECTED_ALLOWED_EXTENSIONS = array('.php', '.txt', '.htm', '.html', '.js');


2.5. Last Changed Files Settings.


These settings allows you to define configuration for last changed files.
// last changed files settings
define('_CHANGED_DIFF_HOURS', 24);
define('_CHANGED_IGNORE_CACHE_FILES', true);