added sreach wrapper

This commit is contained in:
Serghey Rodin 2012-09-27 20:30:09 +03:00
commit 15cc5a13a0

16
web/search/index.php Normal file
View file

@ -0,0 +1,16 @@
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
$back=getenv("HTTP_REFERER");
if (!empty($back)) {
header("Location: ".$back);
exit;
}
header("Location: /");
exit;