⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updating.apply.php

📁 这是整套横扫千军3D版游戏的源码
💻 PHP
字号:
<?php require("inc/head.php") ?>

<?php

  function goBackButton()
  {
    $goback = $_GET['goback'];
    if ($goback == "") $goback = "updating.php";
    echo "<a class='button1' href='$goback'>OK</a>";
  }

  function forceUpdate()
  {
    $conn = new ServerConnection();
    if (($res = $conn->connect()) !== true)
    {
      printError("<p style='color: black; font-weight: bold'>" . "Error: " . $res . "</p>");
      return;
    }
    if (($conn->identify()) == false)
    {
      printError("<p style='color: black; font-weight: bold'>" . "Error while trying to authenticate with the server" . "</p>");
      return;
    }

    if (($res = $conn->sendLine("queryserver RELOADUPDATEPROPERTIES")) !== TRUE)
    {
      printError("<p style='color: black; font-weight: bold'>" . "Error while communicating with the server" . "</p>");
      return;
    }
    if (($res = $conn->readLine()) === FALSE)
    {
      printError("<p style='color: black; font-weight: bold'>" . "Error while communicating with the server" . "</p>");
      return;
    }

    $res = removeBeginning($res, 'SERVERMSG ');
    echo "<p><span style='color: blue; font-weight: bold'>TASServer response:</span> $res</p>";

    // close connection with server:
    $conn->close();
  }

  forceUpdate();
  goBackButton();
?>

<?php require("inc/footer.php") ?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -