📄 function.php
字号:
<?
function blackbox($Text) {
$Text=trim($Text);
$Text=htmlspecialchars($Text);
$Text=ereg_replace("\n","<br />",$Text);
$Text=ereg_replace("\|","│",$Text);
$Text=preg_replace("/\\t/is"," ",$Text);
$Text=preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/is","<span style=\"color:\\1\">\\2</span>",$Text);
$Text=preg_replace("/\[i\](.+?)\[\/i\]/is","<i>\\1</i>",$Text);
$Text=preg_replace("/\[b\](.+?)\[\/b\]/is","<b>\\1</b>",$Text);
$Text=stripslashes($Text);
return $Text;
}
function goback($message){
echo "<div id=\"wrong\">".$message."<a href=\"#\" onclick=\"javascript:history.go(-1)\">请返回</a></div>\n</body>\n</html>\n";
}
function write_file($file,$data,$method){
$fp=@fopen($file,$method);
fwrite($fp,$data);
fclose($fp);
}
function getip() {
$IP=getenv('REMOTE_ADDR');
$IP_ = getenv('HTTP_X_FORWARDED_FOR');
if (($IP_ != "") && ($IP_ != "unknown")) $IP=$IP_;
return $IP;
}
function gothere($msg,$link,$url){
echo "<div style=\"clear:left;font:16px;\">".$msg."<a href=\"".$url."\">".$link."</a></div>\n";
}
function get_style_info($style){
$fp=fopen($style, "r");
$pic_info=fgets($fp,1024);
fclose($fp);
$pic_info=str_replace("/*","",$pic_info);
$pic_info=str_replace("*/","",$pic_info);
$pic_info=trim($pic_info);
$pic_info=explode(",",$pic_info);
return $pic_info;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -