Permalink
Browse files

Auto resolved some configs.

  • Loading branch information...
1 parent aaa97a7 commit 84255c5d3cc27dd3dcec8722556949c7734d48fa abenson committed Mar 28, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 application/config/config.php
@@ -14,7 +14,9 @@
| path to your installation.
|
*/
-$config['base_url'] = 'http://dev-gallerycms.com/';
+$config['base_url'] = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '')
+ .'://'.$_SERVER['HTTP_HOST'].str_replace('//','/',dirname($_SERVER['SCRIPT_NAME']).'/');
+
/*
* Page title that appears in the browser's title bar.
@@ -24,7 +26,7 @@
/*
* From email address for sending system emails.
*/
-$config['from_email_address'] = 'noreply@gallerycms.com';
+$config['from_email_address'] = 'noreply@' . $_SERVER['HTTP_HOST'];
/*
|--------------------------------------------------------------------------
| Index File

0 comments on commit 84255c5

Please sign in to comment.