@@ 423-432 (lines=10) @@ | ||
420 | $xoops->loadLanguage('blocks', $this->getVar('dirname')); |
|
421 | include_once $this->xoops_root_path . '/modules/' . $this->getVar('dirname') . '/blocks/' |
|
422 | . $this->getVar('func_file'); |
|
423 | if (function_exists($edit_func)) { |
|
424 | // execute the function |
|
425 | $options = explode('|', $this->getVar('options')); |
|
426 | $edit_form = $edit_func($options); |
|
427 | if (!$edit_form) { |
|
428 | return false; |
|
429 | } |
|
430 | } else { |
|
431 | return false; |
|
432 | } |
|
433 | return $edit_form; |
|
434 | } else { |
|
435 | return false; |
|
@@ 483-492 (lines=10) @@ | ||
480 | $xoops->loadLocale($this->getVar('dirname')); |
|
481 | include_once $func_file; |
|
482 | ||
483 | if (function_exists($show_func)) { |
|
484 | // execute the function |
|
485 | $options = explode('|', $this->getVar('options')); |
|
486 | $block = $show_func($options); |
|
487 | if (!$block) { |
|
488 | return false; |
|
489 | } |
|
490 | } else { |
|
491 | return false; |
|
492 | } |
|
493 | } else { |
|
494 | // it is a custom block, so just return the contents |
|
495 | $block['content'] = $this->getContent('s', $this->getVar('c_type')); |