- 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
This commit is contained in:
rvelices
2007-02-22 05:31:08 +00:00
parent cea58b64ee
commit 20ba76b753
6 changed files with 32 additions and 36 deletions
+3 -2
View File
@@ -86,7 +86,6 @@ SELECT user_id,
}
if ($feed_row['user_id']!=$user['id'])
{ // new user
$user = array();
$user = build_user( $feed_row['user_id'], true );
}
}
@@ -95,11 +94,13 @@ else
$image_only = true;
if (!$user['is_the_guest'])
{// auto session was created - so switch to guest
$user = array();
$user = build_user( $conf['guest_id'], true );
}
}
// Check the status now after the user has been loaded
check_status(ACCESS_GUEST);
list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php');