Exemplo n.º 1
0
 public static function load()
 {
     $fh = fopen(getcwd() . '/inc/tripthru/config.txt', 'r');
     while ($line = fgets($fh)) {
         $e = explode("=", $line);
         switch ($e[0]) {
             case "HomeUrl":
                 self::$homeUrl = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
             case "RelativeHomeUrl":
                 self::$relativeHomeUrl = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
             case "PartnerAccessToken":
                 self::$partnerAccessToken = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
             case "PartnerName":
                 self::$partnerName = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
             case "PartnerId":
                 self::$partnerId = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
             case "PartnerUrl":
                 self::$partnerBaseUrl = trim(str_replace(array("\n", "\t", "\r"), '', $e[1]));
                 break;
         }
     }
     fclose($fh);
 }
Exemplo n.º 2
0
 function __construct()
 {
     $apiConfig = array();
     $this->api_key = ConfigTT::getFleetApiKey();
     $this->api_cliente_id = ConfigTT::getApiClientId();
     $this->api_secret = ConfigTT::getApiSecret();
     $this->getHomeUrl = ConfigTT::getHomeUrl();
     $this->getRelativeHomeUrl = ConfigTT::getRelativeHomeUrl();
     $this->debug = ConfigTT::isDebug();
     $this->resetPasswordCallbackPage = ConfigTT::getResetPasswordCallbackPage();
     $this->partnerUrl = ConfigTT::getPartnerBaseUrl();
     $this->partnerAccessToken = ConfigTT::getPartnerAccessToken();
     $this->partnerId = ConfigTT::getPartnerId();
 }
Exemplo n.º 3
0
        include 'pages/tracking.php';
        break;
    case 'receipt':
        include 'pages/receipt.php';
        break;
    default:
        include 'pages/home.php';
        break;
}
$content = ob_get_clean();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php 
echo ConfigTT::getPartnerName();
?>
 bookings</title>
        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta name="robots" content="index, follow, noarchive"/>
        <meta name="googlebot" content="noarchive"/>
        <base href="<?php 
echo $td->getHomeUrl();
?>
" />
        <link rel="shortcut icon" href="images/icon.ico" type="image/x-icon" />

        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
            <link rel="stylesheet" href="<?php