Changeset b6cd452 in github


Ignore:
Timestamp:
Aug 18, 2011 2:34:56 PM (22 months ago)
Author:
thomascube <thomas@…>
Branches:
release-0.6
Children:
d43d4bc
Parents:
b1cde95
Message:

Backport changes from r5084 to r5090 to release branch

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/acl/acl.js

    r5375e84 rb6cd452  
    22 * ACL plugin script 
    33 * 
    4  * @version 0.5 
     4 * @version 0.6 
    55 * @author Aleksander Machniak <alec@alec.pl> 
    66 */ 
  • plugins/acl/acl.php

    r5375e84 rb6cd452  
    44 * Folders Access Control Lists Management (RFC4314, RFC2086) 
    55 * 
    6  * @version 0.5 
     6 * @version 0.6 
    77 * @author Aleksander Machniak <alec@alec.pl> 
    88 * 
     
    428428    private function action_save() 
    429429    { 
    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 
    431431        $user  = trim(get_input_value('_user', RCUBE_INPUT_GPC)); 
    432432        $acl   = trim(get_input_value('_acl', RCUBE_INPUT_GPC)); 
     
    465465    private function action_delete() 
    466466    { 
    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 
    468468        $user = trim(get_input_value('_user', RCUBE_INPUT_GPC)); 
    469469 
     
    496496        } 
    497497 
    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 
    499499        $advanced   = trim(get_input_value('_mode', RCUBE_INPUT_GPC)); 
    500500        $advanced   = $advanced == 'advanced' ? true : false; 
  • program/include/main.inc

    rfe0cb65 rb6cd452  
    14081408 
    14091409  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('&nbsp;', $nestLevel*4) . $foldername, $folder['id']); 
     1422    } 
     1423    else if ($nestLevel) 
    14111424      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 length 
    1420       if ($maxlength && $maxlength>1) 
    1421         $foldername = abbreviate_string($foldername, $maxlength); 
    1422     } 
    1423  
    1424     $select->add(str_repeat('&nbsp;', $nestLevel*4) . $foldername, $folder['id']); 
    14251425 
    14261426    if (!empty($folder['folders'])) 
  • program/include/rcube_imap.php

    r2185899 rb6cd452  
    30843084                    NULL, array('SUBSCRIBED')); 
    30853085 
    3086                 // remove non-existent folders 
    3087                 if (is_array($a_folders)) { 
     3086                // unsubscribe non-existent folders, remove from the list 
     3087                if (is_array($a_folders) && $name == '*') { 
    30883088                    foreach ($a_folders as $idx => $folder) { 
    30893089                        if ($this->conn->data['LIST'] && ($opts = $this->conn->data['LIST'][$folder]) 
    30903090                            && in_array('\\NonExistent', $opts) 
    30913091                        ) { 
     3092                            $this->conn->unsubscribe($folder); 
    30923093                            unset($a_folders[$idx]); 
    3093                         }  
     3094                        } 
    30943095                    } 
    30953096                } 
     
    30983099            else { 
    30993100                $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                } 
    31003116            } 
    31013117        } 
  • program/js/app.js

    rfe0cb65 rb6cd452  
    44334433  { 
    44344434    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++) 
    44364436      $('#'+buttons[n].id).html(this.get_label(id == '-del-' ? 'addphoto' : 'replacephoto')); 
    44374437 
  • program/steps/settings/folders.inc

    r85e7a3d rb6cd452  
    279279            . Q($protected ? rcmail_localize_foldername($folder['id']) : $folder['name']); 
    280280 
    281         if ($sub_key !== false) 
    282             unset($a_subscribed[$sub_key]); 
    283  
    284281        if ($folder['virtual']) { 
    285282            $classes[] = 'virtual'; 
     
    318315            } 
    319316        } 
     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        } 
    320327 
    321328        $table->add_row(array('id' => 'rcmrow'.$idx, 'class' => join(' ', $classes), 
     
    328335        $a_js_folders['rcmrow'.$idx] = array($folder_utf8, 
    329336            Q($display_folder), $protected || $folder['virtual']); 
    330     } 
    331  
    332     // Unsubscribe from non-existing folders 
    333     foreach ($a_subscribed as $folder) { 
    334         $IMAP->unsubscribe($folder); 
    335337    } 
    336338 
  • skins/default/iehacks.css

    rd145f77 rb6cd452  
    1010body.iframe 
    1111{ 
    12   margin-top: 6px; 
     12  margin-top: 0px; 
     13} 
     14 
     15body.iframe div.boxcontent 
     16{ 
     17  margin-top: 20px; 
     18  z-index: 2; 
     19} 
     20 
     21body.iframe div.boxtitle 
     22{ 
     23  z-index: 100; 
     24} 
     25 
     26body.iframe #prefs-details 
     27{ 
     28  padding-top: 1px; 
    1329} 
    1430 
     
    6581{ 
    6682  margin-top: 0px; 
     83} 
     84 
     85body.iframe div.messageheaderbox 
     86{ 
     87  margin-top: 6px; 
    6788} 
    6889 
     
    255276#contact-details 
    256277{ 
    257   margin-top: 12px; 
     278  margin-top: 20px; 
    258279} 
    259280 
  • skins/default/templates/error.html

    r087c7dc rb6cd452  
    77<body> 
    88 
    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> 
    1010 
    1111<div style="width:400px; margin:60px auto;"> 
  • skins/default/templates/messageprint.html

    r31036bb rb6cd452  
    88<body> 
    99 
    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> 
    1111 
    1212<div id="printmessageframe"> 
Note: See TracChangeset for help on using the changeset viewer.