{* * $Revision: 16235 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *}
{if $TestResults.isapiInfo != $TestResults.trueIsapiInfo} {/if} {if $TestResults.isapiInfo != REWRITE_STATUS_OK} {/if} {if $TestResults.httpdini != REWRITE_STATUS_OK} {/if}

{g->text text="IIS ISAPI_Rewrite Support"}

{g->text text="Testing if the server supports IIS ISAPI_Rewrite."}

{if $TestResults.isapiInfo == REWRITE_STATUS_OK}

{g->text text="Success"}

{else}

{g->text text="Error"}

{/if}

{g->text text="The current status may not be accurate, you have forced the test to pass."}

{g->text text="How to setup ISAP Rewrite"}

{g->text text="In order to make the test pass you need to add the test rewrite rule in your httpd.ini:"}

{$TestResults.contents}

{g->text text="If you add this at the bottom, please make sure that there's at least one empty line below the section"}

{g->text text="Test ISAPI Rewrite Manually"}

{g->text text="Gallery did not detect ISAPI Rewrite, please run this test yourself to verify."}

{g->text text="Force"} {g->text text="Test"}
{g->text text="ISAPI Rewrite Test"}

{g->text text="If the test gives you a page that says PASS_ISAPI_REWRITE you are good to go."}

{g->text text="ISAPI_Rewrite httpd.ini file"}

{g->text text="Testing if Gallery can write to the httpd.ini file."}

{if $TestResults.httpdini == REWRITE_STATUS_OK}

{g->text text="Success"}

{else}

{g->text text="Error"}

{/if}
{if $TestResults.httpdini == REWRITE_STATUS_HTTPDINI_MISSING}

{g->text text="Please configure the correct location of ISAPI_Rewrite httpd.ini."}

{/if} {if $TestResults.httpdini == REWRITE_STATUS_HTTPDINI_CANT_READ}

{g->text text="Please make sure Gallery can read the httpd.ini file"}

{/if} {if $TestResults.httpdini == REWRITE_STATUS_HTTPDINI_CANT_WRITE}

{g->text text="Please make sure Gallery can write to the httpd.ini file"}

{/if}