Browse Source

disable submit button like textarea when enable_eval not enabled. adds note about it

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@952 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
67f522ab78
  1. 2
      admin/common-zh-simplified-utf-8.lang.php
  2. 2
      admin/common-zh-traditional-utf-8.lang.php
  3. 7
      admin/edit.tpl.php

2
admin/common-zh-simplified-utf-8.lang.php

@ -118,6 +118,8 @@ $strings = array(
=> '删除所选',
'Editing Variable %s'
=> '正在编辑变量 %s',
'Set %s in config to enable'
=> '请在配置文件中设置 %s 启用本功能',
''
=> '',
);

2
admin/common-zh-traditional-utf-8.lang.php

@ -118,6 +118,8 @@ $strings = array(
=> '移除所选',
'Editing Variable %s'
=> '正在编辑变量 %s',
'Set %s in config to enable'
=> '請在配置文件中設置 %s 啟用本功能',
''
=> '',
);

7
admin/edit.tpl.php

@ -7,7 +7,12 @@ $h_value = htmlspecialchars($value);
<fieldset>
<legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend>
<textarea name="value" style="width: 100%; height: 200px; overflow-y: auto" <?php echo $editable ? "" : "disabled=disabled"; ?>><?php echo $h_value; ?></textarea><br>
<input type="submit">
<input type="submit" <?php echo $editable ? "" : "disabled=disabled"; ?>>
<?php
if (!$editable) {
echo sprintf(_T("Set %s in config to enable"), "\$config['enable_eval'] = true");
}
?>
</fieldset>
</form>
<?php include("footer.tpl.php"); ?>

Loading…
Cancel
Save