Ejemplo n.º 1
0
function admBackup(&$session, $with_header, $message)
{
    global $backup_table, $backup_compressed, $backup_save, $backup_file;
    $session->trace(TC_Gui1, 'admBackup');
    if ($with_header) {
        guiHeader($session, 'Datenbank-Backup');
    }
    if (!empty($message)) {
        guiParagraph($session, $message, false);
    }
    if (empty($backup_file)) {
        $backup_file = $session->fDbTablePrefix . strftime("_%Y_%m_%d") . '.sql';
    }
    guiHeadLine($session, 1, 'Backup');
    guiStartForm($session, "backup", P_Backup);
    // guiHiddenField ('forum_id', $forum_id);
    echo "<table border=\"0\">\n";
    echo "<tr><td>Dateiname:</td><td>";
    guiTextField('backup_file', $backup_file, 64, 64);
    echo "</td></tr>\n<tr><td>Tabelle:</td><td>";
    guiTextField('backup_table', $backup_table, 64, 64);
    echo " (leer: alle Tabellen)</td></tr>\n<tr><td></td><td>";
    guiCheckBox('backup_compressed', 'komprimiert', $backup_compressed);
    echo "</td></tr>\n<tr><td>";
    guiButton('backup_save', 'Sichern');
    echo "</td></tr>";
    echo "\n</table>\n";
    guiFinishForm($session);
    guiFinishBody($session, null);
}
Ejemplo n.º 2
0
function admBackup(&$session, $with_header, $message)
{
    $session->trace(TC_Gui1, 'admBackup');
    if ($with_header) {
        admStandardHeader($session, 'Datenbank-Backup');
    }
    if (!empty($message)) {
        guiParagraph($session, $message, false);
    }
    if (empty($_POST['backup_file'])) {
        $_POST['backup_file'] = $session->fDbTablePrefix . strftime("_%Y_%m_%d") . '.sql';
    }
    guiHeadLine($session, 1, 'Backup');
    guiStartForm($session);
    outTableAndRecord();
    outTableTextField($session, 'Dateiname:', 'backup_file', null, 64, 64);
    outTableRecordDelim();
    outTableCell('Tabelle:');
    outTableDelim();
    outTextField($session, 'backup_table', null, 64, 64);
    echo ' (leer: alle Tabellen)';
    outTableDelimEnd();
    outTableRecordDelim();
    outTableCheckBox($session, ' ', 'backup_compressed', 'komprimiert', null);
    outTableRecordDelim();
    outTableButton($session, ' ', 'backup_save', 'Sichern');
    outTableAndRecordEnd();
    guiFinishForm($session);
    admFinishBody($session);
}