Changeset 25932 for extensions/BatchDownloader/include/functions.inc.php
- Timestamp:
- Dec 12, 2013, 2:41:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/functions.inc.php
r25931 r25932 9 9 { 10 10 global $page, $conf; 11 11 12 12 switch ($page['section']) 13 13 { … … 16 16 { 17 17 $batch_type = 'calendar'; 18 $batch_id = add_well_known_params_in_url('', 19 array_intersect_key($page, 18 $batch_id = add_well_known_params_in_url('', 19 array_intersect_key($page, 20 20 array( 21 21 'chronology_field'=>0, … … 62 62 return false; 63 63 } 64 64 65 65 $set = array( 66 66 'type' => $batch_type, … … 69 69 'items' => $page['items'], 70 70 ); 71 71 72 72 // check size 73 73 if (!$conf['batch_download']['multisize']) … … 87 87 $avail_sizes[] = 'original'; 88 88 } 89 89 90 90 if (!in_array($set['size'], $avail_sizes)) 91 91 { … … 104 104 { 105 105 global $user, $conf; 106 106 107 107 if (is_a_guest()) return false; 108 108 if (is_admin()) return true; 109 109 110 110 if ($user['level'] < $conf['batch_download']['level']) return false; 111 111 112 112 if (!empty($conf['batch_download']['groups'])) 113 113 { … … 119 119 ;'; 120 120 $result = pwg_query($query); 121 121 122 122 if (!pwg_db_num_rows($result)) return false; 123 123 } 124 124 125 125 return true; 126 126 } … … 167 167 } 168 168 } 169 170 ?>
Note: See TracChangeset
for help on using the changeset viewer.