rhymix/modules/file/tpl/adminConfig.html
YJSoft 7de923f9a3 php.ini의 파일 업로드 용량을 잘못 불러오는 문제 수정
파일 업로드 용량 체크시 관리자일 경우 ini에서 직접 불러와서 처리하는데 이때 단위 처리가 빠져있어 무조건 MB 단위로 처리되는
버그 수정
스킨과의 호환성을 위해 1048576으로 나눠서 MB 단위로 처리되게 수정하였습니다.
2015-01-12 16:22:46 +09:00

58 lines
3.3 KiB
HTML

<div class="x_page-header">
<h1>{$lang->file_upload} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_config_fileupload" target="_blank">{$lang->help}</a></h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/file/tpl/adminConfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertConfig" action="./" method="post" class="x_form-horizontal section">
<input type="hidden" name="module" value="file" />
<input type="hidden" name="act" value="procFileAdminInsertConfig" />
<input type="hidden" name="xe_validator_id" value="modules/file/tpl/adminConfig/1" />
<div class="x_control-group">
<label class="x_control-label">{$lang->allow_outlink} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_config_file_outlink" target="_blank">{$lang->help}</a></label>
<div class="x_controls">
<label class="x_inline"><input type="radio" name="allow_outlink" id="allow_outlink_y" value="Y" checked="checked"|cond="$config->allow_outlink == 'Y'" /> {$lang->cmd_yes}</label>
<label class="x_inline"><input type="radio" name="allow_outlink" value="N" checked="checked"|cond="$config->allow_outlink == 'N'" /> {$lang->cmd_no}</label>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="allow_outlink_format">{$lang->allow_outlink_format}</label>
<div class="x_controls">
<input type="text" name="allow_outlink_format" id="allow_outlink_format" value="{$config->allow_outlink_format}" />
<p class="x_help-inline">{$lang->about_allow_outlink_format}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="allow_outlink_site">{$lang->allow_outlink_site}</label>
<div class="x_controls">
<textarea name="allow_outlink_site" id="allow_outlink_site" rows="4" cols="42" style="float:left;margin-right:10px">{$config->allow_outlink_site}</textarea>
<p class="x_help-block">{$lang->about_allow_outlink_site}</p>
</div>
</div>
<div class="x_control-group">
<label for="filesize" class="x_control-label">{$lang->allowed_filesize} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_config_file_size" target="_blank">{$lang->help}</a></label>
<div class="x_controls">
<input type="number" id="filesize" name="allowed_filesize" value="{$config->allowed_filesize}" /> MB/{$upload_max_filesize}MB
</div>
</div>
<div class="x_control-group">
<label for="attachSize" class="x_control-label">{$lang->allowed_attach_size} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_config_file_document_attach_limit" target="_blank">{$lang->help}</a></label>
<div class="x_controls">
<input type="number" id="attachSize" name="allowed_attach_size" value="{$config->allowed_attach_size}" /> MB
</div>
</div>
<div class="x_control-group">
<label for="allowedFiletypes" class="x_control-label">{$lang->allowed_filetypes}</label>
<div class="x_controls">
<input id="allowedFiletypes" type="text" name="allowed_filetypes" value="{$config->allowed_filetypes}" />
<p class="x_help-inline">{$lang->about_allowed_filetypes}</p>
</div>
</div>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
</form>