Author Topic: [FIX] - admin/backup.php file  (Read 12102 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
[FIX] - admin/backup.php file
« 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)) {
« Last Edit: August 27, 2011, 01:45:55 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [FIX] - admin/backup.php file
« Reply #1 on: September 15, 2007, 05:44:28 AM »
Find (2 time):

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

replace:

Code: [Select]
if (eregi("\.gz$", $file)) {
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [FIX] - admin/backup.php file
« Reply #2 on: January 21, 2008, 01:02:32 PM »
After applying this FIX backup.php don't working correctly - blank backup table

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [FIX] - admin/backup.php file
« Reply #3 on: January 21, 2008, 02:10:36 PM »
And ... PHP and 4images version ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: [FIX] - admin/backup.php file
« Reply #4 on: January 23, 2008, 03:16:07 PM »
4images 1.7.4
PHP Version 4.3.10

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [FIX] - admin/backup.php file
« Reply #5 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 ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?