spacecp_plugin.php 762 B

123456789101112131415161718192021222324252627
  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: spacecp_plugin.php 33362 2013-05-31 09:31:22Z andyzheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $pluginkey = 'spacecp'.($op ? '_'.$op : '');
  12. $navtitle = $_G['setting']['plugins'][$pluginkey][$_GET['id']]['name'];
  13. $_GET['id'] = $_GET['id'] ? preg_replace("/[^A-Za-z0-9_:]/", '', $_GET['id']) : '';
  14. include pluginmodule($_GET['id'], $pluginkey);
  15. if(!$op || $op == 'credit') {
  16. include template('home/spacecp_plugin');
  17. } elseif($op == 'profile') {
  18. $defaultop = '';
  19. $profilegroup = C::t('common_setting')->fetch('profilegroup', true);
  20. $operation = 'plugin';
  21. include template('home/spacecp_profile');
  22. }
  23. ?>