Explorar o código

added sreach wrapper

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
15cc5a13a0
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  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;