403Webshell
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/v2.hellogtx.com/application/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/v2.hellogtx.com/application/Bootstrap.php
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    
//        protected function _initCheckWWW(){
//        if(!preg_match('/www/', $_SERVER['HTTP_HOST']))
//         {
//            header("Location: https://www.dstoursonline.com/");
//            exit;
//         }
//
//    }
    protected function _initAutoload() {
        
        $autoloader = new Zend_Application_Module_Autoloader(array(
            'namespace' => 'Travel',
            'basePath' => dirname(__FILE__),
        ));
        Zend_Controller_Action_HelperBroker::addPrefix('Helper');	
        Zend_Session::start();
        date_default_timezone_set("Asia/Kolkata"); 
    }
    protected function _initControllers() {
        $this->bootstrap('frontController');
        $this->_front = $this->getResource('frontController');
        $this->_front->addControllerDirectory(APPLICATION_PATH . '/admin/controllers', 'admin');
    }
        
    public function _initRoutes() {

        $CONST_DESTINATION_MASTER = unserialize(CONST_DESTINATION_MASTER);

        // start : get request here
            $this->bootstrap('frontController');
            $front = $this->getResource('frontController');
            $front->setRequest(new Zend_Controller_Request_Http());

            $des = ltrim($front->getRequest()->getRequestUri() , '/' );
//            print_r($des); die('here');

        // end : get request here 
            
            $routerArray = [];
            
            $routerArray[0] = new Zend_Controller_Router_Route(':cms', array('module' => 'cms', 'controller' => 'index', 'action' => 'index'));
//            $routerArray[1] = new Zend_Controller_Router_Route(':countryname/:name/:pkgid/:catid/:gtxid/:tourtype/', array('module' => 'detail', 'controller' => 'index', 'action' => 'index'));
            $routerArray[1] = new Zend_Controller_Router_Route('detail/:countryname/:name/', array('module' => 'detail', 'controller' => 'index', 'action' => 'index'));
            
            
              $routerArray[2] = new Zend_Controller_Router_Route('destination/:key', array('module' => 'default', 'controller' => 'index', 'action' => 'destination'));
           
            $routerArray[3] = new Zend_Controller_Router_Route('blog/', array('module' => 'blog', 'controller' => 'index', 'action' => 'index'));
            $routerArray[4] = new Zend_Controller_Router_Route('blog/:p', array('module' => 'blog', 'controller' => 'index', 'action' => 'blog-detail'));
            $routerArray[5] = new Zend_Controller_Router_Route('hotels/:name/', array('module' => 'hotels', 'controller' => 'search', 'action' => 'hotel-detail'));
            $routerArray[6] = new Zend_Controller_Router_Route('tour-destination/:des', array('module' => 'tours', 'controller' => 'package', 'action' => 'index'));
            $routerArray[7] = new Zend_Controller_Router_Route('customer/agencycustomerlogin/', array('module' => 'default', 'controller' => 'customer', 'action' => 'agencycustomerlogin'));
            $routerArray[8] = new Zend_Controller_Router_Route('customer/customerlogin/', array('module' => 'default', 'controller' => 'customer', 'action' => 'customerlogin'));
            $routerArray[9] = new Zend_Controller_Router_Route('users/', array('module' => 'users', 'controller' => 'index', 'action' => 'index'));
            $routerArray[10] = new Zend_Controller_Router_Route('detail/index/index-ajax-data', array('module' => 'detail', 'controller' => 'index', 'action' => 'index-ajax-data'));
            $routerArray[11] = new Zend_Controller_Router_Route('detail/index/get-hotel-detail', array('module' => 'detail', 'controller' => 'index', 'action' => 'get-hotel-detail'));
             
            $routerArray[12] = new Zend_Controller_Router_Route('agentlogin', array('module' => 'agentlogin', 'controller' => 'index', 'action' => 'index'));
            $routerArray[13] = new Zend_Controller_Router_Route('agentlogin/index/agentregistration', array('module' => 'agentlogin', 'controller' => 'index', 'action' => 'agentregistration'));
            $routerArray[14] = new Zend_Controller_Router_Route('admin', array('module' => 'admin', 'controller' => 'index', 'action' => 'index'));
            $routerArray[15] = new Zend_Controller_Router_Route('payment', array('module' => 'payment', 'controller' => 'index', 'action' => 'index'));
            $routerArray[16] = new Zend_Controller_Router_Route('travelogue', array('module' => 'travelogue', 'controller' => 'index', 'action' => 'index'));
            $routerArray[17] = new Zend_Controller_Router_Route('travelogue/:travid', array('module' => 'travelogue', 'controller' => 'index', 'action' => 'detail'));
            $routerArray[18] = new Zend_Controller_Router_Route('destination', array('module' => 'destination', 'controller' => 'index', 'action' => 'index'));
            $routerArray[19] = new Zend_Controller_Router_Route('detail/index/write-session', array('module' => 'detail', 'controller' => 'index', 'action' => 'write-session'));
           
            $routerArray[20] = new Zend_Controller_Router_Route('tour-destination/domestic-tour-packages.html', array('module' => 'destination', 'controller' => 'index', 'action' => 'domestic-destination'));
            $routerArray[21] = new Zend_Controller_Router_Route('tour-destination/international-tour-packages.html', array('module' => 'destination', 'controller' => 'index', 'action' => 'international-destination'));
            $routerArray[23] = new Zend_Controller_Router_Route('tour-destination/package/:getsearchdata', array('module' => 'tours', 'controller' => 'package', 'action' => 'getsearchdata'));
            $routerArray[24] = new Zend_Controller_Router_Route('tour-destination/category/:cat', array('module' => 'tours', 'controller' => 'package', 'action' => 'index'));
               
		    $routerArray[25] = new Zend_Controller_Router_Route('thanks.html', array('module' => 'default', 'controller' => 'index', 'action' => 'thanks'));
		    $routerArray[26] = new Zend_Controller_Router_Route('deals', array('module' => 'default', 'controller' => 'index', 'action' => 'deals'));
            $routerArray[27] = new Zend_Controller_Router_Route('activities/:act', array('module' => 'tours', 'controller' => 'activity', 'action' => 'index'));
            $routerArray[28] = new Zend_Controller_Router_Route('activities/:des/:actname', array('module' => 'activities', 'controller' => 'index', 'action' => 'index'));
            $routerArray[29] = new Zend_Controller_Router_Route('offer.html', array('module' => 'default', 'controller' => 'index', 'action' => 'offer'));
            $routerArray[30] = new Zend_Controller_Router_Route('visa', array('module' => 'visa', 'controller' => 'index', 'action' => 'index'));
            $routerArray[31] = new Zend_Controller_Router_Route('visa/:desname', array('module' => 'visa', 'controller' => 'visa', 'action' => 'index'));
            $routerArray[32] = new Zend_Controller_Router_Route('visa/:desvisa/:visaname', array('module' => 'visa', 'controller' => 'visa', 'action' => 'visa-details'));
            $routerArray[33] = new Zend_Controller_Router_Route('activity', array('module' => 'activities', 'controller' => 'index', 'action' => 'home'));

             /**======= Flight route  ========***/
            $routerArray[34] = new Zend_Controller_Router_Route('flight', array('module' => 'default', 'controller' => 'flight', 'action' => 'index'));
            $routerArray[35] = new Zend_Controller_Router_Route('flight/:flight-search', array('module' => 'default', 'controller' => 'flight', 'action' => 'flight-search'));
            $routerArray[36] = new Zend_Controller_Router_Route('flight/getflightsearch', array('module' => 'default', 'controller' => 'flight', 'action' => 'getflightsearch'));
            $routerArray[37] = new Zend_Controller_Router_Route('flight/flightsearchdata', array('module' => 'default', 'controller' => 'flight', 'action' => 'flightsearchdata'));
            $routerArray[38] = new Zend_Controller_Router_Route('flight/getflightfarerules', array('module' => 'default', 'controller' => 'flight', 'action' => 'getflightfarerules'));
            $routerArray[39] = new Zend_Controller_Router_Route('flight/book-noow', array('module' => 'default', 'controller' => 'flight', 'action' => 'book-noow'));
            $routerArray[40] = new Zend_Controller_Router_Route('flight/review/:traceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'review'));
            $routerArray[41] = new Zend_Controller_Router_Route('flight/travellers/:traceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'travellers'));
            $routerArray[42] = new Zend_Controller_Router_Route('flight/searchcutomer', array('module' => 'default', 'controller' => 'flight', 'action' => 'searchcutomer'));
            $routerArray[43] = new Zend_Controller_Router_Route('flight/save-passenger-details', array('module' => 'default', 'controller' => 'flight', 'action' => 'save-passenger-details'));
            $routerArray[44] = new Zend_Controller_Router_Route('flight/add-onn-service/:traceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'add-onn-service'));
            $routerArray[45] = new Zend_Controller_Router_Route('flight/load-add-ons', array('module' => 'default', 'controller' => 'flight', 'action' => 'load-add-ons'));
            $routerArray[46] = new Zend_Controller_Router_Route('flight/getflightfarequote', array('module' => 'default', 'controller' => 'flight', 'action' => 'getflightfarequote'));
            $routerArray[47] = new Zend_Controller_Router_Route('flight/continue-accept', array('module' => 'default', 'controller' => 'flight', 'action' => 'continue-accept'));
            $routerArray[48] = new Zend_Controller_Router_Route('flight/updatefare', array('module' => 'default', 'controller' => 'flight', 'action' => 'updatefare'));
            $routerArray[49] = new Zend_Controller_Router_Route('flight/book-flight/:traceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'book-flight'));
            $routerArray[50] = new Zend_Controller_Router_Route('flight/booking-confirmed', array('module' => 'default', 'controller' => 'flight', 'action' => 'booking-confirmed'));
            $routerArray[51] = new Zend_Controller_Router_Route('flight/pay-now/:traceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'pay-now'));
            $routerArray[52] = new Zend_Controller_Router_Route('flight/check-payment/:id', array('module' => 'default', 'controller' => 'flight', 'action' => 'check-payment'));
            $routerArray[53] = new Zend_Controller_Router_Route('flight/e-ticket/:bookingId', array('module' => 'default', 'controller' => 'flight', 'action' => 'e-ticket'));
            $routerArray[54] = new Zend_Controller_Router_Route('flight/invoice/:bookingId', array('module' => 'default', 'controller' => 'flight', 'action' => 'invoice'));
            $routerArray[55] = new Zend_Controller_Router_Route('flight/viewmore', array('module' => 'default', 'controller' => 'flight', 'action' => 'viewmore'));
            $routerArray[56] = new Zend_Controller_Router_Route('flight/view-details', array('module' => 'default', 'controller' => 'flight', 'action' => 'view-details'));
            $routerArray[57] = new Zend_Controller_Router_Route('flight/view-details-pending', array('module' => 'default', 'controller' => 'flight', 'action' => 'view-details-pending'));
            $routerArray[58] = new Zend_Controller_Router_Route('flight/cancel-ticket/:bookingId', array('module' => 'default', 'controller' => 'flight', 'action' => 'cancel-ticket'));
            $routerArray[59] = new Zend_Controller_Router_Route('flight/amendment-details', array('module' => 'default', 'controller' => 'flight', 'action' => 'amendment-details'));
            $routerArray[60] = new Zend_Controller_Router_Route('flight/removebaggage', array('module' => 'default', 'controller' => 'flight', 'action' => 'removebaggage'));
            $routerArray[61] = new Zend_Controller_Router_Route('flight/submit-amendment/:bookingId', array('module' => 'default', 'controller' => 'flight', 'action' => 'submit-amendment'));
            $routerArray[62] = new Zend_Controller_Router_Route('flight/update-refund', array('module' => 'default', 'controller' => 'flight', 'action' => 'update-refund'));
            $routerArray[63] = new Zend_Controller_Router_Route('flight/getseatpage', array('module' => 'default', 'controller' => 'flight', 'action' => 'getseatpage'));
            $routerArray[64] = new Zend_Controller_Router_Route('flight/seatmap', array('module' => 'default', 'controller' => 'flight', 'action' => 'seatmap'));
            $routerArray[65] = new Zend_Controller_Router_Route('flight/continuewithseatmap', array('module' => 'default', 'controller' => 'flight', 'action' => 'continuewithseatmap'));
            $routerArray[66] = new Zend_Controller_Router_Route('flight/save-gst-details', array('module' => 'default', 'controller' => 'flight', 'action' => 'save-gst-details'));

             $router = Zend_Controller_Front::getInstance()->getRouter();
			$router->addRoutes( $routerArray );
			$controller = Zend_Controller_Front::getInstance();
			$controller->setRouter($router);
    }
    
    
    protected function _initCache() {
        
        Zend_Controller_Front::getInstance()->setParam('disableOutputBuffering', true);
        
        $frontend= array(
            'lifetime' => 7200,
            'automatic_serialization' => true
        );

        $backend= array(
            'cache_dir' => APPLICATION_PATH . '/../cache',
        );
    
        $cache = Zend_Cache::factory('core',
            'File',
            $frontend,
            $backend
        );
        //Zend_Registry::set('cache',$cache);
    }
  
    
    
}

Youez - 2016 - github.com/yon3zu
LinuXploit