Permalink
Browse files

make home page url configurable

  • Loading branch information...
1 parent 34da001 commit 71b143078dc2f3bcf3dc0be4dcae753f458229d8 @gorillamania gorillamania committed Mar 18, 2012
Showing with 12 additions and 16 deletions.
  1. +5 −11 delivery/index.php
  2. +4 −3 includes/CommonSettings.php
  3. +3 −2 includes/LocalSettings-sample.php
View
@@ -1,18 +1,12 @@
+<?php
+require dirname(__FILE__) . "/../includes/Framework.php";
+?>
<html>
<head>
-<meta http-equiv="refresh" content="5;url=http://www.liftium.com/" />
+<meta http-equiv="refresh" content="5;url=<?php echo $CONFIG['homepage_url']?>" />
</head>
<body>
-You may be looking for <a href="http://www.liftium.com">www.liftium.com</a>. Taking you there in 5 seconds...
+You may be looking for <a href="<?php echo $CONFIG['homepage_url']?>"><?php echo $CONFIG['homepage_url']?></a>. Taking you there in 5 seconds...
-<script type="text/javascript">
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-try {
-var pageTracker = _gat._getTracker("UA-10292921-3");
-pageTracker._trackPageview();
-} catch(err) {}</script>
</body>
</html>
@@ -1,6 +1,6 @@
<?php
/********
- * Do not edit this file for making config changes. Change LocalConfig instead
+ * Do not edit this file for making config changes. Change LocalSettings instead
********/
// *** Auto load set up
@@ -18,7 +18,7 @@ function __autoload($class_name){
ini_set('display_errors', false);
ini_set('log_errors', true);
-// These hosts are defined as development hosts, for Framework::isDev()
+// These hosts are defined as development hosts, for Framework::isDev()
$DEV_HOSTS = array("localhost");
// Time zone stuff
@@ -32,7 +32,8 @@ function __autoload($class_name){
// See LocalSettings-sample.php as an example
$CONFIG = array(
'db' => array(),
- 'memcached' => array(),
+ 'memcached' => array(),
+ 'homepage_url' => 'http://www.liftium.com'
);
// Pull in the local config for any overrides
@@ -21,22 +21,23 @@
$CONFIG['delivery_url'] = "http://delivery.liftium.com";
$CONFIG['geoip_url'] = "http://geoip.liftium.com";
+$CONFIG['homepage_url'] = "http://www.liftium.com/";
// Different settings if on a dev box
$DEV_HOSTS = array("localhost", "your.dev.server");
if (Framework::isDev()){
// Turn up error reporting on dev
error_reporting(E_STRICT | E_ALL);
ini_set('display_errors', true);
-
+
$CONFIG['db'] = array(
'masterhost' => 'localhost',
'slavehosts' => array('localhost'),
'username' => 'your_username',
'password' => 'your_password',
'dbname' => 'liftium_dev'
);
-
+
$CONFIG['memcached'] = array(
// Array of memcached hosts
'0' => array(

0 comments on commit 71b1430

Please sign in to comment.