{* * $Revision: 15808 $ * 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="Add Item Settings"}

{if isset($status.saved)}

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

{/if}

{g->text text="Enable"}

{g->text text="Add From Web"}
{g->text text="Add From Server"}

{g->text text="Security Warning"}

{g->text text='"Add From Web" can be abused to attack other websites in your name. For the attacked party it would seem as if you, the administrator of this Gallery, deliberately attacked their website because your Gallery acts on behalf of your users. Therefore it is recommended to enable "Add From Web" only for trusted users.'}

{g->text text="Local Server Upload Paths"}

{g->text text="Specify the legal directories on the local server where a user can store files and then upload them into Gallery using the Upload from Local Server feature. The paths you enter here and all the files and directories under those paths will be available to any Gallery user who has upload privileges, so you should limit this to directories that won't contain sensitive data (eg. /tmp or /usr/ftp/incoming)"}

{foreach from=$ItemAddSiteAdmin.localServerDirList key=index item=dir} {/foreach}
{g->text text="Path"} {g->text text="Action"}
{$dir|escape} {g->text text="remove"}
{g->autoComplete element="newDir"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupDirectories" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete}
{if isset($form.error.uploadLocalServer.newDir.missing)}
{g->text text="You must enter a directory to add."}
{/if} {if isset($form.error.uploadLocalServer.newDir.restrictedByOpenBaseDir)}
{capture name="open_basedir"} {g->text text="open_basedir documentation"} {/capture} {g->text text="Your webserver is configured to prevent you from accessing that directory. Please refer to the %s and consult your webserver administrator." arg1=$smarty.capture.open_basedir}
{/if} {if isset($form.error.uploadLocalServer.newDir.notReadable)}
{g->text text="The webserver does not have permissions to read that directory."}
{/if} {if isset($form.error.uploadLocalServer.newDir.notADirectory)}
{g->text text="The path you specified is not a valid directory."}
{/if}