| 1 | <mt:setvarblock name="page_title"><__trans phrase="Configuration File"></mt:setvarblock> |
|---|
| 2 | <mt:setvar name="complete" value="1"> |
|---|
| 3 | <mt:include name="../cms/include/chromeless_header.tmpl"> |
|---|
| 4 | |
|---|
| 5 | <script type="text/javascript"> |
|---|
| 6 | /* <![CDATA[ */ |
|---|
| 7 | function go(mode) { |
|---|
| 8 | var f = document.forms[0]; |
|---|
| 9 | f['__mode'].value = mode; |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | function toggleConfig() { |
|---|
| 13 | var manually = getByID('manually'); |
|---|
| 14 | var retry = getByID('retry'); |
|---|
| 15 | var automatic = getByID('automatic'); |
|---|
| 16 | if (manually) { |
|---|
| 17 | if (manually.checked == true) { |
|---|
| 18 | retry.style.display = 'block'; |
|---|
| 19 | automatic.style.display = 'none'; |
|---|
| 20 | } else { |
|---|
| 21 | retry.style.display = 'none'; |
|---|
| 22 | automatic.style.display = 'block'; |
|---|
| 23 | } |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
| 26 | /* ]]> */ |
|---|
| 27 | </script> |
|---|
| 28 | |
|---|
| 29 | <form method="post"> |
|---|
| 30 | <input type="hidden" name="__mode" value="" /> |
|---|
| 31 | <input type="hidden" name="step" value="seed" /> |
|---|
| 32 | <input type="hidden" name="config" value="<mt:var name="config" escape="html">" /> |
|---|
| 33 | <input type="hidden" name="set_static_uri_to" id="set_static_uri_to" value="<mt:var name=static_uri escape="html">"> |
|---|
| 34 | |
|---|
| 35 | <mt:if name="file_not_found"> |
|---|
| 36 | <mtapp:statusmsg |
|---|
| 37 | id="file_not_found" |
|---|
| 38 | class="error"> |
|---|
| 39 | <__trans phrase="The [_1] configuration file can't be located." params="<mt:var name=MT_PRODUCT_NAME>"> |
|---|
| 40 | </mtapp:statusmsg> |
|---|
| 41 | <p><em><__trans phrase="Please use the configuration text below to create a file named 'mt-config.cgi' in the root directory of [_1] (the same directory in which mt.cgi is found)." params="<mt:var name=MT_PRODUCT_NAME>"></em></p> |
|---|
| 42 | <mt:else> |
|---|
| 43 | <mt:unless name="config_created"> |
|---|
| 44 | <mtapp:statusmsg |
|---|
| 45 | id="config_error" |
|---|
| 46 | class="error"> |
|---|
| 47 | <__trans phrase="The wizard was unable to save the [_1] configuration file." params="<mt:var name=MT_PRODUCT_NAME>"> |
|---|
| 48 | </mtapp:statusmsg> |
|---|
| 49 | |
|---|
| 50 | <p><em><__trans phrase="Confirm your [_1] home directory (the directory that contains mt.cgi) is writable by your web server and then click 'Retry'." params="<mt:var name=MT_PRODUCT_NAME>"></em></p> |
|---|
| 51 | <mt:else> |
|---|
| 52 | <mtapp:statusmsg |
|---|
| 53 | id="config_success" |
|---|
| 54 | class="success"> |
|---|
| 55 | <__trans phrase="Congratulations! You've successfully configured [_1]." params="<mt:var name=MT_PRODUCT_NAME>"> |
|---|
| 56 | </mtapp:statusmsg> |
|---|
| 57 | |
|---|
| 58 | <p><__trans phrase="Your configuration settings have been written to the following file:"></p> |
|---|
| 59 | <div class="mt-config-file-path"> |
|---|
| 60 | <mt:var name="config_file"> |
|---|
| 61 | </div> |
|---|
| 62 | <p><__trans phrase="To reconfigure the settings, click the 'Back' button below."></p> |
|---|
| 63 | </mt:unless> |
|---|
| 64 | </mt:if> |
|---|
| 65 | |
|---|
| 66 | <mt:unless name="config_created"> |
|---|
| 67 | <p id="config_settings_toggle"><a href="javascript:void(0)" onclick="showByID('config_settings'); hideByID('config_settings_toggle')"><__trans phrase="Show the mt-config.cgi file generated by the wizard"></a></p> |
|---|
| 68 | </mt:unless> |
|---|
| 69 | |
|---|
| 70 | <p id="config_settings" style="display: none;"> |
|---|
| 71 | <textarea style="width: 100%; height: 300px; font-family: monospace" onclick="this.select()"><mt:include name="mt-config.tmpl"></textarea> |
|---|
| 72 | </p> |
|---|
| 73 | |
|---|
| 74 | <mt:unless name="config_created"> |
|---|
| 75 | <p> |
|---|
| 76 | <input id="manually" class="cb" type="checkbox" name="manually" value="1" onclick="toggleConfig()" <mt:if name="manually">checked="checked"</mt:if>> <label for="manually"><__trans phrase="I will create the mt-config.cgi file manually."></label> |
|---|
| 77 | </p> |
|---|
| 78 | </mt:unless> |
|---|
| 79 | |
|---|
| 80 | <p> |
|---|
| 81 | <div id="automatic" <mt:if name="FILE_NOT_FOUND">style="display:none;"</mt:if>> |
|---|
| 82 | <div class="left"> |
|---|
| 83 | <input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('previous_step')" /> |
|---|
| 84 | </div> |
|---|
| 85 | <div class="right"> |
|---|
| 86 | <mt:unless name=CONFIG_CREATED> |
|---|
| 87 | <input name="retry" type="submit" class="sb" value="<__trans phrase="Retry">" onclick="go('retry')" /> |
|---|
| 88 | <mt:else> |
|---|
| 89 | <input name="continue" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="document.location.href='<mt:var name="mt_script">'; return false" /> |
|---|
| 90 | </mt:unless> |
|---|
| 91 | </div> |
|---|
| 92 | </div> |
|---|
| 93 | <div id="retry" <mt:unless name="file_not_found">style="display:none;"</mt:unless>> |
|---|
| 94 | <div class="left"> |
|---|
| 95 | <input type="submit" class="sb" value="<__trans phrase="Back">" onclick="go('retry')" /> |
|---|
| 96 | </div> |
|---|
| 97 | <div class="right"> |
|---|
| 98 | <input name="retry" type="submit" class="sb" value="<__trans phrase="Continue">" onclick="go('retry')" /> |
|---|
| 99 | </div> |
|---|
| 100 | </div> |
|---|
| 101 | </p> |
|---|
| 102 | |
|---|
| 103 | </form> |
|---|
| 104 | |
|---|
| 105 | <mt:include name="../cms/include/chromeless_footer.tmpl"> |
|---|