diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-07-25 21:33:41 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-07-25 21:33:41 +0000 |
commit | 963e1ef71418bdad2e81e78b983f57633dbf3c18 (patch) | |
tree | 53a64ea75ff14228f3a16da3f07ca5b996f15d4c /upload.php | |
parent | 1400807269662dfe7e4bc015c5d1385113c50418 (diff) |
Adding support of independant uploadable categories
git-svn-id: http://piwigo.org/svn/trunk@38 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | upload.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/upload.php b/upload.php index 7e320c1fa..b6f65014f 100644 --- a/upload.php +++ b/upload.php @@ -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' ).'">'; |