<?php include 'classes/DataProxy.php'; $d = new DataProxy(); include "comps/header.php"; ?> <body id="RequestDemo"> <?php include "comps/nav.php"; ?> <div class="container"> <div class="row"> <div class="col-md-7 col-xs-12"> <h2>Get Instant Access</h2> <h5>Set your kiosks up and running</h5> <div> <img src="data/images/KiosksGroup.jpg"> </div> </div> <div class="col-md-5 col-xs-12"> <?php include "comps/requestDemo.php"; ?> </div> </div> </div>
} else { throw new Exception("Wrong url"); } } public function Query() { $this->Route(); print $this->responseData; } private function GetData($url) { $cookie = array(); foreach ($_COOKIE as $i => $one) { $cookie[] = $i . '=' . $one; } if ($cookie) { $opts = array('http' => array('method' => "GET", 'header' => "Cookie: " . implode('; ', $cookie) . "\r\n")); } else { $opts = array('http' => array('method' => "GET")); } $context = stream_context_create($opts); $this->responseData = file_get_contents($url, false, $context); foreach ($http_response_header as $value) { if (preg_match('/^Set-Cookie:/i', $value)) { header($value, false); } } } } $proxy = new DataProxy($_GET); $proxy->Query();
/** * Retrieves object from proxy into cache, then initializes subresources. * * @param object|null $object The object * * @return null */ private function _load($object = null) { $this->cache = $object !== null ? $object : $this->proxy->retrieveData($this->principal['sid']); }
<?php include 'classes/DataProxy.php'; $d = new DataProxy(); include "comps/header.php"; $main = $d->loadMain(); ?> <body id="home"> <?php include "comps/nav.php"; ?> <?php $carousel = $main; include "comps/carusel.php"; ?> <section class="container"> <div class="col-lg-12" id="WelcomeToWeb"> <h1 class="page-header"> Welcome to Building directories Pro <a href="RequestDemo" class="btn btn-success pull-right">Request Demo</a> </h1> </div> <?php $panels3 = $main; include "comps/panels3.php"; ?> <hr/> <br/> <div> <div class="col-lg-12"> <h2>Main Features</h2>