Page MenuHomePhabricator

TYPYPMapController.php
No OneTemporary

TYPYPMapController.php

<?php
namespace Drupal\typ_profile\Controller;
use Drupal\Core\Controller\ControllerBase;
class TYPYPMapController // extends ControllerBase
{
public function __construct()
{
}
public function ypmap()
{
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";
// $latitude = 6.99416;
// $longitude = 100.45697;
// $height = 430;
// $width = 500;
$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
Sat, May 18, 2:54 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
164414

Event Timeline