<?php
   include "UtilityFunction.php";
   $accountID=isset($_POST['accountID'])?$_POST['accountID']:"";
   $deviceID=isset($_POST['deviceID'])?$_POST['deviceID']:"";

   $gtsserver="localhost";
   $gtsusername="gts";
   $gtspassword="opengts";
   $gtsdb="gts";

   $tacserver = "localhost";
   $tacusername = "gts";
   $tacpassword = "opengts";
   $tacdb = "autocare_gts";

   $LiveEventDBserver="up108.glovision.co";   //liver serever for east,west 
   //$LiveEventDBserver="localhost";
   if($accountID=="gvk-up-108"){
     
       if(!getDeviceServer($deviceID)){ //check vehicle is in present server or not
          $tacserver="up108eastapilocal";
          $gtsserver="up108eastapilocal";
       }
   }
  
   if($accountID=="gvk-up-102"){
       $LiveEventDBserver="up102.glovision.co";//liver serever for east,west
       $gtsserver="up102.glovision.co";
       $tacserver="up102.glovision.co";

        
       $gtsserver="up102west.glovision.co";
       $tacserver="up102west.glovision.co";
       if(!getDeviceServer($deviceID)){//second server config
          $tacserver="up102east.glovision.co";
          $gtsserver="up102east.glovision.co";
       }
       
   }
 
   if($accountID=="als"){
       $tacserver="als.glovision.co";
       $LiveEventDBserver="als.glovision.co";//liver serever for als
       $gtsserver="als.glovision.co";
   }


  

?>
