1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/results.php
Peter Kokot 0f95b8c709 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-17 07:29:46 +02:00

34 lines
671 B
PHP

<?php
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include $_SERVER['DOCUMENT_ROOT'] . '/include/results.inc';
if (!isset($_GET['l']) || !is_string($_GET['l'])) {
$_GET['l'] = null;
}
$lang = isset($_GET["l"]) ? (string)$_GET["l"] : "en";
$query = isset($_GET["q"]) ? (string)$_GET["q"] : '';
if (!isset($LANGUAGES[$lang])) {
$lang = "en";
}
// HTTP status line is passed on, signifies an error
site_header(
'Search results',
array(
'noindex',
'current' => 'help',
'layout_span' => 12,
)
);
echo '<h1>Search results</h1>';
google_cse($query, $lang);
site_footer();