Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8896186
ondemand-source.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
442 B
Subscribers
None
ondemand-source.php
View Options
<?php
require_once
'../../support/php/JavelinHelper.php'
;
$query
=
$_GET
[
'q'
];
$list
=
file_get_contents
(
'animals.txt'
);
$list
=
explode
(
"
\n
"
,
trim
(
$list
));
$response
=
array
();
foreach
(
$list
as
$animal
)
{
if
(
strncasecmp
(
$query
,
$animal
,
strlen
(
$query
))
==
0
)
{
$response
[]
=
array
(
ucfirst
(
$animal
),
'http://www.google.com/search?q='
.
$animal
,
$animal
);
}
}
echo
JavelinHelper
::
renderAjaxResponse
(
$response
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 11, 10:45 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
3391409
Default Alt Text
ondemand-source.php (442 B)
Attached To
rJX Javelin
Event Timeline
Log In to Comment