$insert .= "'',"; } } } $insert = preg_replace('%,$%', '', $insert); $insert .= ");\r\n"; $writer->write($insert_begin . $insert); } $writer->write("\r\n\r\n"); } if (!empty($_POST['sendBackup']) and $_POST['sendBackup'] == 'yes' and isset($_POST['gelesen']) and $_POST['gelesen'] == 'yes') { $prefix = isset($_POST['prefix']) ? '_' . str_replace('_', '', DBPREF) : ''; $utf8 = $_POST['cod'] == 'ansi' ? false : true; $cod = $utf8 ? 'utf-8' : 'ansi'; $name = 'ilch_11_' . date('Y-m-d_H-i') . '_' . $cod . $prefix . '.sql'; $writer = new BackupWriter($utf8); if ($_POST['backuptype'] == 'download' or $_POST['backuptype'] == 'both') { $writer->addWriter(new BrowserBackupWriter($name)); } if ($_POST['backuptype'] == 'backupdir' or $_POST['backuptype'] == 'both') { $writer->addWriter(new FileBackupWriter($name)); } // # // ## // ### start backup /* phpMyBackup v.0.4 Beta - Documentation Homepage: http://www.nm-service.de/phpmybackup Copyright (c) 2000-2001 by Holger Mauermann, mauermann@nm-service.de phpMyBackup is distributed in the hope that it will be useful for you, but WITHOUT ANY WARRANTY. This programm may be used freely as long as all credit