Skip to content
This repository
Browse code

Auto resolved some configs.

  • Loading branch information...
commit 84255c5d3cc27dd3dcec8722556949c7734d48fa 1 parent aaa97a7
authored March 28, 2012

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  application/config/config.php
6  application/config/config.php
@@ -14,7 +14,9 @@
14 14
 | path to your installation.
15 15
 |
16 16
 */
17  
-$config['base_url']	= 'http://dev-gallerycms.com/';
  17
+$config['base_url'] = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '')
  18
+                      .'://'.$_SERVER['HTTP_HOST'].str_replace('//','/',dirname($_SERVER['SCRIPT_NAME']).'/');
  19
+
18 20
 
19 21
 /*
20 22
  * Page title that appears in the browser's title bar.
@@ -24,7 +26,7 @@
24 26
 /*
25 27
  * From email address for sending system emails.
26 28
  */
27  
-$config['from_email_address']   = 'noreply@gallerycms.com';
  29
+$config['from_email_address']   = 'noreply@' . $_SERVER['HTTP_HOST'];
28 30
 /*
29 31
 |--------------------------------------------------------------------------
30 32
 | Index File

0 notes on commit 84255c5

Please sign in to comment.
Something went wrong with that request. Please try again.