auth_chk.php 342 B

12345678910111213141516
  1. <?php
  2. if($_SESSION[admin_cd_user]==""||$_SESSION[admin_cd_user]==null){
  3. ?>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. </head>
  8. <script>
  9. alert("본페이지는 관리자만 접근 가능합니다.");
  10. location.replace("<?=ADMIN_PATH?>index.php");
  11. </script>
  12. </head>
  13. </html>
  14. <?
  15. }
  16. ?>