Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1083279
TYPYPMapController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
TYPYPMapController.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Wed, Dec 25, 4:20 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193703
Attached To
rPF typ_profile
Event Timeline
Log In to Comment