<?php

ini_set("memory_limit","200M");
date_default_timezone_set('Africa/Johannesburg');

// Define path to application directory
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
		
 defined('UPLOADS_PATH')
    || define('UPLOADS_PATH', realpath(dirname(__FILE__) . '/../public/uploads/'));
defined('DOCS_PATH')
    || define('DOCS_PATH', realpath(dirname(__FILE__) . '/../public/xls/'));
defined('FILES_PATH')
    || define('FILES_PATH', realpath(dirname(__FILE__) . '/../public/files/'));
defined('CLASS_PATH')
    || define('CLASS_PATH', realpath(dirname(__FILE__) . '/../public/class/'));
		
		defined('CLASSES_PATH')
    || define('CLASSES_PATH', realpath(dirname(__FILE__) . '/../public/Classes/'));
		defined('TCPDF_PATH')
    || define('TCPDF_PATH', realpath(dirname(__FILE__) . '/../public/tcpdf/'));	
defined('IMG_PATH')
    || define('IMG_PATH', realpath(dirname(__FILE__) . '/../public/IMGS/'));		
		defined('AC_PATH')
    || define('AC_PATH', realpath(dirname(__FILE__) . '/../public/accre/'));
		defined('SITEDOC')
    || define('SITEDOC', realpath(dirname(__FILE__) . '/../public/TermsText/'));
	defined('LOCALDATA')
    || define('LOCALDATA', realpath(dirname(__FILE__) . '/../public/local_data/'));
defined('ART_PATH')
    || define('ART_PATH', realpath(dirname(__FILE__) . '/../public/artists/'));	
	defined('PLS_PATH')
    || define('PLS_PATH', realpath(dirname(__FILE__) . '/../public/players/'));	
	defined('PLSH_PATH')
    || define('PLSH_PATH', realpath(dirname(__FILE__) . '/../public/players/thumb/'));	

    
    // Ensure library/ is on include_path
// Define path to application directory



// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

/** Zend_Application */


require_once 'Zend/Application.php';
require_once 'Other/Functions.php';
require_once 'Other/Notifications.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()->run();
 