| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7314|Reply: 1
Collapse the left

Simple hack [sitemap.PHP]

  [Copy link]
Post time: 2013-08-11 18:36
| Show all posts |Read mode
本帖最后由 vincent 于 2013-8-11 19:37 编辑

NAME:sitemap.php

ADD The following content
  1. <?php
  2. define('APPTYPEID', 4);
  3. define('CURSCRIPT', 'sitemap');
  4. require './source/class/class_core.php';
  5. $discuz = & discuz_core::instance();$discuz->cachelist = $cachelist;$discuz->init();$navtitle='Luckt Tail Sitemap';

  6. $metakeywords=$_G['seokeywords']['forum'];
  7. $metadescription=$_G['bbname'].$_G['seodescription']['forum'];

  8. include template('common/header');

  9. echo '<style type="text/css">.newtid{width:100%;float:left}.newtid li{padding-left:2%;font-size: 14px;width:48%;float:left;line-height: 25px;}.newtid li a{color: #036;}.newtit strong a{position: absolute;bottom: 98765px;}.newtid h2{font-size: 16px;line-height: 45px;}</style><a href="'.$_G['siteurl'].'">'.$_G['setting']['bbname'].'</a> New Post</h2><ul class="newtid">';$querys = DB::query("SELECT a.tid,a.subject,a.fid,b.name FROM ".DB::table('forum_thread')." a inner join ".DB::table('forum_forum')." b on a.fid=b.fid ORDER BY a.tid DESC  LIMIT 0,1000");$i=1;while($threadfid = DB::fetch($querys)){echo '<li><em>[<a href="forum.php?mod=forumdisplay&fid='.$threadfid['fid'].'">'.$threadfid['name'].'</a>]</em> <a href="forum.php?mod=viewthread&tid='.$threadfid['tid'].'" target="_blank">'.$threadfid['subject'].'</a></li>';$i++;}echo '</ul>';

  10. include template('common/footer');
  11. ?>
Copy the Code
DEMO:

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Related collections:

  • · Tricks|Threads: 23, Subscribe: 3

 Palestine

Post time: 2013-08-11 22:57
| Show all posts
thx
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-04-24 20:35 GMT+3 , Processed in 0.030560 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list