Changeset 1231
- Timestamp:
- 11/15/09 17:51:19 (3 years ago)
- Location:
- trunk/plugins
- Files:
-
- 4 modified
-
ExtendedFileManager/config.inc.php (modified) (1 diff)
-
ExtendedFileManager/images.php (modified) (5 diffs)
-
ImageManager/config.inc.php (modified) (1 diff)
-
ImageManager/images.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ExtendedFileManager/config.inc.php
r1210 r1231 222 222 */ 223 223 $IMConfig['allow_cut_copy_paste'] = true; 224 225 /* 226 Possible values: true, false 227 228 TRUE - Allow the user to delete files and folders. 229 230 FALSE - No delete icon will be displayed. 231 232 */ 233 $IMConfig['allow_delete'] = true; 224 234 225 235 /* -
trunk/plugins/ExtendedFileManager/images.php
r1214 r1231 30 30 $pasteStatus = (isset($_GET['paste'])) ? $manager->processPaste() : false; 31 31 32 $refreshFile = ($ manager->deleteFiles()) ? true : false;32 $refreshFile = ($IMConfig['allow_delete'] && $manager->deleteFiles()) ? true : false; 33 33 34 34 $refreshDir = false; 35 35 //process any directory functions 36 if( $manager->deleteDirs() || $manager->processNewDir() || $pasteStatus || $renameStatus )36 if(($IMConfig['allow_delete'] && $manager->deleteDirs()) || $manager->processNewDir() || $pasteStatus || $renameStatus ) 37 37 $refreshDir = true; 38 38 … … 94 94 95 95 <td class="actions" > 96 <?php 97 if($IMConfig['allow_delete']) 98 { 99 ?> 96 100 <a href="<?php print $backend_url_enc; ?>__function=images&mode=<?php echo $insertMode;?>&dir=<?php echo $relative; ?>&deld=<?php echo rawurlencode($path); ?>&viewtype=<?php echo $afruViewType; ?>" title="Trash" onclick="return confirmDeleteDir('<?php echo $dir['entry']; ?>', <?php echo $dir['count']; ?>);" style="border:0px;"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" border="0" /></a> 101 <?php 102 } 103 ?> 97 104 <?php if ($IMConfig['allow_rename']) { ?> 98 105 <a href="#" title="Rename" onclick="renameDir('<?php echo rawurlencode($dir['entry']);?>'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_rename.gif" height="15" width="15" alt="Rename" border="0" /></a> … … 128 135 <a href="javascript:;" title="Edit" onclick="editImage('<?php echo rawurlencode($file['relative']);?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_pencil.gif" height="15" width="15" alt="Edit" border="0" /></a> 129 136 <?php } ?> 137 <?php 138 if($IMConfig['allow_delete']) 139 { 140 ?> 130 141 <a href="<?php print $backend_url_enc; ?>__function=images&dir=<?php echo $relative; ?>&delf=<?php echo rawurlencode($file['relative']);?>&mode=<?php echo $insertMode;?>&viewtype=<?php echo $afruViewType; ?>" title="Trash" onclick="return confirmDeleteFile('<?php echo $entry; ?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" border="0" /></a> 142 <?php 143 } 144 ?> 131 145 <?php if ($IMConfig['allow_rename']) { ?> 132 146 <a href="#" title="Rename" onclick="renameFile('<?php echo rawurlencode($file['relative']);?>'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_rename.gif" height="15" width="15" alt="Rename" border="0" /></a> … … 162 176 </div> 163 177 <div class="edit"> 178 <?php 179 if($IMConfig['allow_delete']) 180 { 181 ?> 164 182 <a href="<?php print $backend_url_enc;?>__function=images&mode=<?php echo $insertMode;?>&dir=<?php echo $relative; ?>&deld=<?php echo rawurlencode($path); ?>&viewtype=<?php echo $afruViewType; ?>" title="Trash" onclick="return confirmDeleteDir('<?php echo $dir['entry']; ?>', <?php echo $dir['count']; ?>);"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" /></a> 183 <?php 184 } 185 ?> 165 186 <?php if ($IMConfig['allow_rename']) { ?> 166 187 <a href="#" title="Rename" onclick="renameDir('<?php echo rawurlencode($dir['entry']);?>'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_rename.gif" height="15" width="15" alt="Rename" border="0" /></a> … … 196 217 <a href="javascript:;" title="Edit" onclick="editImage('<?php echo rawurlencode($file['relative']);?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_pencil.gif" height="15" width="15" alt="Edit" /></a> 197 218 <?php $thisFileNameLength -= 3; } ?> 219 <?php 220 if($IMConfig['allow_delete']) 221 { 222 ?> 198 223 <a href="<?php print $backend_url_enc; ?>__function=images&mode=<?php echo $insertMode;?>&dir=<?php echo $relative; ?>&delf=<?php echo rawurlencode($file['relative']);?>&viewtype=<?php echo $afruViewType; ?>" title="Trash" onclick="return confirmDeleteFile('<?php echo $entry; ?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" /></a> 224 <?php 225 } 226 ?> 199 227 <?php if ($IMConfig['allow_rename']) { ?> 200 228 <a href="#" title="Rename" onclick="renameFile('<?php echo rawurlencode($file['relative']);?>'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_rename.gif" height="15" width="15" alt="Rename" /></a> -
trunk/plugins/ImageManager/config.inc.php
r1210 r1231 241 241 242 242 $IMConfig['allow_upload'] = false; 243 244 // ------------------------------------------------------------------------- 245 246 /** 247 * Allow Delete 248 * 249 * Possible values: true, false 250 * 251 * TRUE - Allow the user to delete files/dirs 252 * 253 * FALSE - No deleting allowed. 254 * 255 */ 256 257 $IMConfig['allow_delete'] = true; 258 259 // ------------------------------------------------------------------------- 260 261 /** 262 * Allow Edit 263 * 264 * Possible values: true, false 265 * 266 * TRUE - Allow the user to edit files 267 * 268 * FALSE - No editing allowed. 269 * 270 */ 271 272 $IMConfig['allow_edit'] = true; 273 243 274 244 275 // ------------------------------------------------------------------------- -
trunk/plugins/ImageManager/images.php
r999 r1231 22 22 $manager->processUploads(); 23 23 24 $manager->deleteFiles(); 24 if($IMConfig['allow_delete']) 25 { 26 $manager->deleteFiles(); 27 } 25 28 26 29 $refreshDir = false; 27 30 //process any directory functions 28 if( $manager->deleteDirs() || $manager->processNewDir())31 if(($IMConfig['allow_delete'] && $manager->deleteDirs()) || $manager->processNewDir()) 29 32 $refreshDir = true; 30 33 … … 85 88 <td><?php if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } ?></td> 86 89 <td class="actions"> 90 <?php 91 if($IMConfig['allow_delete']) 92 { 93 ?> 87 94 <a href="<?php print $IMConfig['backend_url']; ?>__function=images&dir=<?php echo $relative; ?>&delf=<?php echo rawurlencode($file['relative']);?>" title="Trash" onclick="return confirmDeleteFile('<?php echo $entry; ?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" border="0" /></a> 88 95 <?php 96 } 97 ?> 98 <?php 99 if($IMConfig['allow_edit']) 100 { 101 ?> 89 102 <a href="javascript:;" title="Edit" onclick="editImage('<?php echo rawurlencode($file['relative']);?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_pencil.gif" height="15" width="15" alt="Edit" border="0" /></a> 103 <?php 104 } 105 ?> 90 106 </td> 91 107 </tr> … … 110 126 </a> 111 127 <div class="edit"> 128 129 <?php 130 if($IMConfig['allow_delete']) 131 { 132 ?> 112 133 <a href="<?php print $IMConfig['backend_url']; ?>__function=images&dir=<?php echo $relative; ?>&delf=<?php echo rawurlencode($file['relative']);?>" title="Trash" onclick="return confirmDeleteFile('<?php echo $entry; ?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash" /></a> 113 134 <?php 135 } 136 ?> 137 138 <?php 139 if($IMConfig['allow_edit']) 140 { 141 ?> 114 142 <a href="javascript:;" title="Edit" onclick="editImage('<?php echo rawurlencode($file['relative']);?>');"><img src="<?php print $IMConfig['base_url'];?>img/edit_pencil.gif" height="15" width="15" alt="Edit" /></a> 115 143 <?php 144 } 145 ?> 116 146 <?php if($file['image']){ echo $file['image'][0].'x'.$file['image'][1]; } else echo $entry;?> 117 147 </div> … … 149 179 150 180 <div class="edit"> 181 <?php 182 if($IMConfig['allow_delete']) 183 { 184 ?> 151 185 <a href="<?php print $IMConfig['backend_url'];?>__function=images&dir=<?php echo $relative; ?>&deld=<?php echo rawurlencode($path); ?>" title="Trash" onclick="return confirmDeleteDir('<?php echo $dir['entry']; ?>', <?php echo $dir['count']; ?>);"><img src="<?php print $IMConfig['base_url'];?>img/edit_trash.gif" height="15" width="15" alt="Trash"/></a> 186 <?php 187 } 188 ?> 189 152 190 <?php echo $dir['entry']; ?> 153 191 </div>
