Git Repository Public Repository

namibia

URLs

Copy to Clipboard
 
f5b7b4d27eead0d7a32711409257710adb5e16c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
 * This makes our life easier when dealing with paths. Everything is relative
 * to the application root now.
 */
date_default_timezone_set('Africa/Johannesburg');
chdir(dirname(__DIR__));
//for maintenance purposes
//require_once('maintenance.html');
//die;
#-> Switching configs.
$isDev   = false;
$isStage = false;
$isLive  = false;
$brochure = getenv('BROCHURE_ENV');
switch (getenv('APPLICATION_ENV'))
{
	case 'development':
			$isDev   = true;
			$appName = 'Bid4Cars (dev)';
			break;
	case 'staging':
			$isStage = true;
			$appName = 'Bid4Cars (stage)';
			break;
	default:
			$isLive  = true;
			$uname   = php_uname("n");
			$appName = 'Bid4Cars';
			if ('Production.localdomain' == $uname
				|| 'VodacomStage' == $uname)
			{
				$isStage = true;
				$appName = 'Bid4Cars (stage)';
			}
			if ('nrad.local' == $uname)
			{
				$isDev = true;
				$appName = 'Bid4Cars (dev)';
			}
			break;
}
define('APP_KEY', 'namibia');
define('IS_BROCHURE', (!$brochure ? false : true));
define('BROCHURE_KEY', $brochure);
define('IS_DEV_ENV', $isDev);
define('IS_STAGE_ENV', $isStage);
define('IS_LIVE_ENV', $isLive);
if (extension_loaded('newrelic'))
{
	newrelic_set_appname($appName);
}

// Setup autoloading
require 'init_autoloader.php';

// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();

Commits for namibia/public/index.php

Diff revisions: vs.
Revision Author Commited Message
bb2698 ... Diff Diff Mark Mon 24 Oct, 2016 08:44:08 +0000

latest update

df0489 ... Mark Fri 14 Oct, 2016 10:01:00 +0000

initial commit