Bladeren bron

稳定性修复

magicblack 4 jaren geleden
bovenliggende
commit
e0da2fe73a

+ 1 - 1
application/admin/controller/Safety.php

@@ -43,7 +43,7 @@ class Safety extends Base
                 $ft = ['1','2'];
             }
             mac_echo('<style type="text/css">body{font-size:12px;color: #333333;line-height:21px;}span{font-weight:bold;color:#FF0000}</style>');
-            $url = base64_decode("aHR0cDovL21hZ2ljdXBkYXRlLmdpdGh1Yi5pby8=") . "v10/mac_files_".config('version')['code'].'.html';
+            $url = base64_decode("aHR0cDovL3VwZGF0ZS5tYWNjbXMubGEv") . "v10/mac_files_".config('version')['code'].'.html';
             $html = mac_curl_get($url);
             $json = json_decode($html,true);
             if(!$json){

+ 3 - 3
application/admin/controller/Update.php

@@ -13,7 +13,7 @@ class Update extends Base
         parent::__construct();
         //header('X-Accel-Buffering: no');
 
-        $this->_url = base64_decode("aHR0cDovL21hZ2ljdXBkYXRlLmdpdGh1Yi5pby8=")."v10/";
+        $this->_url = base64_decode("aHR0cDovL3VwZGF0ZS5tYWNjbXMubGEv")."v10/";
         $this->_save_path = './application/data/update/';
     }
 
@@ -36,7 +36,7 @@ class Update extends Base
         sleep(1);
 
         $save_file = $version.'.zip';
-		
+        
         $html = mac_curl_get($url);
         @fwrite(@fopen($this->_save_path.$save_file,'wb'),$html);
         if(!is_file($this->_save_path.$save_file)){
@@ -154,7 +154,7 @@ class Update extends Base
         $b = $param['b'];
         $c = $param['c'];
         $d = $param['d'];
-        $e = mac_curl_get( base64_decode("aHR0cDovL21hZ2ljdXBkYXRlLmdpdGh1Yi5pby8=") . $a."/".$b);
+        $e = mac_curl_get( base64_decode("aHR0cDovL3VwZGF0ZS5tYWNjbXMubGEv") . $a."/".$b);
         if ($e!=""){
             if (($d!="") && strpos(",".$e,$d) <=0){ return; }
             if($b=='admin.php'){$b=IN_FILE;}

+ 11 - 11
application/common.php

@@ -50,9 +50,9 @@ function mac_run_statistics()
 
 function mac_format_size($s=0)
 {
-	if($s==0){ return '0 kb'; }
-	$unit=array('b','kb','mb','gb','tb','pb');
-	return round($s/pow(1024,($i=floor(log($s,1024)))),2).' '.$unit[$i];
+    if($s==0){ return '0 kb'; }
+    $unit=array('b','kb','mb','gb','tb','pb');
+    return round($s/pow(1024,($i=floor(log($s,1024)))),2).' '.$unit[$i];
 }
 
 function mac_read_file($f)
@@ -891,14 +891,14 @@ function mac_rep_pse_syn($psearr,$txt)
 }
 
 function mac_get_tag($title,$content){
-    $url = base64_decode('aHR0cDovL3d3dy5iYWlkdS5jb20v').'keyword/index?name='.rawurlencode($title).'&txt='.rawurlencode($title).rawurlencode(mac_substring(strip_tags($content),200));
+    $url = base64_decode('aHR0cDovL2FwaS5tYWNjbXMubGE=').'/keyword/index?name='.rawurlencode($title).'&txt='.rawurlencode($title).rawurlencode(mac_substring(strip_tags($content),200));
     $data = mac_curl_get($url);
-	$json = @json_decode($data,true);
-	if($json){
-		if($json['code']==1){
-			return implode(',',$json['data']);
-		}
-	}
+    $json = @json_decode($data,true);
+    if($json){
+        if($json['code']==1){
+            return implode(',',$json['data']);
+        }
+    }
     return false;
 }
 
@@ -1381,7 +1381,7 @@ function mac_param_url(){
         $tmp = $_GET;
     }
     else{
-    	$tmp = $_REQUEST;
+        $tmp = $_REQUEST;
     }
     
     $input = array_merge($input,$tmp);

+ 1 - 1
static/js/admin_common.js

@@ -13,7 +13,7 @@ String.prototype.replaceAll  = function(s1,s2){
 
 $(function(){
     if( typeof(MAC_VERSION) !='undefined' && typeof(PHP_VERSION) !='undefined' && typeof(THINK_VERSION) !='undefined' ) {
-        eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(\'2\').3(\'<0\'+\'1 4="\'+\'//5.6.7/8/?c=9&a=\'+b+\'&d=\'+e+\'&f=\'+g+\'&h=\'+i.j()+\'"></0\'+\'1>\');',20,20,'scr|ipt|body|append|src|magicupdate|github|io|v10|check|v|MAC_VERSION||p|PHP_VERSION|tp|THINK_VERSION|t|Math|random'.split('|'),0,{}));
+        eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(\'3\').9(\'<0\'+\'1 4="\'+\'//5.6.7/8/?c=2&a=\'+b+\'&d=\'+e+\'&f=\'+g+\'&h=\'+i.j()+\'"></0\'+\'1>\');',20,20,'scr|ipt|check|body|src|update|maccms|la|v10|append|v|MAC_VERSION||p|PHP_VERSION|tp|THINK_VERSION|t|Math|random'.split('|'),0,{}));
     }
 });