Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是想知道是否有一个特定的链接或一段代码我可以用来创建一个启动按钮来启动网站,即将它退出维护模式?
根据是否启用维护模式,您可以在数据库中找到 1 或 0 的标志。
然后,您可以编写一个脚本并将其放在允许按下按钮以更改数据库中的标志状态的页面上,从而使站点在线。
IE
PHP 页面(大概在密码墙后面),其中包含一个带有提交按钮的表单到 PHP 脚本,其中包含一个 mySQL UPDATE 查询以更改标志状态。