Changeset 20928 for branches/version-2_11-dev/data/class
- Timestamp:
- 2011/05/17 16:15:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/admin/LC_Page_Admin.php
r20870 r20928 47 47 //IP制限チェック 48 48 $allow_hosts = unserialize(ADMIN_ALLOW_HOSTS); 49 if (count($allow_hosts) > 0){50 if (array_search($_SERVER["REMOTE_ADDR"],$allow_hosts) === FALSE){49 if (is_array($allow_hosts) && count($allow_hosts) > 0) { 50 if (array_search($_SERVER["REMOTE_ADDR"],$allow_hosts) === FALSE) { 51 51 SC_Utils_Ex::sfDispError(AUTH_ERROR); 52 52 }
Note: See TracChangeset
for help on using the changeset viewer.