Skip to content

Commit 15cc5a1

Browse files
committed
added sreach wrapper
1 parent d2efdc2 commit 15cc5a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

web/search/index.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
// Init
3+
error_reporting(NULL);
4+
ob_start();
5+
session_start();
6+
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
7+
8+
$back=getenv("HTTP_REFERER");
9+
if (!empty($back)) {
10+
header("Location: ".$back);
11+
exit;
12+
}
13+
14+
header("Location: /");
15+
16+
exit;

0 commit comments

Comments
 (0)