1
0
Fork 0
Dieser Commit ist enthalten in:
DSB 2011-06-10 21:55:32 +00:00
Ursprung 2b21070b1a
Commit f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,51 @@
<?php
$this->config = $this->parent->config;
$this->lang = $this->parent->lang;
?>
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_SEND_MAIL_FORM?>:</td>
<td class="small right">
<?php
if ($this->config->get('config.email.sendMail') == 0) {
echo $this->lang->L_NO;
} else {
echo $this->lang->L_YES;
?>
<table style="width:100%;" summary="E-Mail parameters">
<?php if ($this->config->email['attach_backup'] == 0) { ?>
<tr class="row-even">
<td class="small right" colspan="2"><?php echo $this->lang->L_DONT_ATTACH_BACKUP?></td>
</tr>
<?php } else { ?>
<tr class="row-even">
<td class="small right" colspan="2"><?php echo $this->lang->L_ATTACH_BACKUP?></td>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_MAX_UPLOAD_SIZE?>:</td>
<td class="small right" colspan="2"><?php echo $d->SEND_MAIL.ATTACH_BACKUP.SIZE?></td>
</tr>
<?php } ?>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_EMAIL_RECIPIENT?>:</td>
<td class="small right"><?php echo $this->escape($this->config->email['recipient_name'])?></td>
</tr>
<?php
if (count($this->config->email['recipient_cc']) > 0) {
?>
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_EMAIL_CC?>:</td>
<?php
$cc = '';
foreach ($this->config->email['recipient_cc'] as $r) {
$cc .= $r['name'].', ';
}
$cc = substr($cc, 0, -2);
?>
<td class="small right"><?php echo $this->escape($cc)?></td>
</tr>
<?php } ?>
</table>
<?php } ?>
</td>
</tr>

Datei anzeigen

@ -0,0 +1,35 @@
<?php
$this->config = $this->parent->config;
$this->lang = $this->parent->lang;
if (count($this->config->get('config.ftp'))>0) {
$ftpNr = 1;
foreach ($this->config->get('config.ftp') as $ftp) {
if ($ftp['use'] == 'y') {
?>
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_FTP_TRANSFER. ' '. $ftpNr?>:</td>
<td class="small">
<table style="width:100%" summary="FTP parameters">
<tr class="row-even">
<td class="small">
<?php echo $this->lang->L_FTP_SERVER?>,
<?php echo $this->lang->L_FTP_PORT?>,
<?php echo $this->lang->L_FTP_USER?>
</td>
<td class="small right">
<?php echo $this->escape($ftp['server'])?>,
<?php echo $this->escape($ftp['port'])?>,
<?php echo $this->escape($ftp['user'])?>
</td>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_FTP_DIR?>:</td>
<td class="small right"><?php echo $this->escape($ftp['dir'])?></td>
</tr>
</table>
</td>
</tr>
<?php } ?>
<?php } ?>
<?php } ?>

Datei anzeigen

@ -0,0 +1,108 @@
<?php
$d = $this->dumpData;
?>
<div id="content">
<h2><?php echo $this->lang->L_DUMP;?></h2>
<div id="headnavi">
<ul class="Formbutton" id="tabnav">
<li>
<a href="#tab_php" id="tab_php" class="tab Formbutton">
<?php echo$this->getIcon('BackupDatabase', '', 16);?>
<?php echo $this->lang->L_DUMP;?> PHP
</a>
</li>
<li><a href="#tab_perl" id="tab_perl" class="tab Formbutton">
<?php echo$this->getIcon('BackupDatabase', '', 16);?>
<?php echo $this->lang->L_DUMP;?> Perl
</a>
</li>
</ul>
</div>
<div id="panel_php" class="panel">
<form id="fm" method="post" action="<?php echo $this->url(array('controller'=>'dump','action'=>'start.dump'));?>/startDump">
<h3><?php echo $this->lang->L_DUMP?> PHP</h3>
<div>
<ul class="Formbutton">
<li>
<button class="Formbutton" type="submit">
<?php echo$this->getIcon('BackupDatabase', '', 16);?>
<?php echo $this->lang->L_FM_STARTDUMP?>
</button>
</li>
<li>
<a href="<?php echo $this->url(array('controller'=>'dump','action'=>'select.tables'));?>" class="Formbutton">
<?php echo$this->getIcon('CheckBoxes', '', 20);?>
<?php echo $this->lang->L_FM_SELECTTABLES?>
</a>
</li>
</ul>
</div>
<div>
<table class="bdr">
<tr class="row-even">
<td class="small vmiddle">
<label for="comment">
<?php echo $this->lang->L_FM_COMMENT?>:
</label>
</td>
<td class="small">
<input type="text" class="text noleftmargin" style="width:260px;" id ="comment"
name="comment" value="<?php echo $this->escape($this->comment)?>" />
</td>
</tr>
<?php if ($this->config->get('config.mode') > 0) { ?>
<tr class="row-odd">
<td><label for="backup_using_updates">Update (REPLACE Command):</label></td>
<td><input type="checkbox" class="checkbox noleftmargin" name="backup_using_updates" id="backup_using_updates" value="1" /></td>
</tr>
<tr class="row-odd">
<td>
<label for="sel_dump_encoding"><?php echo $this->lang->L_FM_CHOOSE_ENCODING?>:</label>
</td>
<td>
<select name="sel_dump_encoding" id="sel_dump_encoding">
{POSSIBLE_DUMP_ENCODINGS}
</select>
</td>
</tr>
<?php } ?>
</table>
</div>
</form>
</div>
<br />
<?php
echo $this->partial('dump/settings.phtml',array('parent' => $this));
?>
<div id="panel_perl" class="panel" style="display:none">
<h3><?php echo $this->lang->L_DUMP?> PERL (<?php echo $this->lang->L_CONFIG_HEADLINE;?>: <?php echo $this->config->get('dynamic.configFile')?>)</h3>
<button class="Formbutton" name="DoCronscript" onclick="show_perl_output('<?php echo $d->PERL_HTTP_CALL?>')"><?php echo $this->lang->L_DOCRONBUTTON?></button>
<button class="Formbutton" name="DoSimpleTest" onclick="show_perl_output('<?php echo $d->PERL_TEST?>')"><?php echo $this->lang->L_DOSIMPLETEST?></button>
<button class="Formbutton" name="DoPerlTest" onclick="show_perl_output('<?php echo PERL_MODULTEST?>')"><?php echo $this->lang->L_DOPERLTEST?></button>
<br />
<table class="bdr" style="width:90%" summary="Perl">
<tr class="row-odd">
<td><?php echo $this->lang->L_PERLOUTPUT2?>:</td>
<td style="width:60%"><input class="text" style="width:95%" type="text" value="{PERL_HTTP_CALL}" /></td>
</tr>
<tr class="row-even">
<td><?php echo $this->lang->L_PERLOUTPUT3?>:</td>
<td><input class="text" style="width:95%" type="text" value="{PERL_CRONTAB_CALL}" /></td>
</tr>
<tr class="row-even">
<td><?php echo $this->lang->L_PERLOUTPUT1?>:</td>
<td><input class="text" style="width:95%" type="text" value="{PERL_ABSOLUTE_PATH_OF_CONFIGDIR?>" /></td>
</tr>
</table>
<br />
<div id="perloutput_div" style="width:100%;height:200px;overflow:hidden;display:none;">
<iframe id="perloutput" style="width:100%;height:100%;"></iframe>
</div>
</div>
</div>

Datei anzeigen

@ -0,0 +1,19 @@
<?php
$this->config = $this->parent->config;
$this->lang = $this->parent->lang;
$d = $this->parent->dumpData;
if ($this->config->get('config.general.multiPart') == 0) { ?>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_MULTI_PART?>:</td>
<td class="small right" colspan="2"><?php echo $this->lang->L_NO?></td>
</tr>
<?php } else { ?>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_MULTI_PART?>:</td>
<td class="small right"><?php echo $this->lang->L_YES?></td>
</tr>
<tr>
<td class="small">&nbsp;&nbsp;<?php echo $this->lang->L_MULTIPART_SIZE?>:</td>
<td class="small right"><?php echo$this->byteOutput($this->config->multipartGroesse);?></td>
</tr>
<?php }

Datei anzeigen

@ -0,0 +1,113 @@
<?php
$d = $this->parent->dumpData;
$sumTotal = $this->parent->dumpData->sumTotal;
$this->lang = $this->parent->lang;
$this->config = $this->parent->config;
?>
<div id="dumpsettings">
<h3><?php echo $this->lang->L_FM_DUMPSETTINGS;?></h3>
<table class="bdr floatLeft" summary="Dump settings">
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_CONFIG_HEADLINE?></td>
<td class="small right"><?php echo $this->config->get('dynamic.configFile')?></td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_DBS?>:</td>
<td class="small right">
<?php echo $d->databasesToBackup?> (<?php echo $d->nrOfDatabasesToBackup?>)
</td>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_TABLES?>:</td>
<td class="small right"><?php echo $this->numberFormat($sumTotal['tablesTotal'])?>
</td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_RECORDS?>:</td>
<td class="small right"><?php echo $this->numberFormat($sumTotal['recordsTotal'])?></td>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_DATASIZE?>:</td>
<td class="small right"><?php echo $this->byteOutput($sumTotal['datasizeTotal'])?></td>
</tr>
<tr class="row-odd">
<td colspan="2" class="small">
<span class="small right">(<?php echo $this->lang->L_DATASIZE_INFO?>.)</span>
</td>
</tr>
<tr class="dbrow">
<td class="small nowrap"><?php echo $this->lang->L_GZIP?>:</td>
<td class="small right"><?php echo $this->config->get('dynamic.compression') ? $this->lang->L_YES: $this->lang->L_NO; ?></td>
</tr>
<?php
echo $this->partial('dump/multipart.phtml', array('parent' => $this->parent));
echo $this->partial('dump/email.phtml', array('parent' => $this->parent));
echo $this->partial('dump/ftp.phtml', array('parent' => $this->parent));
?>
</table>
<?php
if (!empty($sumTotal['tables'])) {
?>
<table class="bdr floatLeft" style="margin-left:12px;" summary="Info table types and records">
<tr class="thead">
<th><?php echo $this->lang->L_TABLE_TYPE;?></th>
<?php
$details = $sumTotal['tables'];
$keys = array_keys($details);
foreach ($keys as $tableType) {
echo '<th>'.$tableType.'</th>';
}
?>
<th><?php echo $this->lang->L_INFO_SUM;?></th>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_TABLES;?>:</td>
<?php
$tablesTotal = 0;
foreach ($keys as $tableType) {
echo '<td class="small right">'
.$this->numberFormat($details[$tableType]['tablesTotal'])
.'</td>';
$tablesTotal += $details[$tableType]['tablesTotal'];
}
?>
<td class="small right">
<?php echo $this->numberFormat($tablesTotal);?>
</td>
</tr>
<tr class="row-even">
<td class="small"><?php echo $this->lang->L_RECORDS;?>:</td>
<?php
$recordsTotal = 0;
foreach ($keys as $tableType) {
echo '<td class="small right">'
.$this->numberFormat($details[$tableType]['recordsTotal'])
.'</td>';
$recordsTotal += $details[$tableType]['recordsTotal'];
}
?>
<td class="small right">
<?php echo $this->numberFormat($recordsTotal);?>
</td>
</tr>
<tr class="row-odd">
<td class="small"><?php echo $this->lang->L_DATASIZE;?>:</td>
<?php
$datasizeTotal = 0;
foreach ($keys as $tableType) {
echo '<td class="small right">'
.$this->byteOutput($details[$tableType]['datasizeTotal'])
.'</td>';
$datasizeTotal += $details[$tableType]['datasizeTotal'];
}
?>
<td class="small right">
<?php echo $this->byteOutput($datasizeTotal);?>
</td>
</tr>
</table>
<?php } ?>
</div>

Datei anzeigen

@ -0,0 +1,277 @@
<?php
$url = $this->url(array('controller'=>'dump','action'=>'do.dump'));
?>
<script type="text/javascript">
/*<![CDATA[*/
var scroll_log=true;
function doDump()
{
$.ajax({
url: '<?php echo $url;?>?MySQLDumper=<?php echo $this->sessionId;?>',
method:'get',
dataType: 'json',
async: false,
success: function(data, textStatus){
/*
if (!(transport.responseText.substr(0,21)=='{"backup_in_progress"')) {
// unnormal error returned
alert('Error');
} else {
*/
parseDumpResponse(data);
},
error: function(){ alert('Something with the Ajax-Request went wrong. Maybe a server timout happened?') }
});
}
function parseDumpResponse(json)
{
if (json.config_file)
{
// values only submitted once because they don't change during backup process
$('#config_file').html(json.config_file);
$('#dump_encoding').html(json.dump_encoding);
$('#speed_min').html(json.speed_min);
$('#speed_max').html(json.speed_max);
$('#tables_total').html(json.tables_total);
$('#records_total').innerHTML = json['records_total'];
$('#comment').innerHTML = json['comment'];
}
$('tables_optimized').innerHTML=json['tables_optimized'];
if (json['dbs_to_backup']) $('dbs_to_backup').innerHTML = json['dbs_to_backup'] ;
$('actual_database').innerHTML = json['actual_database'] ;
if (json['actual_table']>'') $('actual_table').innerHTML = '`'+json['actual_database']+'`.`'+json['actual_table']+'`' ;
else $('actual_table').innerHTML='';
$('actual_table_nr').innerHTML = json['actual_table_nr'];
$('table_records_total').innerHTML = json['table_records_total'];
$('records_saved_total').innerHTML = json['records_saved_total'];
$('filename').innerHTML = json['filename'];
$('filesize').innerHTML = json['filesize'];
$('elapsed_time').innerHTML = json['elapsed_time'];
if (json['estimated_end']) $('estimated_end').innerHTML=json['estimated_end'];
$('page_refreshs').innerHTML = json['page_refreshs'];
$('record_offset_start').innerHTML = json['record_offset_start'];
$('record_offset_end').innerHTML = json['record_offset_end'];
$('progress_table_percent').innerHTML = json['progress_table_percent'];
$('speed').innerHTML = json['speed'];
$('nr_of_errors').innerHTML = json['nr_of_errors'];
if (json['multipart_part']) $('multipart_part').innerHTML = json['multipart_part'];
if (json['prefix']) $('prefix').innerHTML = json['prefix'];
// Logs
if (json['actions']) $('log').innerHTML+= json['actions']+'<br />';
if (json['errors']) $('log').innerHTML+= '<span class="error">'+json['errors']+'<\/span><br />';
//scroll log to bottom
if (scroll_log && (json['actions'] || json['errors'])) $('log').scrollTop = $('log').scrollHeight;
/*
// progressbars
$('progressbar_table').morph( 'progressbar_table', {
style: 'width:'+json['progressbar_table_width']+'px;',
duration: 0.3
});
if (json['progress_overall_percent'])
{
$('progress_overall_percent').innerHTML = json['progress_overall_percent'];
$('progressbar_overall').morph( 'progressbar_overall', {
style: 'width:'+json['progressbar_overall_width']+'px;',
duration: 0.3
});
}
$('speedbar').morph( 'speedbar', {
style: 'width:'+json['speedbar_width']+'px;',
duration: 0.3
});
*/
if (json['backup_in_progress']==1) doDump(); // Backup not finished -> continue
//else self.location.href='index.php?p=dump&action=done&MySQLDumper={SESSION_ID}';
}
$(document).ready( function () {
doDump();
})
/*]]>*/
</script>
<div id="content">
<h2><?php echo $this->lang->L_DUMP_HEADLINE;?></h2>
<div id="dump_infos">
<table class="bdr" summary="Dump parameters">
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_CONFIG;?>:</td>
<td class="small right">
<span id="config_file">
<?php echo $this->config->get('dynamic.configFile')?>
</span>
</td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_COMMENT;?>:</td>
<td class="small right"><span id="comment"></span></td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_CHARSET;?>:</td>
<td class="small right"><span id="dump_encoding"></span></td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_GZIP_COMPRESSION;?>:</td>
<td class="small right">{GZIP}</td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_DUMP_FILENAME;?>:</td>
<td class="small right"><span id="filename">{DUMP_FILENAME}</span></td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_FILESIZE;?>:</td>
<td class="small right"><span id="filesize">{DUMP_FILESIZE}</span></td>
</tr>
<!-- BEGIN MULTIPART -->
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_MULTI_PART;?>:</td>
<td class="small right">
<table width="100%">
<tr>
<td class="small"><?php echo $this->lang->L_MULTIPART_ACTUAL_PART?>:</td>
<td class="small right"><span id="multipart_part"></span></td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_MULTIPART_SIZE;?>:</td>
<td class="small right">{MULTIPART.SIZE}</td>
</tr>
</table>
</td>
</tr>
<!-- END MULTIPART -->
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_DBS;?>:</td>
<td class="small right"><span id="dbs_to_backup"></span></td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_INFO_ACTDB;?>:</td>
<td class="small right"><span id="actual_database"></span></td>
</tr>
<tr class="dbrow">
<td class="small"><?php echo $this->lang->L_SAVING_TABLE;?>:</td>
<td class="small right">
<span id="actual_table_nr"></span>&nbsp;
<?php echo $this->lang->L_OF;?>
<span id="tables_total">{TABLE_COUNT}</span>
</td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_PREFIX;?>:</td>
<td class="small right"><span id="prefix"></span></td>
</tr>
<tr class="dbrow">
<td colspan="2" class="small right">
<span id="tables_optimized"></span>
</td>
</tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_ERROR;?>:</td>
<td class="small right">
<strong><span id="nr_of_errors"></span></strong>
</td>
</tr>
<tr class="dbrow" style="line-height:12px;"><td colspan="2">&nbsp;</td></tr>
<tr class="dbrow1">
<td class="small nowrap"><?php echo $this->lang->L_PROGRESS_TABLE;?>:</td>
<td class="small"><strong><span id="actual_table"></span></strong></td>
</tr>
<tr class="dbrow1">
<td>&nbsp;</td>
<td>
<table style="width:400px">
<tr>
<td style="width:60px" class="small right nowrap"><span id="progress_table_percent">0</span> %</td>
<td>
<img src="{ICONPATH}progressbar_dump.gif" id="progressbar_table" alt="" width="0" height="16" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="small">
<?php echo $this->lang->L_ENTRY?> <strong><span id="record_offset_start"></span></strong>&nbsp;
<?php echo $this->lang->L_UPTO;?>
<strong><span id="record_offset_end"></span></strong>&nbsp;
<?php echo $this->lang->L_OF;?> <strong><span id="table_records_total"></span></strong>
</td>
</tr>
</table>
</td>
</tr>
<tr class="dbrow" style="line-height:12px;"><td colspan="2">&nbsp;</td></tr>
<tr class="dbrow1">
<td class="small"><?php echo $this->lang->L_RECORDS_PER_PAGECALL;?>:</td>
<td>
<table width="400">
<tr>
<td style="width:60px" valign="top" class="small right">
<span id="speed"></span>
</td>
<td colspan="2">
<img src="{ICONPATH}progressbar_speed.gif" id="speedbar" alt="" width="0" height="14" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="nowrap small"><span id="speed_min"></span></td>
<td class="nowrap small right"><span id="speed_max"></span></td>
</tr>
</table>
</td>
</tr>
<tr class="dbrow" style="line-height:12px;">
<td colspan="2">&nbsp;</td>
</tr>
<tr class="dbrow1">
<td class="small nowrap"><?php echo $this->lang->L_PROGRESS_OVER_ALL;?>:</td>
<td>
<table style="width:400px">
<tr>
<td style="width:60px" class="right small"><span id="progress_overall_percent"></span> %</td>
<td class="small">
<img src="{ICONPATH}progressbar_dump.gif" id="progressbar_overall" alt="" width="0" height="16" /><br />
<?php echo $this->lang->L_RECORDS;?> <strong><span id="records_saved_total"></span></strong>
&nbsp;<?php echo $this->lang->L_OF;?> <strong><span id="records_total"></span></strong><br />
</td>
</tr>
</table>
</td>
</tr>
<tr class="dbrow">
<td class="small nowrap"><?php echo $this->lang->L_PAGE_REFRESHS;?>:</td>
<td class="small right"><span id="page_refreshs">0</span></td>
</tr>
<tr class="dbrow1">
<td class="small nowrap"><?php echo $this->lang->L_DURATION;?>:</td>
<td class="small right"><span id="elapsed_time"></span></td>
</tr>
<tr class="dbrow">
<td class="small nowrap"><?php echo $this->lang->L_ESTIMATED_END;?>:</td>
<td class="small right"><span id="estimated_end"></span></td>
</tr>
</table>
</div>
<br />
<h3><?php echo $this->lang->L_LOG;?>:</h3>
<div id="log" class="bdr small" style="height:100px;overflow:auto;" onmouseover="scroll_log=false" onmouseout="scroll_log=true"></div>
</div>
<br /><br />