aboutsummaryrefslogtreecommitdiffstats
path: root/qsearch.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-22 05:31:08 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-22 05:31:08 +0000
commit20ba76b753f53c00fece9cc727e60414c7e95570 (patch)
tree7ee1505efec7140307eb2bc94905cba3b0e268d8 /qsearch.php
parentcea58b64ee31c3b34887845bef6761edee3c6fc7 (diff)
- change the way conf['guest_access'] is handled so that web services work correctly (and also nbm.php and feed.php)
git-svn-id: http://piwigo.org/svn/trunk@1850 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'qsearch.php')
-rw-r--r--qsearch.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/qsearch.php b/qsearch.php
index da5188196..a7fc1d956 100644
--- a/qsearch.php
+++ b/qsearch.php
@@ -1,9 +1,8 @@
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
-// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
@@ -27,6 +26,11 @@
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() );