root/branches/release-40/tmpl/cms/restore.tmpl @ 2564

Revision 2564, 3.1 kB (checked in by fumiakiy, 18 months ago)

Do not proceed restoring from the backup which was from *different* version of MT (not just newer, but different version would not be allowed). BugId:80102

Line 
1<mt:setvarblock name="page_title"><__trans phrase="Restore from a Backup"></mt:setvarblock>
2<$mt:setvar name="position_actions_bottom" value="1"$>
3<mt:setvar name="restore" value="1">
4<MTSetVarBlock name="content_nav">
5    <mt:include name="include/tools_content_nav.tmpl">
6</MTSetVarBlock>
7
8<mt:include name="include/header.tmpl">
9
10<mt:if name="error">
11    <mtapp:statusmsg
12        id="generic-error"
13        class="error">
14        <mt:var name="error">
15    </mtapp:statusmsg>
16</mt:if>
17
18<div id="restore-panel">
19    <mt:if name="missing_sax">
20        <mtapp:statusmsg
21            id="missing-sax"
22            class="error">
23            <__trans phrase="Perl module XML::SAX and/or its dependencies are missing - Movable Type can not restore the system without it.">
24        </mtapp:statusmsg>
25    <mt:else>
26    <form method="post" enctype="multipart/form-data" action="<mt:var name="script_url">">
27        <input type="hidden" name="__mode" value="restore" />
28        <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
29        <mtapp:setting
30            id="file"
31            label="<__trans phrase="Backup file">"
32            hint="<__trans phrase="If your backup file is located on your computer, you can upload it here.  Otherwise, Movable Type will automatically look in the 'import' folder of your Movable Type directory.">"
33            help_page="backup_restore"
34            help_section="source_file">
35                <input name="file" type="file" size="50" />
36        </mtapp:setting>
37        <mt:ignore><!-- disable the feature to ignore schema conflict.
38        <mtapp:setting
39            id="ignore_schema_conflict"
40            label="<__trans phrase="Options">"
41            show_label="0"
42            hint="<__trans phrase="Check this and files backed up from newer versions can be restored to this system.  NOTE: Ignoring Schema Version can damage Movable Type permanently.">">
43                <input name="ignore_schema_conflict" id="ignore_schema_conflict" type="checkbox" />
44                <label for="ignore_schema_conflict"><__trans phrase="Ignore schema version conflicts"></label>
45        </mtapp:setting>
46        --></mt:ignore>
47        <mtapp:setting
48            id="overwrite_global_templates"
49            label="<__trans phrase="Options">"
50            show_label="0"
51            hint="<__trans phrase="Check this and existing global templates will be overwritten from the backup file.">">
52                <input name="overwrite_global_templates" id="overwrite_global_templates" type="checkbox" />
53                <label for="overwrite_global_templates"><__trans phrase="Overwrite global templates."></label>
54        </mtapp:setting>
55        <mt:setvarblock name="action_buttons">
56            <button
57                type="submit"
58                accesskey="r"
59                title="<__trans phrase="Restore (r)">"
60                class="primary-button"
61                ><__trans phrase="Restore"></button>
62        </mt:setvarblock>
63        <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
64    </form>
65    </mt:if>
66</div>
67<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.