forked from Piwigo/Piwigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqsearch.php
23 lines (19 loc) · 947 Bytes
/
qsearch.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status(ACCESS_GUEST);
// if (empty($_GET['q']))
// {
// redirect( make_index_url() );
// }
redirect(get_root_url().'search.php?q='.$_GET['q']);
?>