Heim >Backend-Entwicklung >PHP-Tutorial >二年前写的垃圾自己完全看不懂改不动了,求大神能在跑起来

二年前写的垃圾自己完全看不懂改不动了,求大神能在跑起来

WBOY
WBOYOriginal
2016-06-13 11:23:35887Durchsuche

2年前写的垃圾自己完全看不懂改不动了,求大神能在跑起来。

本帖最后由 bbbbbjt46 于 2013-06-15 22:19:24 编辑 function shuzu($a0,$a1,$a2,$a3,$a4,$a5,$a6,$a7,$a8,$a9){
global $arrr;
global $bianliang;
    $arrr=array((int)("$a0"*$bianliang),(int)("$a1"*$bianliang),(int)("$a2"*$bianliang),(int)("$a3"*$bianliang),(int)("$a4"*$bianliang),(int)("$a5"*$bianliang),(int)("$a6"*$bianliang),(int)("$a7"*$bianliang),(int)("$a8"*$bianliang),(int)("$a9"*$bianliang));
    return $arrr
;}

function chu($a,$b){       
    $ddrrr="";
    foreach($a as $arr=>$key){
        $ddrrr.=(int)($key/$b)." ";
       }
      $ddrrr=(explode(' ',trim($ddrrr)));
    return $ddrrr;
}


function zongshu($bianliang,$chushizhi,$time,$time1){

$a0 =shuzu(11,7,8,6,5,8,13,5,11,7);        
$a1 =shuzu(15,7,7,8,3,11,4,9,15,12);
$a2 =shuzu(8,11,15,4,13,12,9,8,11,15);
$a3 =shuzu(5,7,7,8,3,9,15,15,8,11);
$a4 =shuzu(12,8,14,5,7,9,14,13,11,8);
$a5 =shuzu(9,5,8,7,6,8,7,12,11,5);
$a6 =shuzu(8,15,5,6,7,4,6,9,9,7);
$a7 =shuzu(4,6,6,8,7,6,5,5,9,12);
$a8 =shuzu(6,6,8,5,9,12,7,5,9,11);
$a9 =shuzu(8,11,7,7,5,6,4,9,11,9);


$chushi=substr($time,0,5);
$dangqian=substr($time1,0,5);




$beishu=100;
$beicha=(int)(($dangqian-$chushi)/$beishu);


$chushi100=substr($chushi,2,1);
$chushi10=substr($chushi,3,1);
$chushi1=substr($chushi,4,1);
$chushi0=substr($time,5,1);
$dangqian100=substr($dangqian,2,1);
$dangqian10=substr($dangqian,3,1);
$dangqian1=substr($dangqian,4,1);
$dangqian0=substr($time1,5,1);

$xiaoshi=0; 
$num="";
$dqnumfor="";   
$gnum="";
$xhzongshu=""; 
if($chushi10for($_i=$chushi10+1;$_ifor($t=0;$t$num+=${"a".$_i}[$t];
}
}}

if($chushi10>$dangqian10){
for($_i=$chushi10+1;$_i if($_i>=10){
$jian10=$_i-10;
}
else{
$jian10=$_i;
}
for($t=0;$t$num+=${"a".$jian10}[$t];
}
}
     }


  if($chushi10==$dangqian10&&$chushi100!=$dangqian100){
{
for($_i=$chushi10+1;$_i if($_i>=10){
$jian10=$_i-10;
}
else{
$jian10=$_i;
}
for($t=0;$t$num+=${"a".$jian10}[$t];
}
}
     }
  }

$dnum=0;
$xnum=0;
$swnum=0;

//个位值的计算
if($chushi10==$dangqian10&&$chushi100==$dangqian100){
for($_i=$chushi1;$_i$swnum+=${"a".$dangqian10}[$_i];
}
$gnum=$swnum;
}
else{
for($j=$chushi1;$j$dnum+=${"a".$chushi10}[$j];
}

for($p=0;$p$xnum+=${"a".$dangqian10}[$p];
}

$gnum=$dnum+$xnum;
}
//倍数的计算
if($beicha>=1&&$chushi10==$dangqian10&&$beicha for($_i=0;$_i $xhzongshu+=array_sum(${"a".$_i});
}
$xhzongshu*=$beicha-1;
}
else{
for($_i=0;$_i $xhzongshu+=array_sum(${"a".$_i});
}
$xhzongshu*=$beicha;
}
$wocao="";
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn