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.
私のウェブサイトの管理者がオフラインにする機能を作成しています。ただし、サイトは管理者または mod が何らかの方法でアクセスできる必要があります。
どのようにすればよいですか?
インクルードのどこかに:
if($mainstance == 1){ if(strpos($_SERVER['REQUEST_URI'],'/admin/') === false) die("Site's down"); }
これにより、/admin/ ディレクトリ以外はすべてアクセスできなくなります。