function adminheader()
{
    ?>
  
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
	<html xmlns="http://www.w3.org/1999/xhtml" >
	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>open - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
    makeurl('controlpanel/css/admin.css');
    ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		
	</head>
	
	<?php 
}
Ejemplo n.º 2
0
 function send($sn, $subject, $content)
 {
     $this->order_sn = $sn;
     $this->subject = $subject;
     $this->content = $content;
     $this->service = "{$this->mode}/index.php";
     $this->notify_url = "{$this->mode}/{$this->by}.php";
     if (!is_dir(PAY_DIR . $this->mode) || !is_file(PAY_DIR . $this->service) || !is_file(PAY_DIR . $this->notify_url)) {
         $this->message(array('title' => '调用错误', 'content' => '指定支付接口不在在或不完整!'));
     }
     if (!$this->getData()) {
         $this->message(array('title' => '调用错误', 'content' => '获取指定参数失败!'));
     }
     $this->notify_url = PAY_PATH . $this->notify_url;
     $this->return_url = PAY_PATH . "{$this->mode}/return_{$this->by}.php";
     require_once PAY_DIR . $this->service;
     if (!function_exists('makeurl')) {
         $this->message(array('title' => '调用错误', 'content' => '未定义指定支付接口函数 makeurl!'));
     }
     if (!($url = makeurl($this))) {
         $this->message(array('title' => '调用错误', 'content' => '指定支付接口函数 makeurl 返回网关地址失败!'));
     }
     ob_end_clean();
     $GLOBALS['gzipenable'] ? ob_start('ob_gzhandler') : ob_start();
     $this->show($url);
 }
Ejemplo n.º 3
0
 function ac_index()
 {
     global $cfg_soft_lang;
     $row = 8;
     //推荐问题
     $digests = $this->question->get_digests(7);
     //待解决的问题
     $notoks = $this->question->get_all('status=0', 'ORDER BY disorder DESC, dateline DESC', $row);
     //新解决的问题
     $solutions = $this->question->get_all('status=1', 'ORDER BY solvetime DESC', $row);
     //高分悬赏问题
     $rewards = $this->question->get_all('status=0', 'ORDER BY reward DESC', $row);
     //获取问题数
     $solvenum = $this->question->get_total();
     //首页幻灯片
     if (file_exists(DEDEASK . "/data/cache/slide.inc")) {
         require_once DEDEASK . "/data/cache/slide.inc";
         if ($cfg_soft_lang == 'utf-8') {
             $row = AutoCharset(unserialize(utf82gb($data)));
         } else {
             $row = unserialize($data);
         }
     }
     //处理链接地址
     if ($GLOBALS['cfg_ask_rewrite'] == 'Y') {
         $digests = makerewurl($digests, 'id');
         $notoks = makerewurl($notoks, 'id');
         $solutions = makerewurl($solutions, 'id');
         $rewards = makerewurl($rewards, 'id');
     } else {
         $digests = makeurl($digests, 'id');
         $notoks = makeurl($notoks, 'id');
         $solutions = makeurl($solutions, 'id');
         $rewards = makeurl($rewards, 'id');
     }
     //设定变量值
     $GLOBALS['row'] = $row;
     $GLOBALS['digests'] = $digests;
     $GLOBALS['notoks'] = $notoks;
     $GLOBALS['rewards'] = $rewards;
     $GLOBALS['solutions'] = $solutions;
     $GLOBALS['solvenum'] = $solvenum;
     //载入模板
     $this->SetTemplate('index.htm');
     $this->Display();
 }
Ejemplo n.º 4
0
 $avatarfeedstr = '<ul>';
 $query = $_SGLOBAL['db']->query("SELECT * FROM " . tname('feed') . " WHERE uid='{$updateuid}' AND friend='0' ORDER BY dateline DESC LIMIT 0,{$num}");
 while ($value = $_SGLOBAL['db']->fetch_array($query)) {
     if (ckfriend($value['uid'], $value['friend'], $value['target_ids'])) {
         if (!$updatetime) {
             $updatetime = $_SGLOBAL['timestamp'] - $value['dateline'];
         }
         $havefeed = true;
         realname_set($value['uid'], $value['username']);
         $value = mkfeed($value);
         if (!$value['appid']) {
             $src = "http://appicon.manyou.com/icons/{$value['icon']}";
         } else {
             $src = $siteurl . 'image/icon/' . $value['icon'] . '.gif';
         }
         $avatarfeedstr .= '<li><img class="appicon" src="' . $src . '" /> ' . makeurl($value['title_template']) . '</li>';
     }
 }
 $avatarfeedstr .= '</ul>';
 if (!$havefeed) {
     $avatarfeedstr = '';
 }
 if ($_GET['pagetype'] == 'profile' && $viewpro) {
     //统计相应的数值
     $albumnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('album') . " WHERE uid='{$updateuid}'"), 0);
     $doingnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('doing') . " WHERE uid='{$updateuid}'"), 0);
     $blognum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('blog') . " WHERE uid='{$updateuid}'"), 0);
     $threadnum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('thread') . " WHERE uid='{$updateuid}'"), 0);
     $tagspacenum = $_SGLOBAL['db']->result($_SGLOBAL['db']->query("SELECT COUNT(*) FROM " . tname('tagspace') . " WHERE uid='{$updateuid}'"), 0);
     $contstr = '';
     if ($albumnum) {
Ejemplo n.º 5
0
         if ($cur_topic['has_posted'] == $pun_user['id']) {
             $subject = '<strong>&middot;</strong>&nbsp;' . $subject;
         } else {
             $subject = '&nbsp;&nbsp;' . $subject;
         }
     }
 } else {
     // No poll
     //var_dump( $cur_topic['t.subject'] );
     if ($cur_topic['moved_to'] != 0) {
         $subject = $lang_forum['Moved'] . ': <a href="' . makeurl("t", $cur_topic['moved_to'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
     } else {
         if ($cur_topic['closed'] == '0') {
             $subject = '<a href="' . makeurl("t", $cur_topic['id'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
         } else {
             $subject = '<a href="' . makeurl("t", $cur_topic['id'], $cur_topic['subject']) . '">' . pun_htmlspecialchars($cur_topic['subject']) . '</a> <span class="byuser">' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($cur_topic['poster']) . '</span>';
             $icon_text = $lang_common['Closed icon'];
             $item_status = 'iclosed';
         }
     }
     if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null) {
         $icon_text .= ' ' . $lang_common['New icon'];
         $item_status .= ' inew';
         $icon_type = 'icon inew';
         $subject = '<strong>' . $subject . '</strong>';
         $subject_new_posts = '<span class="newtext">[&nbsp;<a href="viewtopic.php?id=' . $cur_topic['id'] . '&amp;action=new" title="' . $lang_common['New posts info'] . '">' . $lang_common['New posts'] . '</a>&nbsp;]</span>';
     } else {
         $subject_new_posts = null;
     }
     // Should we display the dot or not? :)
     if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1') {
Ejemplo n.º 6
0
if(!defined('IN_UCHOME')) {
	exit('Access Denied');
}

$wherearr = $doinglist = array();
$sql = '';
$uid = !empty($_GET['uid']) ? trim($_GET['uid']) : '';

$mood = !empty($_GET['mood']) ? intval($_GET['mood']) : 0;
$start = !empty($_GET['start']) ? intval($_GET['start']) : 0;
$limit = !empty($_GET['limit']) ? intval($_GET['limit']) : 10;

$uids = getdotstring($uid, 'int');
if($uids) $wherearr[] = 'uid IN ('.$uids.')';
if($mood)  $wherearr[] = 'mood>\'0\'';

if($wherearr)	$sql = 'WHERE '.implode(' AND ', $wherearr);

$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('doing')." $sql  ORDER BY dateline DESC LIMIT $start,$limit");
while($value = $_SGLOBAL['db']->fetch_array($query)) {
	$value['message'] = makeurl($value['message']);
	$value['userlink'] = $siteurl.'space.php?uid='.$value['uid'];
	$value['link'] = $siteurl.'space.php?uid='.$value['uid'].'&do=doing&doid='.$value['doid'];
	$value['photo'] = ckavatar($value['uid']) ? avatar($value['uid'], 'small',true) : UC_API.'/images/noavatar_small.gif';
	$value['dateline'] = sgmdate('m-d H:i', $value['dateline']);
	$value = sstripslashes($value);
	$doinglist[] = $value;
}

echo serialize($doinglist);
?>
Ejemplo n.º 7
0
		  </div><!-- end #topTitle -->
		 
		  <div id="topNav">
		  	<!--Site Functions Navigation-->
				<ul>
					<li><a href="<?php 
makeurl('index.php');
?>
">Home</a> </li>
					<!-- <li><a href="<?php 
makeurl('');
?>
" id="current">Sign-in/openID</a></li> -->
					<!-- <li><a href="<?php 
makeurl('register.php');
?>
" >Register</a> </li>  -->
				    <li><a href="<?php 
makeurl('help.php');
?>
">Help</a></li>
				</ul>
			
			<h2 class="clear">Welcome to lifestylelinking</h2>         
			
		  </div><!-- end #topNav -->
	
	 </div><!-- end #header -->

	   
	 
Ejemplo n.º 8
0
    $wherearr[] = "uid IN ('0',{$space['feedfriend']})";
}
if ($wherearr) {
    $sql = 'WHERE ' . implode(' AND ', $wherearr);
}
$feed_list = array();
$query = $_SGLOBAL['db']->query("SELECT * FROM " . tname('feed') . " {$sql} ORDER BY dateline DESC LIMIT {$start},{$limit}");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
    if (ckfriend($value['uid'], $value['friend'], $value['target_ids'])) {
        realname_set($value['uid'], $value['username']);
        $feed_list[] = $value;
    }
}
//КµГыґ¦Ан
realname_get();
foreach ($feed_list as $value) {
    $value = mkfeed($value);
    $value['dateline'] = sgmdate('m-d H:i', $value['dateline']);
    if (!$value['appid']) {
        $value['iconurl'] = "http://appicon.manyou.com/icons/{$value['icon']}";
    } else {
        $value['iconurl'] = $siteurl . 'image/icon/' . $value['icon'] . '.gif';
    }
    $value['title_template'] = makeurl($value['title_template']);
    $value['body_template'] = makeurl($value['body_template']);
    $value['userlink'] = $siteurl . 'space.php?uid=' . $value['uid'];
    $value['photo'] = ckavatar($value['uid']) ? avatar($value['uid'], 'small', true) : UC_API . '/images/noavatar_small.gif';
    $value = sstripslashes($value);
    $feedlist[] = $value;
}
echo serialize($feedlist);
Ejemplo n.º 9
0
function pageheader()
{
    ?>
  
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	
	<html xmlns="http://www.w3.org/1999/xhtml" >
	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>mepath - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
    makeurl('display/css/style.css');
    ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		<?php 
    if ($_SESSION[metext] == 5) {
        ?>
    
		<link href="<?php 
        makeurl('display/css/mepathmake.css');
        ?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		<?php 
    }
    ?>
		
		<!--Javascript -->
		<script type="text/javascript" language="javascript" src="<?php 
    makeurl('display/javascript/mepathjs.js');
    ?>
"></script>  
		
    </head>
	
	<?php 
}
Ejemplo n.º 10
0
                                                        </div>
                                                </div>
                                        </td>
                                        <td class="tc2"><?php 
                echo $forum;
                ?>
</td>
                                        <td class="tc3"><?php 
                echo $search_set[$i]['num_replies'];
                ?>
</td>
                                        <?php 
                if ($search_set[$i]['question'] == "") {
                    ?>
<td class="tcr"><?php 
                    echo '<a href="' . makeurl("p", $search_set[$i]['last_post_id'], format_time($search_set[$i]['last_post'])) . '#p' . $search_set[$i]['last_post_id'] . '">' . format_time($search_set[$i]['last_post']) . '</a> ' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($search_set[$i]['last_poster']);
                    ?>
</td><?php 
                } else {
                    ?>
<td class="tcr"><?php 
                    echo '<a href="viewpoll.php?pid=' . $search_set[$i]['last_post_id'] . '#p' . $search_set[$i]['last_post_id'] . '">' . format_time($search_set[$i]['last_post']) . '</a> ' . $lang_common['by'] . '&nbsp;' . pun_htmlspecialchars($search_set[$i]['last_poster']);
                    ?>
</td><?php 
                }
                ?>
                                </tr>
<?php 
            }
            /*			else
            			{
Ejemplo n.º 11
0
</div> <!-- closes lifestyle_menu-->	
    
<!--from display/me/homstart.php-->
<div id="magtext">
    <h3 class="left"> <?php 
lifestylesummary();
?>
</h3>

<h3 class="right">Last 24hrs
     	<a href="http://75.101.138.19/lifestylelinking/rsscode/index.php?lifestyleid=<?php 
echo $lifestylelid;
?>
">
      	<img src="<?php 
makeurl('display/images/rssicon.gif');
?>
" alt="rss icon" title="rssicon"/></a>
      </h3>
      
<?php 
streamstyle();
?>
					  
		     
<?php 
displayphotos();
?>
   
<?php 
displayvideo();
Ejemplo n.º 12
0
<div id="footer">
		<span class="copyright-notice">
			<a href="<?php 
makeurl('termsofuse.php');
?>
">Terms &amp; Conditions</a> &middot;  
			<a href="<?php 
makeurl('privacy.php');
?>
">Privacy Policy</a>

			&copy; 2010 
		</span> 
		<a href="<?php 
makeurl('about.php');
?>
">About  LL</a> &middot; 
		<a href="<?php 
makeurl('contact.php');
?>
">Contact</a>
 </div><!-- end #footer -->
 </div><!-- end #container -->

</body>
</html>
Ejemplo n.º 13
0
	<head>
	   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<title>open - lifestyle linking</title>
		<meta name="description" content="Main Page" />
		<meta name="page-topic" content="Homepage" />
		
		<meta name="robots" content="all" />
		<meta name="author" content="" />
		<meta name="author" content="" />
		<meta name="Keywords" content="" /> 	
		
		<!--Main Style Sheet-->
		<!--session selector to pick which stylesheet based on context if this header is in a php function-->
		<link href="<?php 
makeurl('controlpanel/css/admin.css');
?>
" type="text/css" rel="stylesheet" id="stylesheet" />
		
	</head>


<body>

<?php 
// include the page header
include_once ABSPATH . 'header.php';
?>
  

<div class="mid-wrapper">
Ejemplo n.º 14
0
		<p class="postlink conr"><?php 
echo $post_link;
?>
</p>
		<p class="pagelink conl"><?php 
echo $paging_links;
?>
</p>
<?php 
if ($cur_topic['parent_forum']) {
    echo "\t\t" . '<ul><li><a href="index.php">' . $lang_common['Index'] . '</a>&#160;</li><li>&raquo;&#160;<a href="viewforum.php?id=' . $cur_topic['parent_forum_id'] . '">' . pun_htmlspecialchars($cur_topic['parent_forum']) . '</a>&#160;</li><li>&raquo;&#160;<a href="viewforum.php?id=' . $cur_topic['forum_id'] . '">' . pun_htmlspecialchars($cur_topic['forum_name']) . '</a>&#160;</li><li>&raquo;&#160;' . pun_htmlspecialchars($cur_topic['subject']) . '</li></ul>';
} else {
    echo "\t\t" . '<ul><li><a href="index.php">' . $lang_common['Index'];
    ?>
 </a></li><li>&nbsp;&raquo;&nbsp;<a href="<?php 
    echo makeurl("f", $cur_topic['forum_id'], $cur_topic['forum_name']);
    ?>
"><?php 
    echo pun_htmlspecialchars($cur_topic['forum_name']);
    ?>
</a></li><li>&nbsp;&raquo;&nbsp;<?php 
    echo pun_htmlspecialchars($cur_topic['subject']);
    ?>
</li></ul>
<?php 
}
?>
		<?php 
echo $subscraction;
?>
	</div>
Ejemplo n.º 15
0
    } else {
        $last_post = '&nbsp;';
    }
    if ($cur_forum['moderators'] != '') {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();
        while (list($mod_username, $mod_id) = @each($mods_array)) {
            $moderators[] = '<a href="profile.php?id=' . $mod_id . '">' . pun_htmlspecialchars($mod_username) . '</a>';
        }
        $moderators = "\t\t\t\t\t\t\t\t" . '<p><em>(' . $lang_common['Moderated by'] . '</em> ' . implode(', ', $moderators) . ')</p>' . "\n";
    }
    $liste_sous_forums = array();
    if (!empty($tab_sous_forums)) {
        foreach ($tab_sous_forums as $sous_forums) {
            if ($cur_forum['fid'] == $sous_forums[2]) {
                $liste_sous_forums[] = '<a href="' . makeurl("f", $sous_forums[0], $sous_forums[1]) . '">' . pun_htmlspecialchars($sous_forums[1]) . '</a>';
            }
        }
        if (!empty($liste_sous_forums)) {
            $liste_sous_forums = "\t\t\t\t\t\t\t\t" . '<p><em>' . $lang_index['subforums'] . ' :</em> ' . implode(', ', $liste_sous_forums) . '</p>' . "\n";
        }
    }
    ?>
                 <tr<?php 
    if ($item_status != '') {
        echo ' class="' . $item_status . '"';
    }
    ?>
>
                    <td class="tcl">
                        <div class="intd">
Ejemplo n.º 16
0
    function display($indent = 0.0)
    {
        global $expand, $totaltime, $totalcount;
        usort($this->children, "compare_point");
        $extet = '';
        if (isset($expand[$this->name()])) {
            $ex = true;
        } else {
            $ex = false;
        }
        if (!$ex) {
            if (count($this->children)) {
                $url = makeurl(false, false, $expand + array($this->name() => true));
                $extet = " <a href=\"{$url}\">[+]</a>";
            } else {
                $extet = '';
            }
        } else {
            $e = array();
            foreach ($expand as $name => $ep) {
                if ($name != $this->name()) {
                    $e += array($name => $ep);
                }
            }
            $extet = " <a href=\"" . makeurl(false, false, $e) . "\">[&ndash;]</a>";
        }
        ?>
		<tr>
		<td class="time"><tt><?php 
        echo $this->fmttime();
        ?>
</tt></td>
		<td class="timep"><?php 
        echo wfPercent($this->time() / $totaltime * 100);
        ?>
</td>
		<td class="count"><?php 
        echo $this->count();
        ?>
</td>
		<td class="cpr"><?php 
        echo round(sprintf('%.2f', $this->count() / $totalcount), 2);
        ?>
		<td class="name" style="padding-left: <?php 
        echo $indent;
        ?>
em">
			<?php 
        echo htmlspecialchars($this->name()) . $extet;
        ?>
		</td>
		</tr>
		<?php 
        if ($ex) {
            foreach ($this->children as $child) {
                $child->display($indent + 2);
            }
        }
    }
Ejemplo n.º 17
0
if ($favid) {
    $wherearr[] = "favid='{$favid}'";
}
$wherearr[] = "uid='{$_G['uid']}'";
$idtype = isset($idtypes[$_GET['type']]) ? $idtypes[$_GET['type']] : '';
if ($idtype) {
    $wherearr[] = "idtype='{$idtype}'";
}
$wheresql = implode(' AND ', $wherearr);
$count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('home_favorite') . " WHERE {$wheresql}"), 0);
if ($count) {
    $query = DB::query("SELECT * FROM " . DB::table('home_favorite') . "\r\n\t\tWHERE {$wheresql}\r\n\t\tORDER BY dateline DESC\r\n\t\tLIMIT {$start},{$perpage}");
    $icons = array('tid' => '<img src="static/image/feed/thread.gif" alt="thread" class="t" /> ', 'fid' => '<img src="static/image/feed/discuz.gif" alt="forum" class="t" /> ', 'blogid' => '<img src="static/image/feed/blog.gif" alt="blog" class="t" /> ', 'gid' => '<img src="static/image/feed/group.gif" alt="group" class="t" /> ', 'uid' => '<img src="static/image/feed/profile.gif" alt="space" class="t" /> ', 'albumid' => '<img src="static/image/feed/album.gif" alt="album" class="t" /> ', 'aid' => '<img src="static/image/feed/article.gif" alt="article" class="t" /> ');
    while ($value = DB::fetch($query)) {
        $value['icon'] = isset($icons[$value['idtype']]) ? $icons[$value['idtype']] : '';
        $value['url'] = makeurl($value['id'], $value['idtype'], $value['spaceuid']);
        $value['description'] = !empty($value['description']) ? nl2br($value['description']) : '';
        $list[$value['favid']] = $value;
    }
}
$multi = multi($count, $perpage, $page, $theurl);
dsetcookie('home_diymode', $diymode);
if (!$_GET['type']) {
    $_GET['type'] = 'all';
}
if ($_GET['type'] == 'group') {
    $navtitle = lang('core', 'title_group_favorite', array('gorup' => $_G['setting']['navs'][3]['navname']));
} else {
    $navtitle = lang('core', 'title_' . $_GET['type'] . '_favorite');
}
include_once template("diy:home/space_favorite");
Ejemplo n.º 18
0
     echo "\t" . '<link>' . $pun_config['o_base_url'] . '/</link>' . "\r\n";
     echo "\t" . '<description>' . pun_htmlspecialchars($rss_description . ' ' . $pun_config['o_board_title']) . '</description>' . "\r\n";
     echo "\t" . '<language>en-us</language>' . "\r\n";
     // Fetch 15 topics
     $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post, f.id AS fid, f.forum_name FROM ' . $db->prefix . 'topics AS t INNER JOIN ' . $db->prefix . 'forums AS f ON f.id=t.forum_id LEFT JOIN ' . $db->prefix . 'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL' . $forum_sql . ' ORDER BY ' . $order_by . ' DESC LIMIT 15') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
     $nb_active_topics_shown = 0;
     while ($cur_topic = $db->fetch_assoc($result) && $nb_active_topics_shown < $show_max_topics) {
         $nb_active_topics_shown++;
         if ($pun_config['o_censoring'] == '1') {
             $cur_topic['subject'] = censor_words($cur_topic['subject']);
         }
         echo "\t" . '<item>' . "\r\n";
         echo "\t\t" . '<title>' . pun_htmlspecialchars($cur_topic['subject']) . '</title>' . "\r\n";
         echo "\t\t" . '<link>' . $pun_config['o_base_url'] . '/' . makeurl("t", $cur_topic['id'], $cur_topic['subject']) . $url_action . '</link>' . "\r\n";
         //			echo "\t\t".'<link>'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].$url_action.'</link>'."\r\n";
         echo "\t\t" . '<description><![CDATA[' . escape_cdata($lang_common['Forum'] . ': <a href="' . $pun_config['o_base_url'] . '/' . makeurl("f", $cur_topic['fid'], $cur_topic['forum_name']) . '">' . $cur_topic['forum_name'] . '</a><br />' . "\r\n" . $lang_common['Author'] . ': ' . $cur_topic['poster'] . '<br />' . "\r\n" . $lang_common['Posted'] . ': ' . date('r', $cur_topic['posted']) . '<br />' . "\r\n" . $lang_common['Last post'] . ': ' . date('r', $cur_topic['last_post'])) . ']]></description>' . "\r\n";
         //			echo "\t\t".'<description><![CDATA['.escape_cdata($lang_common['Forum'].': <a href="'.$pun_config['o_base_url'].'/viewforum.php?id='.$cur_topic['fid'].'">'.$cur_topic['forum_name'].'</a><br />'."\r\n".$lang_common['Author'].': '.$cur_topic['poster'].'<br />'."\r\n".$lang_common['Posted'].': '.date('r', $cur_topic['posted']).'<br />'."\r\n".$lang_common['Last post'].': '.date('r', $cur_topic['last_post'])).']]></description>'."\r\n";
         echo "\t" . '</item>' . "\r\n";
     }
     echo '</channel>' . "\r\n";
     echo '</rss>';
 } else {
     $show = isset($_GET['show']) ? intval($_GET['show']) : 15;
     if ($show < 1 || $show > 50) {
         $show = 15;
     }
     // Fetch $show topics
     $result = $db->query('SELECT t.id, t.subject FROM ' . $db->prefix . 'topics AS t INNER JOIN ' . $db->prefix . 'forums AS f ON f.id=t.forum_id LEFT JOIN ' . $db->prefix . 'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL' . $forum_sql . ' ORDER BY ' . $order_by . ' DESC LIMIT ' . $show) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
     if (isset($_GET['utf-8'])) {
         @header("Content-type: text/html; charset=utf-8");
     }