added different redirects

This commit is contained in:
arzynik 2012-12-11 13:09:18 -05:00
parent 09325bc01b
commit c57c1d7548

View File

@ -46,6 +46,7 @@ class Crunchbutton_App extends Cana_App {
switch ($_SERVER['SERVER_ADDR']) {
case '74.207.245.57':
case '_IP_':
case '66.175.217.154':
$params['env'] = 'live';
break;
default:
@ -79,7 +80,7 @@ class Crunchbutton_App extends Cana_App {
error_reporting(E_ERROR | E_PARSE);
if ($_SERVER['HTTPS'] != 'on') {
header('Location: https://_DOMAIN_'.$_SERVER['REQUEST_URI']);
header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
exit;
}
}