feed.php 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. [UCenter] (C)2001-2099 Comsenz Inc.
  4. This is NOT a freeware, use is subject to license terms
  5. $Id: feed.php 1059 2011-03-01 07:25:09Z monkey $
  6. */
  7. !defined('IN_UC') && exit('Access Denied');
  8. class control extends adminbase {
  9. var $apps = array();
  10. var $operations = array();
  11. function __construct() {
  12. $this->control();
  13. }
  14. function control() {
  15. parent::__construct();
  16. if(!$this->user['isfounder'] && !$this->user['allowadminnote']) {
  17. $this->message('no_permission_for_this_module');
  18. }
  19. $this->load('feed');
  20. $this->load('misc');
  21. $this->apps = $this->cache['apps'];
  22. $this->check_priv();
  23. }
  24. function onls() {
  25. $page = getgpc('page');
  26. $delete = getgpc('delete', 'P');
  27. $num = $_ENV['feed']->get_total_num();
  28. $feedlist = $_ENV['feed']->get_list($page, UC_PPP, $num);
  29. $multipage = $this->page($num, UC_PPP, $page, 'admin.php?m=feed&a=ls');
  30. $this->view->assign('feedlist', $feedlist);
  31. $this->view->assign('multipage', $multipage);
  32. $this->view->display('admin_feed');
  33. }
  34. }
  35. ?>