I'm starting to provide Chinese / English versions of some posts, switch with the Language menu above. 我开始提供部分文章的中文、英文翻译,请使用顶部语言菜单切换。

含有标签 IP 的文章

Typecho 显示评论者国家和浏览器

Typecho 由于插件稀少,一直没有找到显示评论者国家和浏览器的插件,所以只好自力更生了。代码修改自 WordPress 插件 Show UserAgent,下载页面:https://wordpress.org/plugins/show-useragent/前提是你的主题使用了自定义评论代码而不是 Typecho 默认的评论显示代码,一般符合要求的主题的 comments.php 或者 functions.php 中会有如下代码:<?php function threadedComments($comments, $options) { //blablabla?>下载 Show UserAgent 插件解压,把里面的 flags 文件夹改名成 country,browsers 文件夹改名成 browser,ip2c 文件夹改名成 lib,上传到服务器上你的主题文件夹。(其实不改也可以,但是我是按照个人习惯这么改的,你也可以修改下面代码的路径)在主题的 functions.php 中插入这么长一串代码:<?php /* 地理位置判断 */ ?><?php function CID_get_country($ip) { require_once(dirname(__FILE__).'/lib/ip2c.php')...

Host1Free 近期改造网络架构,更换 VPS IP

Dear Host1Free User Lan Tian, We would like to announce that due to changes in our network infrastructure we will be changing current IP address of your free VPS server 5.175.206.68 to the new one 5.175.156.249. In order to allow you to prepare for this event we added IP address 5.175.206.68 as main IP address and old 5.175.156.249 IP left as additional to your free VPS server. Next Wednesday (2013-06-13) old IP address will be removed. Please make sure to update your servers settings, DNS settings and etc. accordingly to avoid any inconience after old IP(5.175.156.249) address removal at Wednesday." Please accept our apologies for the inconvenience.Regards,Host1Free adminsitrators team简洁来说,VPS 的 IP 地址改成 5.175.206.68,原来的 5.175.156.249 留到下周三作为过渡,...