Parcourir la source

added sreach wrapper

Serghey Rodin il y a 13 ans
Parent
commit
15cc5a13a0
1 fichiers modifiés avec 16 ajouts et 0 suppressions
  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;