📄 getskin.php
字号:
<?
/*
BMForum Plus! Bulletin Board Systems
Version : Plus!
This is a freeware, but don't change the copyright information.
A SourceForge Project - GNU Licence project.
Web Site: http://www.bmforum.com
Copyright (C) Bluview Technology
*/
if ($gzip_compress=="1") { ob_start("ob_gzhandler"); }else{ ob_start();}
$skin="";
require_once("datafile/language.php");
if(!empty($_COOKIE["userlanguage"]) && file_exists("lang/".$_COOKIE["userlanguage"]."/global.php")) $language=$_COOKIE["userlanguage"];
elseif(empty($_COOKIE["userlanguage"]) && $autolang){
$langlist=@file("datafile/langlist.php");
$count=count($langlist);
$useraccept=explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$useraccept=$useraccept[0];
for($i=0;$i<$count;$i++){
$xlangshow=explode("|",$langlist[$i]);
$langarray[$xlangshow[1]]=$xlangshow[2];
}
$langkeyname=array_search_bit($useraccept,$langarray);
if(!empty($langkeyname)){
if($_COOKIE[cookie_time_bmb]!="0" && $_COOKIE[cookie_time_bmb]!=""){
setcookie("userlanguage",$langkeyname,time()+$_COOKIE[cookie_time_bmb],$cookie_p,$cookie_d);
}else{
setcookie("userlanguage",$langkeyname,0,$cookie_p,$cookie_d);
}
$_SESSION['userlanguage']=$langkeyname;
$language=$langkeyname;
}
}
require_once("datafile/time.php");
require_once("global.php");
require_once("datafile/style.php");
$skinname=basename($_COOKIE['bmbskin']);
$styleopen=file("datafile/stylelist.php");
$stylecount=count($styleopen);
for($styi=0;$styi<$stylecount;$styi++){
$styledetail=explode("|",$styleopen[$styi]);
if($styledetail[1]==$skinname){
$styledetail[3]=basename($styledetail[3]);
if (file_exists("datafile/style/".$styledetail[3])) include("datafile/style/".$styledetail[3]);
else include("datafile/style/".basename($skin));
}
}
@header("Forum-Powered-By: $verandproname / BMForum.com");
@header("Content-Type: $encode_info");
$bbsdetime=$time_1;
if($_COOKIE["usertimezone"]!=""){
$time_1=$_COOKIE["usertimezone"];
}
if($_COOKIE["customshowtime"]!=""){
$time_2=$_COOKIE["customshowtime"];
}
get_forum_info();
if ($forum_style<>"") {
if (file_exists("datafile/style/".basename($forum_style))) include("datafile/style/".basename($forum_style));
}
require("newtem/$temfilename/global.php");
$error="";
if (($bbs_is_open==0 && empty($thisprog) && $usertype[21]!=1 && $usertype[22]!=1) || (($nowhours<$ddwtail[0] || $nowhours>=$ddwtail[1]) && empty($thisprog))) {
include("header.php");
msg_box($gl[469],$bbs_close_msg);
include("footer.php");
exit;
}
@include_once("datafile/pluginclude.php");
function array_search_bit($search, $array_in){
foreach ($array_in as $key => $value){
if (@strpos($value, $search) !== FALSE)
return $key;
}
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -