| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ptcfinance/ |
Upload File : |
<?php
date_default_timezone_set("Asia/Calcutta");
@setcookie("PTC", "PTC Financial", time()+21600,'','',true,true);
// define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', __DIR__ . '/application');
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// set include path
set_include_path(realpath(APPLICATION_PATH . '/../library')
. PATH_SEPARATOR . get_include_path());
require_once 'Zend/Config/Ini.php';
require_once 'Zend/Application.php';
class Application
{
public static $env;
public static function bootstrap($resource = null)
{
include_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Saffron_');
$application = new Zend_Application(self::_getEnv(), self::_getConfig());
return $application->getBootstrap()->bootstrap($resource);
}
public static function run()
{
self::bootstrap()->run();
}
private static function _getEnv()
{
return self::$env ? : APPLICATION_ENV;
}
private static function _getConfig()
{
$env = self::_getEnv();
$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', $env, true);
return $config->toArray();
}
}