Browse Source

added sreach wrapper

Serghey Rodin 13 years ago
parent
commit
15cc5a13a0
1 changed files with 16 additions and 0 deletions
  1. 16 0
      web/search/index.php

+ 16 - 0
web/search/index.php

@@ -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;