'.__('Optimization').''); if ($blog->optimize() !== false) { buffer::str( '
'. __('Optimize tables').'
' ); } else { buffer::str( ''. __('Error during tables optimization').'
' ); } $blog->countAll(); buffer::str( ''. __('Count comments').'
' ); buffer::str( ''.__('Optimization done').'
'. '' ); } // Sauvegarde des tables elseif ($backup == 1) { include_once(dirname(__FILE__).'/lib.mysqldump.php'); $send_it = isset($_POST['sendit'])?true:false; $res = dbdump::saveDump($send_it); buffer::str(''. __('Your tables have been saved').'
'. ''. __('You can now download a gzipped version of the corresponding SQL file from this location') . ' : '.$res.'
'. ''.__('Backup done').'
' ); } else { buffer::str( ''. __('Error during tables backup').'
'. ''.__('Backup done').'
' ); } buffer::str( '' ); } // Restauration des tables elseif ($restore == 1) { include_once(dirname(__FILE__).'/lib.mysqldump.php'); buffer::str(''.__('Restore done.').'
' ); $blog->triggerMassUpd(); } else { $error = __('An error occurred while restoring. Your blog may be broken.'); } } if (!empty($error)) { buffer::str( ''.$error.'
'.__('Restore failed.').'
' ); } buffer::str( '' ); } else { include_once(dirname(__FILE__).'/lib.installer.php'); buffer::str( ''. __('Unavailable mysql/ directory in share/. You may create it manually.'). '
'. ''.__('This operation allows you to optimize DotClear-related tables '. 'in MySQL and keep some data safe. No data should be lost during this '. 'operation.').'
'. ''.__('Important').' : '. __('Such an operation could take some time. Please be patient.').'
'. '' ); // Sauvegarde buffer::str( ''.__('This operation allows you to save DotClear-related tables '. 'in MySQL. It will generate a gzipped SQL file, stored in your share/ directory, which could be use to restore your tables and their content.'). '
'. ''.__('Important').' : '. __('Such an operation could take some time. Please be patient.').'
'. '' ); // Restauration buffer::str( ''.__('This operation allows you to restore your DotClear-related tables in MySQL. '. 'It will use a gzipped dump file produced by the backup operation.').'
'. ''.__('Use the form below to select and upload your dump file.').'
'. ''.__('Important').' : '. __('Such an operation could take some time. Please be patient.').'
'. ''.
__('Please note that this operation will not merge existing datas with dumped ones, but simply replace them.').
'
'.
__('Besides, this process can fail due to execution time restrictions in your PHP configuration.').
__('In such a case, it may leave your blog in a damaged state.').
'
'.
__('You are now warned !').
'