Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1110012
yp_map.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
yp_map.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 2, 6:43 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
199563
Attached To
rPF typ_profile
Event Timeline
Log In to Comment