{* * $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="Transfer files that are already on your server into your Gallery. The files must already have been uploaded to your server some other way (like FTP) and must be placed in a directory where they are accessibly by any element on the server. If you're on Unix this means that the files and the directory the files are in should have modes of at least 755."}

{if empty($ItemAddFromServer.localServerDirList)}
{g->text text="For security purposes, you can't use this feature until the Gallery Site Administrator configures a set of legal upload directories."} {if $ItemAdd.isAdmin} {g->text text="site admin"} {/if}
{else} {if empty($form.localServerFiles)}

{g->text text="Server Path"}

{if isset($form.error.pathComponent.missing)}
{g->text text="You must enter a directory."}
{/if} {if isset($form.error.pathComponent.invalid)}
{g->text text="The directory you entered is invalid. Make sure that the directory is readable by all users."}
{/if} {if isset($form.error.pathComponent.illegal)}
{g->text text="The directory you entered is illegal. It must be a sub directory of one of the directories listed below."}
{/if} {if isset($form.error.pathComponent.collision)}
{g->text text="An item with the same name already exists."}
{/if}
{g->text text="Legal Directories"} {if $ItemAdd.isAdmin} {g->text text="modify"} {/if} {if !empty($ItemAddFromServer.recentPaths)} {g->text text="Recent Directories"} {/if} {capture name="submitLinks"} {/capture} {else} {* {if empty($form.localServerFiles)} *} {capture name="path"}{strip} {foreach name="pathElements" from=$ItemAddFromServer.pathElements key=idx item=element} {if $idx>1}{$ItemAddFromServer.pathSeparator}{/if} {if ($element.legal && !$smarty.foreach.pathElements.last)} {$element.name|escape} {else} {$element.name|escape} {/if} {/foreach} {/strip}{/capture} {g->text text="Directory: %s" arg1=$smarty.capture.path}
{if $ItemAddFromServer.showSymlink} {/if} {foreach name=fileIndex from=$form.localServerFiles item=file} {assign var=key value=$file.fileKey|escape} {if ($file.type == 'file')} {if $ItemAddFromServer.showSymlink} {/if} {else} {if $ItemAddFromServer.showSymlink} {/if} {/if} {/foreach} {if $ItemAddFromServer.showSymlink} {/if}
{g->text text="File name"} {g->text text="Type"} {g->text text="Size"} {g->text text="Use Symlink"}
{$file.itemType} {g->text one="%d byte" many="%d bytes" count=$file.stat.size arg1=$file.stat.size} {if $file.legal}{strip} {if $file.fileName == ".."} « {g->text text="Parent Directory"} » {else} {$file.fileName|escape} {/if} {/strip}{else} {$file.fileName|escape} {/if} {g->text text="Directory"}  

{g->text text="Copy base filenames to:"}
   

{capture name="submitLinks"} {/capture} {assign var="showOptions" value="true"} {/if} {* {if !empty($form.localServerFiles)} *} {/if} {* {if empty($ItemAddFromServer.localServerDirList)} *}
{if isset($showOptions)} {* Include our extra ItemAddOptions *} {foreach from=$ItemAdd.options item=option} {include file="gallery:`$option.file`" l10Domain=$option.l10Domain} {/foreach} {/if} {if !empty($smarty.capture.submitLinks)}
{$smarty.capture.submitLinks}
{/if}