$dv){ @srm($__settings['softpath'].$dv); } foreach($__delete_files as $fk => $fv){ @srm($__settings['softpath'].$fv); } // To rebuild installation.php sfileindex($software['path'].'/fileindex.php'); } // This is taken from install/scripts/1.2.1.php function __deleteUnexistingFiles(){ global $__delete_folders, $__delete_files; $__delete_files = array( '/admin/bar.php', '/inc/calendar.css', '/inc/img/cal.gif', '/inc/img/next_mon.gif', '/inc/img/next_year.gif', '/inc/img/no_cal.gif', '/inc/img/pixel.gif', '/inc/img/prev_mon.gif', '/inc/img/prev_year.gif', '/inc/img/shade_bl.png', '/inc/img/shade_bm.png', '/inc/img/shade_br.png', '/inc/img/shade_mr.png', '/inc/img/shade_tr.png', '/includes/class_db_handle.php', '/includes/class_template_compile.php', '/includes/class_user.php', '/includes/converter.inc.php', '/includes/countries.inc.php', '/includes/currencies.php', '/includes/email_auction_confirmation.php', '/includes/email_endauction_cumulative.php', '/includes/email_endauction_nowinner.php', '/includes/email_endauction_winner.php', '/includes/email_endauction_youwin.php', '/includes/email_endauction_youwin_nodutch.php', '/includes/email_outbid.php', '/includes/email_user_approved.php', '/includes/email_user_confirmation.php', '/includes/email_user_needapproval.php', '/includes/htmLawed.php', '/includes/template.php', '/includes/useragent.inc.php', '/js/calendar.php', '/js/google_converter.js', '/js/jquery.dimensions.js', '/captcha.php', '/captcha_play.php', '/converter.php', '/loader.php', '/includes/functions_rebuild.php', '/includes/membertypes.inc.php', ); // Delete folders $__delete_folders = array( '/fck', '/ckeditor', '/inc/captcha', '/includes/captcha', '/inc/checks', '/inc/flags', '/includes/flags', '/inc/plupload', '/themes/admin', '/themes/default', ); } ?>