Page MenuHomePhabricator

yp_map.php
No OneTemporary

yp_map.php

<?php
namespace Drupal\typ_profile;
use Drupal\Core\Controller\ControllerBase;
class yp_map extends ControllerBase
{
public function __construct()
{
}
public function ypmap_render()
{
if (isset($_GET["latitude"]) || isset($_POST["latitude"])) {
$latitude = isset($_GET["latitude"]) ? $_GET["latitude"] : $_POST["latitude"];
}
if (isset($_GET["longitude"]) || isset($_POST["longitude"])) {
$longitude = isset($_GET["longitude"]) ? $_GET["longitude"] : $_POST["longitude"];
}
if (isset($_GET["height"]) || isset($_POST["height"])) {
$height = isset($_GET["height"]) ? $_GET["height"] : $_POST["height"];
} else {
$height = "430";
}
if (isset($_GET["width"]) || isset($_POST["width"])) {
$width = isset($_GET["width"]) ? $_GET["width"] : $_POST["width"];
} else {
$width = "500";
}
//$height -= 30;
$LandingPage_URL = "http://landingpage.yellowpages.co.th";
$display[] = array(
'#theme' => 'typ_ypmap',
'#latitude' => $latitude,
'#longitude' => $longitude,
'#height' => $height,
'#width' => $width,
'#bypass' => $_GET['bypass'],
'#LandingPage_URL' => $LandingPage_URL
);
return $display;
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, May 17, 10:29 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
164209

Event Timeline