Changeset b6cd452 in github
- Timestamp:
- Aug 18, 2011 2:34:56 PM (22 months ago)
- Branches:
- release-0.6
- Children:
- d43d4bc
- Parents:
- b1cde95
- Files:
-
- 9 edited
-
plugins/acl/acl.js (modified) (1 diff)
-
plugins/acl/acl.php (modified) (4 diffs)
-
program/include/main.inc (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (2 diffs)
-
program/js/app.js (modified) (1 diff)
-
program/steps/settings/folders.inc (modified) (3 diffs)
-
skins/default/iehacks.css (modified) (3 diffs)
-
skins/default/templates/error.html (modified) (1 diff)
-
skins/default/templates/messageprint.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/acl/acl.js
r5375e84 rb6cd452 2 2 * ACL plugin script 3 3 * 4 * @version 0. 54 * @version 0.6 5 5 * @author Aleksander Machniak <alec@alec.pl> 6 6 */ -
plugins/acl/acl.php
r5375e84 rb6cd452 4 4 * Folders Access Control Lists Management (RFC4314, RFC2086) 5 5 * 6 * @version 0. 56 * @version 0.6 7 7 * @author Aleksander Machniak <alec@alec.pl> 8 8 * … … 428 428 private function action_save() 429 429 { 430 $mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true , 'UTF7-IMAP'));430 $mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true)); // UTF7-IMAP 431 431 $user = trim(get_input_value('_user', RCUBE_INPUT_GPC)); 432 432 $acl = trim(get_input_value('_acl', RCUBE_INPUT_GPC)); … … 465 465 private function action_delete() 466 466 { 467 $mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true , 'UTF7-IMAP'));467 $mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true)); //UTF7-IMAP 468 468 $user = trim(get_input_value('_user', RCUBE_INPUT_GPC)); 469 469 … … 496 496 } 497 497 498 $this->mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true , 'UTF7-IMAP'));498 $this->mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true)); // UTF7-IMAP 499 499 $advanced = trim(get_input_value('_mode', RCUBE_INPUT_GPC)); 500 500 $advanced = $advanced == 'advanced' ? true : false; -
program/include/main.inc
rfe0cb65 rb6cd452 1408 1408 1409 1409 foreach ($arrFolders as $key => $folder) { 1410 if (!empty($exceptions) && in_array($folder['id'], $exceptions)) { 1410 if (empty($exceptions) || !in_array($folder['id'], $exceptions)) { 1411 if (!$realnames && ($folder_class = rcmail_folder_classname($folder['id']))) 1412 $foldername = rcube_label($folder_class); 1413 else { 1414 $foldername = $folder['name']; 1415 1416 // shorten the folder name to a given length 1417 if ($maxlength && $maxlength>1) 1418 $foldername = abbreviate_string($foldername, $maxlength); 1419 } 1420 1421 $select->add(str_repeat(' ', $nestLevel*4) . $foldername, $folder['id']); 1422 } 1423 else if ($nestLevel) 1411 1424 continue; 1412 }1413 1414 if (!$realnames && ($folder_class = rcmail_folder_classname($folder['id'])))1415 $foldername = rcube_label($folder_class);1416 else {1417 $foldername = $folder['name'];1418 1419 // shorten the folder name to a given length1420 if ($maxlength && $maxlength>1)1421 $foldername = abbreviate_string($foldername, $maxlength);1422 }1423 1424 $select->add(str_repeat(' ', $nestLevel*4) . $foldername, $folder['id']);1425 1425 1426 1426 if (!empty($folder['folders'])) -
program/include/rcube_imap.php
r2185899 rb6cd452 3084 3084 NULL, array('SUBSCRIBED')); 3085 3085 3086 // remove non-existent folders3087 if (is_array($a_folders) ) {3086 // unsubscribe non-existent folders, remove from the list 3087 if (is_array($a_folders) && $name == '*') { 3088 3088 foreach ($a_folders as $idx => $folder) { 3089 3089 if ($this->conn->data['LIST'] && ($opts = $this->conn->data['LIST'][$folder]) 3090 3090 && in_array('\\NonExistent', $opts) 3091 3091 ) { 3092 $this->conn->unsubscribe($folder); 3092 3093 unset($a_folders[$idx]); 3093 } 3094 } 3094 3095 } 3095 3096 } … … 3098 3099 else { 3099 3100 $a_folders = $this->conn->listSubscribed($root, $name); 3101 3102 // unsubscribe non-existent folders, remove from the list 3103 if (is_array($a_folders) && $name == '*') { 3104 foreach ($a_folders as $idx => $folder) { 3105 if ($this->conn->data['LIST'] && ($opts = $this->conn->data['LIST'][$folder]) 3106 && in_array('\\Noselect', $opts) 3107 ) { 3108 // Some servers returns \Noselect for existing folders 3109 if (!$this->mailbox_exists($folder)) { 3110 $this->conn->unsubscribe($folder); 3111 unset($a_folders[$idx]); 3112 } 3113 } 3114 } 3115 } 3100 3116 } 3101 3117 } -
program/js/app.js
rfe0cb65 rb6cd452 4433 4433 { 4434 4434 var n, buttons = this.buttons['upload-photo']; 4435 for (n=0; n < buttons &&buttons.length; n++)4435 for (n=0; buttons && n < buttons.length; n++) 4436 4436 $('#'+buttons[n].id).html(this.get_label(id == '-del-' ? 'addphoto' : 'replacephoto')); 4437 4437 -
program/steps/settings/folders.inc
r85e7a3d rb6cd452 279 279 . Q($protected ? rcmail_localize_foldername($folder['id']) : $folder['name']); 280 280 281 if ($sub_key !== false)282 unset($a_subscribed[$sub_key]);283 284 281 if ($folder['virtual']) { 285 282 $classes[] = 'virtual'; … … 318 315 } 319 316 } 317 // check if the folder is shared, then disable subscription option on it 318 if (!$disabled && $folder['virtual'] && !empty($namespace)) { 319 $tmp_ns = array_merge((array)$namespace['other'], (array)$namespace['shared']); 320 foreach ($tmp_ns as $item) { 321 if (strpos($folder['id'], $item[0]) === 0) { 322 $disabled = true; 323 break; 324 } 325 } 326 } 320 327 321 328 $table->add_row(array('id' => 'rcmrow'.$idx, 'class' => join(' ', $classes), … … 328 335 $a_js_folders['rcmrow'.$idx] = array($folder_utf8, 329 336 Q($display_folder), $protected || $folder['virtual']); 330 }331 332 // Unsubscribe from non-existing folders333 foreach ($a_subscribed as $folder) {334 $IMAP->unsubscribe($folder);335 337 } 336 338 -
skins/default/iehacks.css
rd145f77 rb6cd452 10 10 body.iframe 11 11 { 12 margin-top: 6px; 12 margin-top: 0px; 13 } 14 15 body.iframe div.boxcontent 16 { 17 margin-top: 20px; 18 z-index: 2; 19 } 20 21 body.iframe div.boxtitle 22 { 23 z-index: 100; 24 } 25 26 body.iframe #prefs-details 27 { 28 padding-top: 1px; 13 29 } 14 30 … … 65 81 { 66 82 margin-top: 0px; 83 } 84 85 body.iframe div.messageheaderbox 86 { 87 margin-top: 6px; 67 88 } 68 89 … … 255 276 #contact-details 256 277 { 257 margin-top: 12px;278 margin-top: 20px; 258 279 } 259 280 -
skins/default/templates/error.html
r087c7dc rb6cd452 7 7 <body> 8 8 9 <div id="header">< img src="/images/roundcube_logo.png" alt="<roundcube:object name='productname' />" /></div>9 <div id="header"><roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" border="0" alt="Logo" /></div> 10 10 11 11 <div style="width:400px; margin:60px auto;"> -
skins/default/templates/messageprint.html
r31036bb rb6cd452 8 8 <body> 9 9 10 <div id="header">< img src="/images/roundcube_logo.png" alt="<roundcube:object name="productname" />" /></div>10 <div id="header"><roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" border="0" alt="Logo" /></div> 11 11 12 12 <div id="printmessageframe">
Note: See TracChangeset
for help on using the changeset viewer.
