├── README.md ├── config.php ├── font └── msyh.ttf ├── icon ├── ico │ ├── IP.png │ ├── bro.png │ ├── local.png │ ├── system.png │ └── time.png └── weather │ ├── dyun.png │ ├── rain.png │ ├── sha.png │ ├── snow.png │ ├── sunny.png │ ├── unknow.png │ ├── wu.png │ └── yin.png ├── img.php ├── img └── bg.png └── include ├── base_func.php ├── function.php ├── icon.php ├── includes.php ├── inform.php └── topdomain.php /README.md: -------------------------------------------------------------------------------- 1 | # Liues-IPCard 2 | 一款具有显示天气的IP签名档 3 | * 源码内文件修改有详细解释 4 | * 天气等有图标显示 5 | * 具有风向湿度等提示 6 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deershark/Liues-IPCard/f26b2394589f5ab22f75691c26de64f4a65bef72/img/bg.png -------------------------------------------------------------------------------- /include/base_func.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/icon.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/includes.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/inform.php: -------------------------------------------------------------------------------- 1 | 2 | = 0; $i --) { 300 | if ($i == 0) { 301 | // just in case of something like NAME.COM 302 | break; 303 | } 304 | if (in_array ( $sub_domain [$i], $iana_root )) { 305 | $top_domain_count ++; 306 | $top_domain = '.' . $sub_domain [$i] . $top_domain; 307 | if ($top_domain_count >= 2) { 308 | break; 309 | } 310 | } 311 | } 312 | $top_domain = $sub_domain [count ( $sub_domain ) - $top_domain_count - 1] . $top_domain; 313 | return $top_domain; 314 | } 315 | ?> --------------------------------------------------------------------------------