Changeset f5d61d84 in github
- Timestamp:
- Oct 21, 2009 4:47:40 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6020c3d
- Parents:
- efe93ad
- Files:
-
- 1 deleted
- 2 edited
-
config/main.inc.php.dist (modified) (1 diff)
-
index.php (modified) (1 diff)
-
plugins/force_https/force_https.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
config/main.inc.php.dist
re4acbbd rf5d61d84 49 49 // possible units: s, m, h, d, w 50 50 $rcmail_config['message_cache_lifetime'] = '10d'; 51 52 // enforce connections over https 53 // with this option enabled, all non-secure connections will be redirected. 54 // set the port for the ssl connection as value of this option if it differs from the default 443 55 $rcmail_config['force_https'] = FALSE; 51 56 52 57 // automatically create a new RoundCube user when log-in the first time. -
index.php
rb571339 rf5d61d84 62 62 if ($RCMAIL->action=='error' && !empty($_GET['_code'])) { 63 63 raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE); 64 } 65 66 // check if https is required (for login) and redirect if necessary 67 if (empty($_SESSION['user_id']) && ($force_https = $RCMAIL->config->get('force_https', false))) { 68 $https_port = is_bool($force_https) ? 443 : $force_https; 69 if (!(isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == $use_https || $RCMAIL->config->get('use_https'))) { 70 header('Location: https://' . $_SERVER['HTTP_HOST'] . ($https_port != 443 ? ':' . $https_port : '') . $_SERVER['REQUEST_URI']); 71 exit; 72 } 64 73 } 65 74
Note: See TracChangeset
for help on using the changeset viewer.
