hook.class.php 994 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * This is NOT a freeware, use is subject to license terms
  4. * From www.1314study.com
  5. */
  6. if(!defined('IN_DISCUZ')) {
  7. exit('Access Denied');
  8. }
  9. class plugin_study_seo_sitemap {
  10. function global_footerlink(){
  11. global $_G;
  12. $return = '';
  13. $splugin_setting = $_G['cache']['plugin']['study_seo_sitemap'];
  14. $splugin_lang = lang('plugin/study_seo_sitemap');
  15. if($splugin_setting['show_url_radio']){
  16. if($splugin_setting['rewrite_radio']){
  17. $return = '<span class="pipe">|</span><a href="sitemap.php" >'.$splugin_lang['slang_003'].'</a>';
  18. }else{
  19. $return = '<span class="pipe">|</span><a href="plugin.php?id=study_seo_sitemap" >'.$splugin_lang['slang_003'].'</a>';
  20. }
  21. }
  22. if(CURSCRIPT == 'plugin'){
  23. list($identifier, $module) = explode(':', $_GET['id']);
  24. if($identifier == 'study_seo_sitemap'){
  25. //show copyright
  26. if($splugin_setting['copyright_radio'] && !$_G['uid']){
  27. $return .= $splugin_lang['copyright'];
  28. }
  29. }
  30. }
  31. return $return;
  32. }
  33. }
  34. ?>