Ignore:
Timestamp:
02/12/13 11:19:57 (7 years ago)
Author:
plg
Message:

merge r20712 from branch 2.4 to trunk

bug 2844: increase security on LocalFiles Editor, filter on files to edit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/template/admin.tpl

    r11362 r20714  
    3131<div id="LocalFilesEditor"> 
    3232 
    33 <input type="hidden" value="{$zone_edit.EDITED_FILE}" name="edited_file"/> 
     33{if isset($theme)} 
     34<input type="hidden" value="{$theme}" name="theme"> 
     35{/if} 
     36 
     37{if isset($language)} 
     38<input type="hidden" value="{$language}" name="language"> 
     39{/if} 
     40 
     41{if isset($template)} 
     42<input type="hidden" value="{$template}" name="template"> 
     43{/if} 
     44 
    3445 
    3546{if isset ($create_tpl)} 
     
    5364 
    5465{if isset ($css_lang_tpl)} 
    55 <select name="file_to_edit"> 
    56 {foreach from=$css_lang_tpl.OPTIONS item=theme key=value} 
    57   <option value="{$value}" {if $value == $css_lang_tpl.SELECTED}selected="selected"{/if} {if is_numeric($value)}disabled="disabled"{/if}>{$theme}</option> 
    58 {/foreach} 
     66<select name="{$css_lang_tpl.SELECT_NAME}"> 
     67{html_options options=$css_lang_tpl.OPTIONS selected=$css_lang_tpl.SELECTED} 
    5968</select> 
    60  
    6169 
    6270<input class="submit" type="submit" value="{'locfiledit_edit'|@translate}" name="edit" /> 
    6371<br><br> 
    64   {if isset ($css_lang_tpl.NEW_FILE_URL)} 
    65   <span class="{$css_lang_tpl.NEW_FILE_CLASS}"> 
    66   <a href="{$css_lang_tpl.NEW_FILE_URL}">{'locfiledit_new_tpl'|@translate}</a> 
    67   </span> 
    68   {/if} 
     72{/if} 
     73 
     74{if isset ($css_lang_tpl.NEW_FILE_URL)} 
     75<span class="{$css_lang_tpl.NEW_FILE_CLASS}"> 
     76<a href="{$css_lang_tpl.NEW_FILE_URL}">{'locfiledit_new_tpl'|@translate}</a> 
     77</span> 
    6978{/if} 
    7079 
Note: See TracChangeset for help on using the changeset viewer.