Serghey Rodin 13 лет назад
Родитель
Сommit
15cc5a13a0
1 измененных файлов с 16 добавлено и 0 удалено
  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;