mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
13 lines
No EOL
301 B
PHP
13 lines
No EOL
301 B
PHP
<?php
|
|
header('Content-Type: application/json');
|
|
|
|
require "google.php";
|
|
|
|
$query = $_REQUEST["q"];
|
|
$page = (int) $_REQUEST["p"] * 10;
|
|
$type = (int) $_REQUEST["type"];
|
|
|
|
$results = get_google_results($query, $page, $type);
|
|
|
|
echo json_encode($results, JSON_PRETTY_PRINT);
|
|
?>
|