[email protected]:~# dig iptv.tsinghua.edu.cn; <<>> DiG 9.9.5-9+deb8u9-Debian <<>> iptv.tsinghua.edu.cn;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44600;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITION- 阅读剩余部分 -

在/usr/themes/default/header.php中合理的位置添加<link rel="stylesheet" href="//cdn.bootcss.com/highlight.js/9.9.0/styles/github-gist.min.css"><script src="//cdn.bootcss.com/highlight.js/9.9.0/highlight.min.js"></script><script>hljs.initHighlight- 阅读剩余部分 -

/var/Typecho/Db.php:--- Db.php 2017-01-02 19:11:10.000000000 +0800+++ Db_new.php 2017-01-08 12:55:17.089963400 [email protected]@ -14,6 +14,9 @@ * * @package Db */++$GLOBALS['sql_query'] = 0;+ class Typecho_Db { /** 读取数据库 */@@ -340,6 +343,7 @@ $action = $query->getAttribut- 阅读剩余部分 -

ustc有个异步加载的“您的IP地址”,是用CGI实现的。php版实现如下:php:var ipv4addr= document.getElementById("ipv4addr"); ipv4addr.innerHTML='<?=$_SERVER['REMOTE_ADDR'];?>';html<script language="JavaScript" type="text/javascript" src=http://202.38.64.1/cgi-bin/myipv4addr></- 阅读剩余部分 -