- Timestamp:
- 2011/01/08 03:11:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/LC_Page_Admin.php
r19805 r19854 44 44 function init() { 45 45 $this->template = MAIN_FRAME; 46 47 //IP制限チェック 48 if(defined("ADMIN_ALLOW_HOSTS")){ 49 $allow_hosts = unserialize(ADMIN_ALLOW_HOSTS); 50 if(array_search($_SERVER["REMOTE_ADDR"],$allow_hosts) === FALSE){ 51 SC_Response::sendError("403"); 52 exit; 53 } 54 } 55 56 //SSL制限チェック 57 if(ADMIN_FORCE_SSL == TRUE){ 58 if(empty($_SERVER['HTTPS']) AND $_SERVER['SERVER_PORT'] != 443){ 59 SC_Response::sendRedirect($SERVER["REQUEST_URI"], $_GET,FALSE, TRUE); 60 } 61 } 46 62 47 63 // ディスプレイクラス生成
Note: See TracChangeset
for help on using the changeset viewer.