4images Forum & Community

4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: thunderstrike on September 14, 2007, 04:28:16 AM

Title: [FIX] - admin/backup.php file
Post by: thunderstrike on September 14, 2007, 04:28:16 AM
Detail: Fix extension check of SQL.

Find:

Quote
if (is_file(ROOT_PATH.DATABASE_DIR."/".$file) && $file != "." && $file != ".." && eregi("\.sql",$file)) {

replace:

Code: [Select]
if (@file_exists(ROOT_PATH.DATABASE_DIR."/".$file) && $file != "." && $file != ".." && preg_match("/\.sql/", $file)) {
Title: Re: [FIX] - admin/backup.php file
Post by: thunderstrike on September 15, 2007, 05:44:28 AM
Find (2 time):

Quote
if (eregi("\.gz", $file)) {

replace:

Code: [Select]
if (eregi("\.gz$", $file)) {
Title: Re: [FIX] - admin/backup.php file
Post by: vanish on January 21, 2008, 01:02:32 PM
After applying this FIX backup.php don't working correctly - blank backup table
Title: Re: [FIX] - admin/backup.php file
Post by: thunderstrike on January 21, 2008, 02:10:36 PM
And ... PHP and 4images version ?
Title: Re: [FIX] - admin/backup.php file
Post by: vanish on January 23, 2008, 03:16:07 PM
4images 1.7.4
PHP Version 4.3.10
Title: Re: [FIX] - admin/backup.php file
Post by: thunderstrike on January 24, 2008, 01:07:10 AM
If check download.php file, fix is correct for check file with eregi check function. Fix is good ...