forums.php

来自「一个好用的php wap cms portal」· PHP 代码 · 共 198 行

PHP
198
字号
<?
/********************************************************************************/ 
/*  Wap-2-Go Mobile Phone Nuke-Addon                                            */
/*          bringing the Advanced Content Management System to Mobile Format    */
/*  =========================================================================== */
/*                                              powered by Nuke SQL Database    */
/*                                                                              */
/*  Wap-2-Go Forums Theme                                                       */
/*                                                                              */
/* Copyright (c) 2007 by Philip Marsh   -   http://www.wap2go.co.uk             */
/********************************************************************************/ 
/********************************************************************************/ 
/*  HTML THEME FUNCTIONS                                                        */
/********************************************************************************/
@include_once("../modules/Forums/language/lang-".$lang.".php");
@include_once("../modules/Forums/admin/language/lang-".$lang.".php");
if ($htm==1)
        {
        function doOverallHeader($forum_menu)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/overall_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumPost($title,$text,$posted_by)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/post.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumHead($forumtitle,$memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $topictitle     = ""._FTOPICS.":";
                    $topicauthor    = ""._FAUTHOR.":";
                    $topicreply     = ""._FLPOSTS.":";
                    $template       = "themes/".$theme."/html/forums/forum_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumFoot($memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/forum_foot.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumTopic($id,$uid,$posted_by,$topic_title,$lastpost)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/forum_topics.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCatHead($title,$breadcrumbs,$memberfunctions)
                {
                    global $theme, $lang;
                    $cat_title      = ""._FORUM.":";
                    $cat_topics     = "";
                    $cat_replies    = "";
                    $template       = "themes/".$theme."/html/forums/category_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCat($cat_title,$cat_desc,$cat_posts,$cat_replies)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/category.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCatFoot($memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $template       = "themes/$theme/html/forums/category_foot.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        }
/********************************************************************************/ 
/*  WML THEME FUNCTIONS                                                         */
/********************************************************************************/
else
        {
        function doOverallHeader($forum_menu)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/overall_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumPost($title,$text,$posted_by)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/post.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumHead($forumtitle,$memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $topictitle     = ""._FTOPICS."";
                    $topicauthor    = ""._FAUTHOR."";
                    $topicreply     = ""._FLPOSTS."";
                    $template       = "themes/".$theme."/wml/forums/forum_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumFoot($memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/forum_foot.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doForumTopic($id,$uid,$posted_by,$topic_title,$lastpost)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/forum_topics.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCatHead($title,$breadcrumbs,$memberfunctions)
                {
                    global $theme, $lang;
                    $cat_title      = ""._FORUM.":";
                    $cat_topics     = "";
                    $cat_replies    = "";
                    $template       = "themes/".$theme."/wml/forums/category_head.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCat($cat_title,$cat_desc,$cat_posts,$cat_replies)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/category.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        function doCatFoot($memberfunctions,$breadcrumbs)
                {
                    global $theme;
                    $template       = "themes/$theme/wml/forums/category_foot.tpl";
                    $chk_template   = implode("", file($template));
                    $chk_template   = addslashes($chk_template);
                    $chk_template   = "\$tmp=\"".$chk_template."\";";
                    eval($chk_template);
                    print $tmp;
                }
        }
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?