mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
- Removed the ability to make archives for backups... Its one sql file, no need to use some heavy archive to store it... - Made it easier to use the restore feature - Flushed the data buffer at the end of every insert statement, this should make large tables (like posts and topics) faster to backup - Some bug fixes :D git-svn-id: file:///svn/phpbb/trunk@5708 89ea8834-ac86-4346-8a33-228a782c2dd0
75 lines
2.8 KiB
HTML
75 lines
2.8 KiB
HTML
<!-- INCLUDE overall_header.html -->
|
|
|
|
<a name="maincontent"></a>
|
|
<!-- IF MODE eq 'restore' -->
|
|
<h1>{L_ACP_RESTORE}</h1>
|
|
|
|
<p>{L_ACP_RESTORE_EXPLAIN}</p>
|
|
|
|
<form id="acp_backup" method="post" action="{U_ACTION}">
|
|
<fieldset>
|
|
<legend>{L_RESTORE_OPTIONS}</legend>
|
|
<dl>
|
|
<dt><label for="user">{L_SELECT_FILE}:</label></dt>
|
|
<dd><select id="file" name="file" size="10"><!-- BEGIN files --><option value="{files.FILE}"<!-- IF files.S_LAST_ROW --> selected="selected"<!-- ENDIF -->>{files.NAME}</option><!-- END files --></select></dd>
|
|
</dl>
|
|
</fieldset>
|
|
<fieldset class="submit-buttons">
|
|
<input class="button1" type="submit" id="submit" name="submit" value="{L_START_RESTORE}" />
|
|
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
|
</fieldset>
|
|
</form>
|
|
<!-- ELSE -->
|
|
<h1>{L_ACP_BACKUP}</h1>
|
|
|
|
<p>{L_ACP_BACKUP_EXPLAIN}</p>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
|
|
function selector(bool)
|
|
{
|
|
var table = document.getElementById('table');
|
|
|
|
for (var i = 0; i < table.options.length; i++)
|
|
{
|
|
table.options[i].selected = bool;
|
|
}
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
|
|
<form id="acp_backup" method="post" action="{U_ACTION}">
|
|
<fieldset>
|
|
<legend>{L_BACKUP_OPTIONS}</legend>
|
|
<dl>
|
|
<dt><label for="user">{L_BACKUP_TYPE}:</label></dt>
|
|
<dd><input type="radio" name="type" value="full" id="type" checked="checked" /> {L_FULL_BACKUP} <input type="radio" name="type" value="structure" id="type" /> {L_STRUCTURE_ONLY} <input type="radio" name="type" value="data" id="type" /> {L_DATA_ONLY}</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><label for="user">{L_FILE_TYPE}:</label></dt>
|
|
<dd><!-- BEGIN methods -->
|
|
<input name="method" id="method" type="radio" value="{methods.TYPE}"<!-- IF methods.S_FIRST_ROW -->checked="checked"<!-- ENDIF --> /> {methods.TYPE}
|
|
<!-- END methods --></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><label for="user">{L_ACTION}:</label></dt>
|
|
<dd><input type="radio" name="where" value="store_and_download" id="where" checked="checked" /> {L_STORE_AND_DOWNLOAD} <input type="radio" name="where" value="store" id="where" /> {L_STORE_LOCAL} <input type="radio" name="where" value="download" id="where" /> {L_DOWNLOAD}</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><label for="user">{L_TABLE_SELECT}:</label></dt>
|
|
<dd><select id="table" name="table[]" size="10" multiple="true">
|
|
<!-- BEGIN tables -->
|
|
<option value="{tables.TABLE}">{tables.TABLE}</option>
|
|
<!-- END tables -->
|
|
</select><br /><br /><div align="right"><a href="#" onclick="selector(true)">{L_SELECT_ALL}</a><br /><a href="#" onclick="selector(false)">{L_DESELECT_ALL}</a></div></dd>
|
|
</dl>
|
|
</fieldset>
|
|
<fieldset class="submit-buttons">
|
|
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
|
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
|
</fieldset>
|
|
</form>
|
|
<!-- ENDIF -->
|
|
<!-- INCLUDE overall_footer.html --> |