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
/* global fis */ | |
/** | |
* fis-conf.js for FIS3 | |
* author: BelinChung | |
* | |
**/ | |
fis.set('component.gitlab.token', 'FwUhAGn************'); |
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 device = (function () { | |
var device = {}; | |
var ua = navigator.userAgent; | |
var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); | |
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/); | |
var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/); | |
var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/); | |
device.ios = device.android = device.iphone = device.ipad = false; |
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 | |
class Token | |
{ | |
private $mmc; | |
private $cache_time; | |
function __construct() | |
{ | |
$this->cache_time = 60 * 60 * 24; |