Backup Database, heres a fix for next version

Discission about the future of Aardvark Topsites PHP.

Backup Database, heres a fix for next version

Postby Basti » 2009-08-04 03:01 pm

Hey jermemy, you may update the current version or the next.

The Admin database backup isnt working correctly, its missing one line, causing errors if you upload the sql file later.

open sources/admin/backup_database.php
find:
Code: Select all
    else {
      $tables_to_backup = array(
        "{$CONF['sql_prefix']}_settings" => true,
        "{$CONF['sql_prefix']}_bad_words" => true,
        "{$CONF['sql_prefix']}_ban" => true,
        "{$CONF['sql_prefix']}_custom_pages" => true,
        "{$CONF['sql_prefix']}_etc" => true,
        "{$CONF['sql_prefix']}_categories" => true,
        "{$CONF['sql_prefix']}_ip_log" => false,
        "{$CONF['sql_prefix']}_reviews" => true,
        "{$CONF['sql_prefix']}_sessions" => false,
        "{$CONF['sql_prefix']}_sites" => true,
        "{$CONF['sql_prefix']}_stats" => true,
      );


replace with
Code: Select all
    else {
      $tables_to_backup = array(
        "{$CONF['sql_prefix']}_settings" => true,
        "{$CONF['sql_prefix']}_bad_words" => true,
        "{$CONF['sql_prefix']}_ban" => true,
        "{$CONF['sql_prefix']}_custom_pages" => true,
        "{$CONF['sql_prefix']}_etc" => true,
        "{$CONF['sql_prefix']}_categories" => true,
        "{$CONF['sql_prefix']}_ip_log" => false,
        "{$CONF['sql_prefix']}_reviews" => true,
        "{$CONF['sql_prefix']}_sessions" => false,
        "{$CONF['sql_prefix']}_sites" => true,
        "{$CONF['sql_prefix']}_sites_edited" => true,
        "{$CONF['sql_prefix']}_stats" => true,
      );
Basti
Advanced Member
 
Posts: 1619
Joined: 2004-06-20 06:17 pm
Location: Germany

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron