https://einverne.github.io/archive
后端通过IP获取当前城市:
http://ip.ws.126.net/ipquery?ip=115.238.95.194
http://ip.taobao.com/service/getIpInfo.php?ip=123.233.157.9
http://whois.pconline.com.cn/ipJson.jsp?ip=115.238.95.194
http://pv.sohu.com/cityjson?ip=115.238.95.194
https://blog.csdn.net/qq_40872982/article/details/103852731
https://www.cnblogs.com/sanduzxcvbnm/p/8508741.html
https://www.sooele.com/1650.html
Matomo – 搭建一个属于自己的网站统计分析站点
# head -n 10 /etc/profile >>/home/test
# tail -n 5 /etc/profile>>/home/test
/**
* [opensslDecrypt description]
* 使用openssl库进行加密
* @param [type] $sStr
* @param [type] $sKey
* @return [type]
*/
public function encrypt($sStr, $sKey, $method = 'AES-128-ECB'){
$str = openssl_encrypt($sStr,$method,$sKey,OPENSSL_RAW_DATA);
return base64_encode($str);
}
/**
* [opensslDecrypt description]
* 使用openssl库进行解密
* @param [type] $sStr
* @param [type] $sKey
* @return [type]
*/
public function decrypt($sStr, $sKey, $method = 'AES-128-ECB'){
$sStr = base64_decode($sStr);
$str = openssl_decrypt($sStr,$method,$sKey,OPENSSL_RAW_DATA);
return $str;
}