mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 16:59:55 +09:00
document모듈에 20개의 확장 필드 추가 및 게시판모듈에서 이를 관리자가 설정하여 사용할 수 있게 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1985 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
810db4b33a
commit
409d82fb49
40 changed files with 1027 additions and 13 deletions
|
|
@ -196,6 +196,20 @@
|
|||
unset($extra_var->act);
|
||||
unset($extra_var->page);
|
||||
unset($extra_var->board_name);
|
||||
unset($extra_var->module_srl);
|
||||
|
||||
// 확장변수(20개로 제한된 고정 변수) 체크
|
||||
$user_defined_extra_vars = array();
|
||||
foreach($extra_var as $key => $val) {
|
||||
if(substr($key,0,11)!='extra_vars_') continue;
|
||||
preg_match('/^extra_vars_([0-9]+)_(.*)$/i', $key, $matches);
|
||||
if(!$matches[1] || !$matches[2]) continue;
|
||||
|
||||
$user_defined_extra_vars[$matches[1]]->{$matches[2]} = $val;
|
||||
unset($extra_var->{$key});
|
||||
}
|
||||
for($i=1;$i<=20;$i++) if(!$user_defined_extra_vars[$i]->name) unset($user_defined_extra_vars[$i]);
|
||||
$extra_var->extra_vars = $user_defined_extra_vars;
|
||||
|
||||
// module_srl이 넘어오면 원 모듈이 있는지 확인
|
||||
if($args->module_srl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue