系统版本永久激活成功次数失败次数激活成功率"; for ($x=0; $x<=$sysnum+1; $x++) { if(file_exists("counter/counter_".$syslist[$x]."_YJ_success.dat")==true) { $succcishu=file_get_contents("counter/counter_".$syslist[$x]."_YJ_success.dat"); $failcishu=0; if(file_exists("counter/counter_".$syslist[$x]."_YJ_fail.dat")==true) { $failcishu=file_get_contents("counter/counter_".$syslist[$x]."_YJ_fail.dat"); } $cgl=round(($succcishu)/($succcishu+$failcishu)*100,2); // echo "$syslist[$x] 永久激活成功次数:$succcishu 失败次数:$failcishu 激活成功率:$cgl %
"; $e_array=array( array($syslist[$x],"$succcishu","$failcishu","$cgl %
")); foreach($e_array as $key=>$value) { list($xh,$xm,$zy,$zz)=$value; echo "$xh$xm$zy$zz"; } } } echo ""; echo ""; for ($x=0; $x<=$sysnum+1; $x++) { if(file_exists("counter/counter_".$syslist[$x]."_KMS_success.dat")==true) { $succcishu=file_get_contents("counter/counter_".$syslist[$x]."_KMS_success.dat"); $failcishu=0; if(file_exists("counter/counter_".$syslist[$x]."_KMS_fail.dat")==true) { $failcishu=file_get_contents("counter/counter_".$syslist[$x]."_KMS_fail.dat"); } $cgl=round(($succcishu)/($succcishu+$failcishu)*100,2); // echo "$syslist[$x] KMS激活成功次数:$succcishu 失败次数:$failcishu 激活成功率:$cgl %
"; $e_array=array( array($syslist[$x],"$succcishu","$failcishu","$cgl %
")); foreach($e_array as $key=>$value) { list($xh,$xm,$zy,$zz)=$value; echo ""; } } } echo "
系统版本KMS激活成功次数失败次数激活成功率
$xh$xm$zy$zz
"; $o2016succcishu=file_get_contents("counter/counter_Office2016_success.dat"); $o2019succcishu=file_get_contents("counter/counter_Office2019_success.dat"); $o2021succcishu=file_get_contents("counter/counter_Office2021_success.dat"); $o2016failcishu=0; $o2019failcishu=0; $o2021failcishu=0; if(file_exists("counter/counter_Office2019_fail.dat")==true) { $o2019failcishu=file_get_contents("counter/counter_Office2019_fail.dat"); } if(file_exists("counter/counter_Office2016_fail.dat")==true) { $o2016failcishu=file_get_contents("counter/counter_Office2016_fail.dat"); } if(file_exists("counter/counter_Office2021_fail.dat")==true) { $o2021failcishu=file_get_contents("counter/counter_Office2021_fail.dat"); } $o2016cgl=round(($o2016succcishu)/($o2016failcishu+$o2016succcishu)*100,2); $o2019cgl=round(($o2019succcishu)/($o2019failcishu+$o2019succcishu)*100,2); $o2021cgl=round(($o2021succcishu)/($o2021failcishu+$o2021succcishu)*100,2); // echo "Office2016 激活成功次数:$o2016succcishu 失败次数:$o2016failcishu 激活成功率:$o2016cgl %
"; // echo "Office2019 激活成功次数:$o2019succcishu 失败次数:$o2019failcishu 激活成功率:$o2019cgl %
"; //5、关闭目录 closedir($handler); echo ""; ?> Office版本 激活成功次数 激活失败次数 激活成功率 Office2016 $o2016succcishu $o2016failcishu $o2016cgl % Office2019 $o2019succcishu $o2019failcishu $o2019cgl % Office2021 $o2021succcishu $o2021failcishu $o2021cgl % EOT; ?>