{* * $Revision: 15342 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="Archive Upload Settings"}

{if isset($status.saved)}

{g->text text="Settings saved successfully"}

{/if}

{g->text text="This module will enable extraction of individual files from a zip archive to add each item to Gallery. You must locate or install an unzip binary on your server, then enter the path to it in the text box below. If you're on a Unix machine, don't forget to make the binary executable (chmod 755 unzip in the right directory should do it)"}

{g->text text="Path to unzip:"} {g->autoComplete element="giFormPath"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupFiles" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete} {if isset($form.error.unzipPath.missing)}
{g->text text="You must enter a path to your unzip binary"}
{/if} {if isset($form.error.unzipPath.exec)}
{g->text text="The path you entered doesn't contain a valid unzip binary."}
{/if} {if isset($form.error.unzipPath.badPath)}
{g->text text="The path you entered isn't a valid path to an unzip binary."}
{/if} {if isset($form.error.unzipPath.notExecutable)}
{g->text text="The unzip binary is not executable. To fix it, run chmod 755 %s" arg1=$form.unzipPath}
{/if}
{if $form.isConfigure} {else} {/if}
{if !empty($ArchiveUploadSiteAdmin.tests)}

{g->text text="unzip binary test results"}

{foreach from=$ArchiveUploadSiteAdmin.tests item=test} {/foreach}
{g->text text="Binary Name"} {g->text text="Pass/Fail"}
{$test.name} {if ($test.success)}
{g->text text="Passed"}
{else}
{g->text text="Failed"}
{if !empty($test.message)} {g->text text="Error messages:"}
{$test.message}
{/if} {/if}
{/if}