diff --git a/src/KmsCli.php b/src/KmsCli.php index db7a340..9215786 100644 --- a/src/KmsCli.php +++ b/src/KmsCli.php @@ -60,5 +60,3 @@ function showOfficeCli(string $host): void { // show office commands in shell echo "These commands are only applicable to the VL version of Office.\n"; echo "If it is a Retail version, please convert it to Volume first.\n\n"; } - -showOfficeCli('kms.343.re'); diff --git a/src/KmsWeb.php b/src/KmsWeb.php index 12cfa5a..5744cd1 100644 --- a/src/KmsWeb.php +++ b/src/KmsWeb.php @@ -1,10 +1,10 @@ '; + echo ''; echo ''; - echo ''; - echo "$header
"; + echo ''; + echo "$header
"; foreach ($kmsKeys as $title => $keys) { echo "

$title

"; echo ''; @@ -18,22 +18,22 @@ function showKeysHtml(array $kmsKeys, string $header): void { // show kms keys i function showHelpHtml(string $host): void { // show help message in html - echo ''; + echo ''; echo ''; - echo ''; - echo 'Windows Activation'; + echo ''; + echo "Windows Activation\n"; echo '

Windows KMS Activation

';
-    echo ' slmgr /upk\n slmgr /ipk KMS_KEY\n slmgr /skms ' . $host . '\n slmgr /ato\n slmgr /dlv ';
-    echo '

KMS (Office)
'; - echo 'KMS_KEY (Windows)
'; - echo 'KMS_KEY (Windows Server)

'; + echo " slmgr /upk\n slmgr /ipk KMS_KEY\n slmgr /skms $host\n slmgr /ato\n slmgr /dlv "; + echo '

KMS (Office)
'; + echo 'KMS_KEY (Windows)
'; + echo 'KMS_KEY (Windows Server)

'; } function showOfficeHtml(string $host): void { // show office commands in html - echo ''; + echo ''; echo ''; - echo '
'; - echo "Office KMS Server"; + echo ''; + echo "Office KMS Server\n
"; foreach (officeInfo() as $version => $officeInfo) { echo "

Office Professional Plus $version VL

\n"; echo "
" . officeCommand($officeInfo[0], $officeInfo[1], $host) . "
\n"; @@ -48,5 +48,3 @@ function showOfficeHtml(string $host): void { // show office commands in html echo "

以上命令仅用于激活VL版本的Office,如果当前为Retail版本,请先转化为批量授权版本。

\n"; echo "
"; } - -showOfficeHtml('kms.343.re');
操作系统KMS密钥