Adding support of independant uploadable categories

git-svn-id: http://piwigo.org/svn/trunk@38 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-07-25 21:33:41 +00:00
parent 1400807269
commit 963e1ef714
7 changed files with 80 additions and 36 deletions
+6 -4
View File
@@ -103,9 +103,10 @@ if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
{
check_restrictions( $page['cat'] );
$result = get_cat_info( $page['cat'] );
$page['cat_dir'] = $result['dir'];
$page['cat_site_id'] = $result['site_id'];
$page['cat_name'] = $result['name'];
$page['cat_dir'] = $result['dir'];
$page['cat_site_id'] = $result['site_id'];
$page['cat_name'] = $result['name'];
$page['cat_uploadable'] = $result['uploadable'];
}
else
{
@@ -113,7 +114,8 @@ else
}
if ( $access_forbidden == true
or $page['cat_site_id'] != 1
or !$conf['upload_available'] )
or !$conf['upload_available']
or !$page['cat_uploadable'] )
{
echo '<div style="text-align:center;">'.$lang['upload_forbidden'].'<br />';
echo '<a href="'.add_session_id( './category.php' ).'">';