| 1 | <TMPL_INCLUDE NAME="header.tmpl"> |
|---|
| 2 | |
|---|
| 3 | <script type="text/javascript"> |
|---|
| 4 | |
|---|
| 5 | function highlightSwitch(selection) { |
|---|
| 6 | var descriptionObject = getByID('backup-what-description'); |
|---|
| 7 | if (descriptionObject) { |
|---|
| 8 | if (selection.value == 'custom') { |
|---|
| 9 | var el_name = getByID('selected_blogs'); |
|---|
| 10 | if (el_name) { |
|---|
| 11 | el_name.style.display = 'block'; |
|---|
| 12 | el_name.innerHTML = '(<MT_TRANS phrase="None selected.">)'; |
|---|
| 13 | } |
|---|
| 14 | openDialog(false, 'dialog_select_weblog'); |
|---|
| 15 | descriptionObject.innerHTML = '<MT_TRANS phrase="This option allows you to choose exactly what you want to backup.">'; |
|---|
| 16 | } else { |
|---|
| 17 | var el_id = getByID('selected_blog_ids'); |
|---|
| 18 | if (el_id) el_id.value = ''; |
|---|
| 19 | var el_name = getByID('selected_blogs'); |
|---|
| 20 | if (el_name) el_name.style.display = 'none'; |
|---|
| 21 | descriptionObject.innerHTML = '<MT_TRANS phrase="This option will backup Users, Roles, Associations, Weblogs, Entries, Categories, Templates and Tags.">'; |
|---|
| 22 | } |
|---|
| 23 | } |
|---|
| 24 | return false; |
|---|
| 25 | } |
|---|
| 26 | </script> |
|---|
| 27 | <h2><span class="weblog-title-highlight"><TMPL_IF NAME=BLOG_ID><TMPL_VAR NAME=BLOG_NAME ESCAPE=HTML><TMPL_ELSE><MT_TRANS phrase="System-wide"></TMPL_IF>:</span> <MT_TRANS phrase="Backup / Restore"></h2> |
|---|
| 28 | |
|---|
| 29 | <p class="page-desc"><MT_TRANS phrase="_BACKUP_RESTORE_DESCRIPTION"> |
|---|
| 30 | <a href="#" onclick="return openManual('backup_restore', 'backup_restore_main')" class="help">?</a></p> |
|---|
| 31 | |
|---|
| 32 | <div class="tabs"> |
|---|
| 33 | <ul> |
|---|
| 34 | <li class="yah" id="backup-tab"><a href="#" onclick="tabToggle('backup',Array('backup','restore'))" title="<MT_TRANS phrase="Backup System Objects">"><MT_TRANS phrase="Backup"></a></li> |
|---|
| 35 | <TMPL_UNLESS NAME=BLOG_ID><li id="restore-tab"><a href="#" onclick="tabToggle('restore',Array('backup','restore'))" title="<MT_TRANS phrase="Restore System Objects">"><MT_TRANS phrase="Restore"></a></li></TMPL_UNLESS> |
|---|
| 36 | </ul> |
|---|
| 37 | </div> |
|---|
| 38 | |
|---|
| 39 | <div id="backup-panel"> |
|---|
| 40 | |
|---|
| 41 | <form method="post" action="<TMPL_VAR NAME=SCRIPT_URL>"> |
|---|
| 42 | <input type="hidden" name="__mode" value="backup" /> |
|---|
| 43 | <input type="hidden" name="magic_token" value="<TMPL_VAR NAME=MAGIC_TOKEN>" /> |
|---|
| 44 | |
|---|
| 45 | <fieldset style="margin-top: 0px;"> |
|---|
| 46 | |
|---|
| 47 | <TMPL_IF NAME=BLOG_ID> |
|---|
| 48 | <input type="hidden" id="blog_id" name="blog_id" value="<TMPL_VAR NAME=BLOG_ID>" /> |
|---|
| 49 | <input type="hidden" id="backup_what" name="backup_what" value="custom" /> |
|---|
| 50 | <input type="hidden" id="selected_blog_ids" name="selected_blog_ids" value="<TMPL_VAR NAME=BLOG_ID>" /> |
|---|
| 51 | <TMPL_ELSE> |
|---|
| 52 | <div class="setting"> |
|---|
| 53 | <div class="label"><label><MT_TRANS phrase="What to backup">:</label></div> |
|---|
| 54 | <div class="field"> |
|---|
| 55 | <select name="backup_what" id="backup_what" onchange="highlightSwitch(this)"> |
|---|
| 56 | <option value="everything" selected="selected"><MT_TRANS phrase="Everything"></option> |
|---|
| 57 | <option value="custom"><MT_TRANS phrase="Choose weblogs to backup"></option> |
|---|
| 58 | </select> |
|---|
| 59 | <input type="hidden" id="selected_blog_ids" name="selected_blog_ids" value="" /> |
|---|
| 60 | <p><strong><span id="selected_blogs" style="display:none;">(<MT_TRANS phrase="None selected.">)</span></strong></p> |
|---|
| 61 | <p><span id="backup-what-description"><MT_TRANS phrase="This option will backup Users, Roles, Associations, Weblogs, Entries, Categories, Templates and Tags."></span> |
|---|
| 62 | <a href="#" onclick="return openManual('backup_restore', 'backup_what')" class="help">?</a></p> |
|---|
| 63 | </div> |
|---|
| 64 | </div> |
|---|
| 65 | </TMPL_IF> |
|---|
| 66 | <div class="setting"> |
|---|
| 67 | <div class="label"><label><MT_TRANS phrase="Type of archive format">:</label></div> |
|---|
| 68 | <div class="field"> |
|---|
| 69 | <p> |
|---|
| 70 | <TMPL_IF NAME=TARGZ><input type="radio" id="tar.gz" name="backup_archive_format" value="1" checked="checked" /> <label for="tar.gz"><MT_TRANS phrase="tar.gz"></label></TMPL_IF> |
|---|
| 71 | <TMPL_IF NAME=ZIP><input type="radio" id="zip" name="backup_archive_format" value="2"<TMPL_UNLESS NAME=TARGZ>checked="checked"</TMPL_UNLESS> /> <label for="zip"><MT_TRANS phrase="zip"></label></TMPL_IF> |
|---|
| 72 | <input type="radio" id="no_archive" name="backup_archive_format" value="0"<TMPL_UNLESS NAME=TARGZ><TMPL_UNLESS NAME=ZIP>checked="checked"</TMPL_UNLESS></TMPL_UNLESS> /> <label for="no_archive"><MT_TRANS phrase="Don't compress"></label> |
|---|
| 73 | <a href="#" onclick="return openManual('backup_restore', 'backup_format')" class="help">?</a> |
|---|
| 74 | </p> |
|---|
| 75 | </div> |
|---|
| 76 | </div> |
|---|
| 77 | <div class="setting"> |
|---|
| 78 | <div class="label"><label for="size_limit"><MT_TRANS phrase="Number of megabytes per file">:</label></div> |
|---|
| 79 | <div class="field"> |
|---|
| 80 | <select name="size_limit" id="size_limit"> |
|---|
| 81 | <option value="0" selected="selected"><MT_TRANS phrase="Don't Divide"></option> |
|---|
| 82 | <TMPL_IF NAME=OVER_300> |
|---|
| 83 | <option value="300">300KB</option> |
|---|
| 84 | <TMPL_IF NAME=OVER_500> |
|---|
| 85 | <option value="500">500KB</option> |
|---|
| 86 | <TMPL_IF NAME=OVER_1024> |
|---|
| 87 | <option value="1024">1MB</option> |
|---|
| 88 | <TMPL_IF NAME=OVER_2048> |
|---|
| 89 | <option value="2048">2MB</option> |
|---|
| 90 | </TMPL_IF> |
|---|
| 91 | </TMPL_IF> |
|---|
| 92 | </TMPL_IF> |
|---|
| 93 | </TMPL_IF> |
|---|
| 94 | </select> |
|---|
| 95 | <p><MT_TRANS phrase="Approximate file size per backup file."> <a href="#" onclick="return openManual('backup_restore', 'backup_num_size')" class="help">?</a></p> |
|---|
| 96 | </div> |
|---|
| 97 | </div> |
|---|
| 98 | <p style="text-align: center;"><input type="submit" value="<MT_TRANS phrase="Make Backup">" title="<MT_TRANS phrase="Make Backup (b)">" accesskey="b" /></p> |
|---|
| 99 | |
|---|
| 100 | </fieldset> |
|---|
| 101 | </form> |
|---|
| 102 | </div> |
|---|
| 103 | <TMPL_UNLESS NAME=BLOG_ID> |
|---|
| 104 | <div id="restore-panel" style="display: none;"> |
|---|
| 105 | <TMPL_IF NAME=MISSING_SAX> |
|---|
| 106 | <div class="error-message"><MT_TRANS phrase="Perl module XML::SAX and/or its dependencies are missing - Movable Type can not restore the system without it."></div> |
|---|
| 107 | <TMPL_ELSE> |
|---|
| 108 | <form method="post" enctype="multipart/form-data" action="<TMPL_VAR NAME=SCRIPT_URL>"> |
|---|
| 109 | <input type="hidden" name="__mode" value="restore" /> |
|---|
| 110 | <input type="hidden" name="magic_token" value="<TMPL_VAR NAME=MAGIC_TOKEN>" /> |
|---|
| 111 | |
|---|
| 112 | <fieldset style="margin-top: 0px;"> |
|---|
| 113 | |
|---|
| 114 | <h3><MT_TRANS phrase="Upload Single File"></h3> |
|---|
| 115 | <div class="setting"> |
|---|
| 116 | <div class="label"><label><MT_TRANS phrase="Upload backup file: (optional)"></label></div> |
|---|
| 117 | <div class="field"> |
|---|
| 118 | <input name="file" type="file" /> |
|---|
| 119 | <p><MT_TRANS phrase="If your backup file is located on your computer, you can upload it here. Otherwise, Movable Type will automatically look in the <code>import</code> folder of your Movable Type directory."> <a href="#" onclick="return openManual('backup_restore', 'source_file')" class="help">?</a><br /></p> |
|---|
| 120 | </div> |
|---|
| 121 | </div> |
|---|
| 122 | |
|---|
| 123 | <p style="text-align: center;"><input type="submit" value="<MT_TRANS phrase="Restore">" title="<MT_TRANS phrase="Restore (r)">" accesskey="r" /></p> |
|---|
| 124 | </fieldset> |
|---|
| 125 | |
|---|
| 126 | </form> |
|---|
| 127 | |
|---|
| 128 | <form method="post" enctype="multipart/form-data" action="<TMPL_VAR NAME=SCRIPT_URL>"> |
|---|
| 129 | <input type="hidden" name="__mode" value="restore_upload_manifest" /> |
|---|
| 130 | <input type="hidden" name="magic_token" value="<TMPL_VAR NAME=MAGIC_TOKEN>" /> |
|---|
| 131 | |
|---|
| 132 | <fieldset style="margin-top: 0px;"> |
|---|
| 133 | |
|---|
| 134 | <h3>Upload Multiple Files</h3> |
|---|
| 135 | |
|---|
| 136 | <div class="setting"> |
|---|
| 137 | <div class="label"><label><MT_TRANS phrase="Upload manifest file:"></label></div> |
|---|
| 138 | <div class="field"> |
|---|
| 139 | <input name="file" type="file" /> |
|---|
| 140 | <p><MT_TRANS phrase="If you have a manifest file and multiple backup files, you first upload the manifest file here. Movable Type will guide you through the restore process."> <a href="#" onclick="return openManual('backup_restore', 'manifest_file')" class="help">?</a><br /></p> |
|---|
| 141 | </div> |
|---|
| 142 | </div> |
|---|
| 143 | |
|---|
| 144 | <p style="text-align: center;"><input type="submit" name="upload_multiple_files" id="upload_multiple_files" value="<MT_TRANS phrase="Upload Multiple Files">" title="<MT_TRANS phrase="Upload Manifest File (m)">" accesskey="m" /></p> |
|---|
| 145 | |
|---|
| 146 | </fieldset> |
|---|
| 147 | |
|---|
| 148 | </form> |
|---|
| 149 | </TMPL_IF> |
|---|
| 150 | </div> |
|---|
| 151 | </TMPL_UNLESS> |
|---|
| 152 | |
|---|
| 153 | <div id="bottom"></div> |
|---|
| 154 | |
|---|
| 155 | </div> |
|---|
| 156 | |
|---|
| 157 | <TMPL_IF NAME=BLOG_ID> |
|---|
| 158 | <br style="clear: both;" /> |
|---|
| 159 | <TMPL_ELSE> |
|---|
| 160 | <TMPL_IF NAME=SYSTEM_OVERVIEW_NAV> |
|---|
| 161 | <br style="clear: both;" /> |
|---|
| 162 | </TMPL_IF> |
|---|
| 163 | </TMPL_IF> |
|---|
| 164 | |
|---|
| 165 | </div> |
|---|
| 166 | |
|---|
| 167 | <div id="copyright"> |
|---|
| 168 | <b>Version <TMPL_VAR NAME=MT_VERSION></b> Copyright © 2001-2007 Six Apart. All Rights Reserved. |
|---|
| 169 | </div> |
|---|
| 170 | |
|---|
| 171 | <div id="dialog-container" style="display: none"> |
|---|
| 172 | <div class="modal-mask opaque"></div> |
|---|
| 173 | <div id="dialog-inner"><iframe frameborder="0" scrolling="auto" src="about:blank" id="dialog-iframe" name="dialog_iframe"></iframe></div> |
|---|
| 174 | </div> |
|---|
| 175 | |
|---|
| 176 | <TMPL_IF NAME=OPEN_DIALOG> |
|---|
| 177 | <script type="text/javascript"> |
|---|
| 178 | <!-- |
|---|
| 179 | openDialog(false, 'dialog_restore_upload', 'magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>&files=<TMPL_VAR NAME=FILES>&assets=<TMPL_VAR NAME=ASSETS>&current_file=<TMPL_VAR NAME=FILENAME>&last=<TMPL_VAR NAME=LAST>&redirect=1;'); |
|---|
| 180 | //--> |
|---|
| 181 | </script> |
|---|
| 182 | </TMPL_IF> |
|---|
| 183 | |
|---|
| 184 | </body> |
|---|
| 185 | </html> |
|---|