block_blank.php 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: block_blank.php 27543 2012-02-03 08:56:21Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('commonblock_html', 'class/block/html');
  12. class block_blank extends commonblock_html {
  13. function block_blank() {}
  14. function name() {
  15. return lang('blockclass', 'blockclass_html_script_blank');
  16. }
  17. function getsetting() {
  18. global $_G;
  19. $settings = array(
  20. 'content' => array(
  21. 'title' => 'blank_content',
  22. 'type' => 'mtextarea'
  23. )
  24. );
  25. return $settings;
  26. }
  27. function getdata($style, $parameter) {
  28. require_once libfile('function/home');
  29. $return = getstr($parameter['content'], '', 1, 0, 0, 1);
  30. return array('html' => $return, 'data' => null);
  31. }
  32. }
  33. ?>