Changeset 23383 for extensions/BatchDownloader/admin
- Timestamp:
- Jun 20, 2013, 2:10:51 AM (11 years ago)
- Location:
- extensions/BatchDownloader/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/admin/config.php
r23288 r23383 15 15 'max_elements' => intval($_POST['max_elements']), 16 16 'max_size' => intval($_POST['max_size']), 17 'one_archive' => isset($_POST['one_archive']), 18 'force_pclzip' => isset($_POST['force_pclzip']), 19 'direct' => isset($_POST['direct']), 17 20 'last_clean' => $conf['batch_download']['last_clean'], 18 21 ); … … 21 24 conf_update_param('batch_download', serialize($conf['batch_download'])); 22 25 conf_update_param('batch_download_comment', $conf['batch_download_comment']); 26 27 array_push($page['infos'], l10n('Information data registered in database')); 23 28 } 24 29 … … 36 41 37 42 // sizes 38 $enabled = ImageStdParams::get_defined_type_map(); 39 $disabled = @unserialize(@$conf['disabled_derivatives']); 40 if ($disabled === false) $disabled = array(); 41 42 $sizes_keys = array_diff(array_keys($enabled), array_keys($disabled)); 43 $type_map = ImageStdParams::get_defined_type_map(); 44 $sizes_keys = array_keys($type_map); 43 45 $sizes_names = array_map(create_function('$s', 'return l10n($s);'), $sizes_keys); 44 46 … … 58 60 'batch_download' => $conf['batch_download'], 59 61 'batch_download_comment' => stripslashes($conf['batch_download_comment']), 60 'use_ziparchive' => class_exists('ZipArchive') && ! isset($conf['batch_downloader_force_pclzip']),62 'use_ziparchive' => class_exists('ZipArchive') && !$conf['batch_download']['force_pclzip'], 61 63 'PHP_VERSION' => PHP_VERSION, 62 64 'ADVANCED_CONF' => load_language('advanced.html', BATCH_DOWNLOAD_PATH, array('return'=>true)) -
extensions/BatchDownloader/admin/sets.php
r23318 r23383 15 15 $set->updateParam('nb_zip', $set->getEstimatedArchiveNumber()); 16 16 $set->updateParam('status', 'done'); 17 $set->delete LastArchive();17 $set->deleteArchives(); 18 18 $set->clearImages(); 19 19 unset($set); -
extensions/BatchDownloader/admin/template/config.tpl
r23288 r23383 62 62 <label> 63 63 {if $group_options} 64 < span class="property">{'User groups'|@translate}</span>64 <b>{'User groups'|@translate}</b> 65 65 <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;"> 66 66 {html_options options=$group_options selected=$batch_download.groups} … … 73 73 <li> 74 74 <label> 75 < span class="property">{'Privacy level'|@translate}</span>75 <b>{'Privacy level'|@translate}</b> 76 76 <select name="level"> 77 77 {html_options options=$level_options selected=$batch_download.level} … … 80 80 </li> 81 81 <li> 82 <span class="property">{'What can be downloaded?'|@translate}</span> 82 <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i> 83 </li> 84 <li> 85 <b>{'What can be downloaded?'|@translate}</b> 83 86 <label><input type="checkbox" name="what[categories]" {if in_array('categories',$batch_download.what)}checked="checked"{/if}/> {'Albums'|@translate}</label> 84 87 {if $USER_COLLEC_LOADED}<label><input type="checkbox" name="what[collections]" {if in_array('collections',$batch_download.what)}checked="checked"{/if}/> {'Collections'|@translate}</label>{/if} 85 88 <label><input type="checkbox" name="what[specials]" {if in_array('specials',$batch_download.what)}checked="checked"{/if}/> {'Specials'|@translate}</label> 86 89 <a class="showInfo" title="{'Most visited'|@translate}, {'Random photos'|@translate}, {'Best rated'|@translate}...">i</a> 87 90 </li> 88 91 <li> 89 <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i> 92 <label> 93 <b>{'Maximum photo size'|@translate}</b> 94 <select name="photo_size"> 95 {html_options options=$sizes_options selected=$batch_download.photo_size} 96 </select> 97 </label> 90 98 </li> 91 99 </ul> … … 96 104 97 105 <ul> 98 <li style="display:none;">99 <label>100 <span class="property">{'Maximum photo size'|@translate}</span>101 <select name="photo_size">102 {html_options options=$sizes_options selected=$batch_download.photo_size}103 </select>104 NOT IMPLEMENTED105 </label>106 </li>107 106 <li> 108 107 <label> 109 < span class="property">{'Delete downloads after'|@translate}</span>108 <b>{'Delete downloads after'|@translate}</b> 110 109 <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate} 111 110 </label> … … 113 112 <li> 114 113 <label> 115 < span class="property">{'Maximum number of photos per download set'|@translate}</span>114 <b>{'Maximum number of photos per download set'|@translate}</b> 116 115 <div id="max_elements"></div> 117 116 <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5"> … … 120 119 <li> 121 120 <label> 122 < span class="property">{'Maximum size of each archive (in Megabytes)'|@translate}</span>121 <b>{'Maximum size of each archive (in Megabytes)'|@translate}</b> 123 122 <div id="max_size"></div> 124 123 <input type="text" name="max_size" value="{$batch_download.max_size}" size="5"> … … 127 126 <li> 128 127 <label> 129 < span class="property">{'Archive prefix'|@translate}</span>128 <b>{'Archive prefix'|@translate}</b> 130 129 <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}"> 131 130 </label> 131 </li> 132 <li> 133 <label> 134 <input type="checkbox" name="one_archive" {if $batch_download.one_archive}checked{/if}> 135 <b>{'Delete previous archive when starting to download another one'|@translate}</b> 136 </label> 137 <a class="showInfo" title="{'It saves space on the server but doesn\'t allow to restart failed downloads.'|@translate}">i</a> 138 </li> 139 <li> 140 <label> 141 <input type="checkbox" name="force_pclzip" {if $batch_download.force_pclzip}checked{/if}> 142 <b>{'Force the usage of PclZip instead of ZipArchive as ZIP library'|@translate}</b> 143 </label> 144 <a class="showInfo" title="{'Only check if you are experiencing corrupted archives with ZipArchive.'|@translate}">i</a> 145 </li> 146 <li> 147 <label> 148 <input type="checkbox" name="direct" {if $batch_download.direct}checked{/if}> 149 <b>{'Don\'t download archives through PHP'|@translate}</b> 150 </label> 151 <a class="showInfo" title="{'Only check if your host complains about high PHP usage.'|@translate}">i</a> 132 152 </li> 133 153 {if $use_ziparchive} 134 154 <li> 135 155 <label> 136 < span class="property">{'Archive comment'|@translate} :</span><br>156 <b>{'Archive comment'|@translate} :</b><br> 137 157 <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea> 138 158 </label> -
extensions/BatchDownloader/admin/template/style.css
r23318 r23383 1 1 .chzn-choices li { 2 2 clear:none !important; 3 }4 5 .property {6 width:auto !important;7 3 } 8 4
Note: See TracChangeset
for help on using the changeset viewer.