This file contains hidden or 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
    
  
  
    
  | function disabledMouseWheel() { | |
| if (document.addEventListener) { | |
| document.addEventListener('DOMMouseScroll', scrollFunc, false); | |
| }//W3C | |
| window.onmousewheel = document.onmousewheel = scrollFunc;//IE/Opera/Chrome | |
| } | |
| function scrollFunc(evt) { | |
| evt = evt || window.event; | |
| if(evt.preventDefault) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** | |
| * Created with JetBrains WebStorm. | |
| * User: jonbug | |
| * Date: 13-9-7 | |
| * Time: 下午4:11 | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| function getUserAgent(){ | |
| if(window.ActiveXObject){ | |
| if(document.documentElement && typeof document.documentElement.style.maxHeight!="undefined"){ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** | |
| * Created with JetBrains WebStorm. | |
| * User: jonbug | |
| * Date: 13-9-7 | |
| * Time: 下午4:11 | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| function getUserAgent(){ | |
| if(window.ActiveXObject){ | |
| if(document.documentElement && typeof document.documentElement.style.maxHeight!="undefined"){ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function ajax(method,url,fnSuc,fnFailed){ | |
| var oAjax; | |
| if(window.XMLHttpRequest){ | |
| oAjax = new XMLHttpRequest(); | |
| }else { | |
| oAjax = new ActiveXObject("Microsoft.XMLHTTP"); | |
| } | |
| oAjax.open(method,url,true); | |
| oAjax.send(); | |
| oAjax.onreadystatechange = function(){ | 
  
    
      This file contains hidden or 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 | |
| // $string: 明文 或 密文 | |
| // $operation:DECODE表示解密,其它表示加密 | |
| // $key: 密匙 | |
| // $expiry:密文有效期 | |
| function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) { | |
| // 动态密匙长度,相同的明文会生成不同密文就是依靠动态密匙 | |
| $ckey_length = 4; | |
| // 密匙 | 
  
    
      This file contains hidden or 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 | |
| #活动类别函数 | |
| function eventclass_cache(){ | |
| global $_SGLOBAL; | |
| $_SGLOBAL['eventclass'] = array(); | |
| #同时写入全局 | |
| $query = $_SGLOBAL['db']->query("SELECT * FROM " . tname("eventclass") . " ORDER BY displayorder"); | |
| while($value = $_SGLOBAL['db']->fetch_array($query)){ | |
| if($value['poster']) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| .center{margin-left: auto;margin-right: auto;} | |
| .cold-shadow{-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;-ms-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;-o-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0;} | |
| .cold-font{font-size: 12px;font-family: "consolas";} | |
| #gist-box{width: 900px;} | |
| .gist-title{height: 30px;line-height: 30px;background-color: #ececec;padding-left: 20px;font-size: 15px;border: 1px solid #ddd;} | |
| </style> | 
  
    
      This file contains hidden or 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 | |
| function getCurrentURI(){ | |
| #较通用的写法 | |
| if (isset($_SERVER['REQUEST_URI'])){ | |
| $uri = $_SERVER['REQUEST_URI']; | |
| }else{ | |
| if (isset($_SERVER['argv'])){ | |
| $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0]; | |
| }else{ | |
| $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING']; |