--- fenglin/bbs/theme.inc.php 2025/04/07 08:39:17 1.2 +++ fenglin/bbs/theme.inc.php 2025/04/18 05:12:24 1.16 @@ -5,17 +5,39 @@ if (!defined("_BBS_THEME_INIT_")) $BBS_theme_set = array( "default" => array( - "css" => "css/default.css", - "post" => "post.view.php", - "member_service_guide" => "member_service_guide.view.php", - "update_profile" => "update_profile.view.php", - "preference" => "preference.view.php", + "css/default" => "css/default.css", + "js/lml_assistant" => "js/lml_assistant.js", + "view/list" => "list.view.php", + "view/post" => "post.view.php", + "view/view_article" => "view_article.view.php", + "view/search_article" => "search_article.view.php", + "view/search_user" => "search_user.view.php", + "view/member_service_guide" => "member_service_guide.view.php", + "view/update_profile" => "update_profile.view.php", + "view/preference" => "preference.view.php", + "view/s_favor" => "s_favor.view.php", + "view/section_setting" => "section_setting.view.php", + "view/show_profile" => "show_profile.view.php", + "view/score_detail" => "score_detail.view.php", + "view/suicide" => "suicide.view.php", + "view/read_msg" => "read_msg.view.php", + ), + "xml" => array( + "xsl/1" => "xsl/1.xsl", + "view/view_article" => "view_article_xml.view.php", + ), + "gen_ex" => array( + "view/view_article" => "gen_ex_article.view.php", + ), + "portal" => array( + "css/default" => "../www/css/default.css", + "view/view_article" => "view_article.view.php", ), ); $BBS_theme_current = ""; - function get_theme_view_file(string $view_name, string $theme_name = "") : string | null + function get_theme_file(string $view_name, string $theme_name = "") : string | null { global $BBS_theme_set; global $BBS_theme_current; @@ -37,7 +59,7 @@ if (!defined("_BBS_THEME_INIT_")) return null; // View not exist } - $file = "./themes/" . $theme_name . "/" . $BBS_theme_set[$theme_name][$view_name]; + $file = "../bbs/themes/" . $theme_name . "/" . $BBS_theme_set[$theme_name][$view_name]; if (!file_exists($file)) {