This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $string 原文或者密文 | |
* @param string $operation 操作(ENCODE | DECODE), 默认为 DECODE | |
* @param string $key 密钥 | |
* @param int $expiry 密文有效期, 加密时候有效, 单位 秒,0 为永久有效 | |
* @return string 处理后的 原文或者 经过 base64_encode 处理后的密文 | |
* | |
**/ | |
function authcode($string, $operation = 'DECODE', $key = '', $expiry = 3600) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = document.getElementById("eq").offsetTop; | |
if (a >= $(window).scrollTop() && a < ($(window).scrollTop()+$(window).height())) { | |
alert("div在可视范围"); | |
} |