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";
$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
Wed, Dec 25, 4:20 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193703

Event Timeline