block_groupthreadspecial.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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_groupthreadspecial.php 23608 2011-07-27 08:10:07Z cnteacher $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_groupthread', 'class/block/group');
  12. class block_groupthreadspecial extends block_groupthread {
  13. function block_groupthreadspecial() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'groupthread_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'special' => array(
  22. 'title' => 'groupthread_special',
  23. 'type' => 'mcheckbox',
  24. 'value' => array(
  25. array(1, 'groupthread_special_1'),
  26. array(2, 'groupthread_special_2'),
  27. array(3, 'groupthread_special_3'),
  28. array(4, 'groupthread_special_4'),
  29. array(5, 'groupthread_special_5'),
  30. ),
  31. 'default' => array(0)
  32. ),
  33. 'rewardstatus' => array(
  34. 'title' => 'groupthread_special_reward',
  35. 'type' => 'mradio',
  36. 'value' => array(
  37. array(0, 'groupthread_special_reward_0'),
  38. array(1, 'groupthread_special_reward_1'),
  39. array(2, 'groupthread_special_reward_2')
  40. ),
  41. 'default' => 0,
  42. ),
  43. 'picrequired' => array(
  44. 'title' => 'groupthread_picrequired',
  45. 'type' => 'radio',
  46. 'value' => '0'
  47. ),
  48. 'gviewperm' => array(
  49. 'title' => 'groupthread_gviewperm',
  50. 'type' => 'mradio',
  51. 'value' => array(
  52. array('0', 'groupthread_gviewperm_only_member'),
  53. array('1', 'groupthread_gviewperm_all_member')
  54. ),
  55. 'default' => '1'
  56. ),
  57. 'titlelength' => array(
  58. 'title' => 'groupthread_titlelength',
  59. 'type' => 'text',
  60. 'default' => 40
  61. ),
  62. 'summarylength' => array(
  63. 'title' => 'groupthread_summarylength',
  64. 'type' => 'text',
  65. 'default' => 80
  66. ),
  67. );
  68. }
  69. function name() {
  70. return lang('blockclass', 'blockclass_groupthread_script_groupthreadspecial');
  71. }
  72. }
  73. ?>