if (isset($_GET['tot'])) { $total_queries = $_GET['tot']; } else { $total_queries = NULL; } $output .= "\r\n <h1>\r\n <font class=\"error\">{$lang_backup['file_loaded']} {$total_queries} {$lang_backup['que_executed']}.</font>\r\n </h1>\r\n </div>"; break; default: //no error $output .= "\r\n <h1>{$lang_backup['backup_acc']}</h1>\r\n </div>"; $output .= "\r\n <center>\r\n <font class=\"large\">{$lang_backup['tables_to_save']}:</font>\r\n <br />\r\n <table width=\"700\" class=\"hidden\">\r\n <tr>\r\n <td>"; foreach ($tables_backup_realmd as $value) { $output .= "\r\n {$realm_db['name']}.{$value} / "; } foreach ($tables_backup_characters as $value) { $output .= " {$value} / "; } $output .= "\r\n </td>\r\n </tr>\r\n </table>\r\n </center>"; } $action = isset($_GET['action']) ? $_GET['action'] : NULL; switch ($action) { case "backup_step2": backup_step2(); break; case "dobackup": dobackup(); break; default: backup_step1(); } include_once "footer.php";
$file = COM_sanitizeFilename($file, true); if (!file_exists($_CONF['backup_path'] . $file)) { $file = ''; } } if (!empty($file)) { downloadbackup($file); exit; } } $list_backups = true; switch ($mode) { case 'backup': $pagetitle = $LANG_DB_BACKUP['new_backup']; if (SEC_checkToken()) { $display .= dobackup(); } break; case 'delete': $pagetitle = $LANG_DB_BACKUP['last_ten_backups']; if (SEC_checkToken()) { $display .= deletebackups(); } break; case 'optimize': $pagetitle = $LANG_DB_BACKUP['optimize_title']; $display .= optimize(); $list_backups = false; break; case 'dooptimize': $startwith = '';