diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-22 05:31:08 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-22 05:31:08 +0000 |
commit | 20ba76b753f53c00fece9cc727e60414c7e95570 (patch) | |
tree | 7ee1505efec7140307eb2bc94905cba3b0e268d8 /upload.php | |
parent | cea58b64ee31c3b34887845bef6761edee3c6fc7 (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 'upload.php')
-rw-r--r-- | upload.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/upload.php b/upload.php index 8ae21a104..16dba838b 100644 --- a/upload.php +++ b/upload.php @@ -2,10 +2,9 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) -// | file : $RCSfile$ +// | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ // | revision : $Revision$ @@ -27,6 +26,8 @@ define('PHPWG_ROOT_PATH','./'); include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); +check_status(ACCESS_GUEST); + $username = !empty($_POST['username'])?$_POST['username']:$user['username']; $mail_address = !empty($_POST['mail_address'])?$_POST['mail_address']:@$user['mail_address']; $name = !empty($_POST['name'])?$_POST['name']:''; |