Changeset 1111

Show
Ignore:
Timestamp:
04/11/08 20:38:38 (8 months ago)
Author:
rats
Message:

Update of SquirrelMail Plugins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gui/tools/webmail/config/config.php

    r954 r1111  
    760760// Add list of enabled plugins here 
    761761 
    762 //$plugins[0] = 'sqclock'; //not used 
    763 $plugins[1] = 'show_user_and_ip'; 
    764 $plugins[2] = 'filters'; 
    765 $plugins[3] = 'mail_fetch'; 
     762$plugins[0] = 'abook_take'; 
     763$plugins[1] = 'administrator'; 
     764$plugins[2] = 'bookmarks'; 
     765$plugins[3] = 'bug_report'; 
    766766$plugins[4] = 'calendar'; 
    767 $plugins[5] = 'abook_take'; 
    768 $plugins[6] = 'administrator'; 
    769 $plugins[7] = 'squirrelspell'; 
    770 $plugins[8] = 'translate'; 
    771 $plugins[9] = 'msg_flags'; 
    772 $plugins[10] = 'bookmarks'; 
    773 $plugins[11] = 'compatibility'; 
    774 $plugins[12] = 'smallcal'; 
    775 $plugins[13] = 'delete_move_next'; 
    776 $plugins[14] = 'preview_pane'; 
    777 $plugins[15] = 'html_mail'; 
    778 $plugins[16] = 'newmail'; 
    779 $plugins[17] = 'spamcop'; 
     767//$plugins[5] = 'calendar_sql_backend'; //enable and configure if needed 
     768$plugins[6] = 'compatibility'; 
     769$plugins[7] = 'delete_move_next'; 
     770//$plugins[9] = 'disk_quota'; 
     771$plugins[10] = 'filters'; 
     772$plugins[11] = 'fortune'; 
     773//$plugins[12] = 'gpg'; //check gpg config details before enabling 
     774$plugins[13] = 'html_mail'; 
     775$plugins[14] = 'info'; 
     776$plugins[15] = 'listcommands'; 
     777$plugins[16] = 'login_auto'; 
     778$plugins[17] = 'mail_fetch'; 
    780779$plugins[18] = 'message_details'; 
    781 //$plugins[19] = 'gpg'; //check gpg config details before enabling 
    782 $plugins[20] = 'view_as_html'; 
     780$plugins[19] = 'msg_flags'; 
     781$plugins[20] = 'newmail'; 
    783782$plugins[21] = 'notes'; 
    784 //$plugins[22] = 'calendar_sql_backend'; //enable and configure if needed 
    785 $plugins[23] = 'login_auto'; 
    786 $plugins[24] = 'todo'; 
    787 // $plugins[25] = 'check_quota'; //only works on some servers 
    788  
     783$plugins[22] = 'preview_pane'; 
     784$plugins[23] = 'pupdate'; 
     785$plugins[24] = 'sent_subfolders'; 
     786$plugins[25] = 'show_user_and_ip'; 
     787$plugins[26] = 'smallcal'; 
     788$plugins[27] = 'spamcop'; 
     789$plugins[28] = 'squirrelspell'; 
     790//$plugins[29] = 'test'; 
     791$plugins[30] = 'todo'; 
     792$plugins[31] = 'translate'; 
     793$plugins[32] = 'view_as_html'; 
    789794 
    790795/*** Database ***/ 
  • trunk/gui/tools/webmail/plugins/bookmarks/bookmarks_data.php

    r1109 r1111  
    11<?php 
     2$INSTALL_CHECK = 'OK'; 
    23 
    3 // This file purposely left empty.  Refer to the installation instructions 
    4 // in the README file for more information 
     4$bookmarksdata = array(); 
    55 
     6function readbookmarksdata() { 
     7        global $bookmarksdata, $username, $data_dir; 
     8         
     9        $bookmarksdata = array(); 
     10        $n = 1; 
     11 
     12        $filename = getHashedFile($username, $data_dir, $username. '.bookmark'); 
     13        if (file_exists($filename)) { 
     14                ConvertBookmarks( '', '' ); 
     15                writebookmarksdata(); 
     16        } else { 
     17                $filename = getHashedFile($username, $data_dir, $username . '.bookmarks'); 
     18 
     19                if (file_exists($filename)){ 
     20                        $fp = fopen ($filename,'r'); 
     21         
     22                        if ($fp){ 
     23                                while ($fdata = fgetcsv ($fp, 4096, chr(9))) { 
     24                                  if (($fdata[0] != '') or ($fdata[1] != '') or ($fdata[2] != '')) { 
     25                                          $bookmarksdata[$n]["folder"] = $fdata[0]; 
     26                                          $bookmarksdata[$n]["title"] = $fdata[1]; 
     27                                          $bookmarksdata[$n]["url"] = $fdata[2]; 
     28                                          $bookmarksdata[$n]["index"] = $n; 
     29                                                if ($fdata[3] == '') { 
     30                                                  $bookmarksdata[$n]["visit_count"] = 0; 
     31                                                } else { 
     32                                                  $bookmarksdata[$n]["visit_count"] = $fdata[3]; 
     33                                                } 
     34 
     35                                                $bookmarksdata[$n]["last_visit"] = $fdata[4]; 
     36                                          $n = $n + 1; 
     37                                        } 
     38                                } 
     39                                fclose ($fp); 
     40                        } 
     41                } 
     42        } 
     43        asort($bookmarksdata); 
     44 
     45        $_SESSION['bookmarksdata'] = $bookmarksdata; 
     46} 
     47 
     48function writebookmarksdata() { 
     49        global $bookmarksdata, $username, $data_dir; 
     50 
     51        $filename = getHashedFile($username, $data_dir, $username. '.bookmarks'); 
     52        $fp = fopen ($filename . '.tmp',"w"); 
     53        if ($fp) { 
     54                foreach($bookmarksdata as $bookfoo) { 
     55                  if (($bookfoo["folder"] != '') or ($bookfoo["title"] != '') or ($bookfoo["url"] != '')) { 
     56                          $bookstring = $bookfoo["folder"] . chr(9) . $bookfoo["title"] . chr(9) . $bookfoo["url"] . chr(9) . $bookfoo["visit_count"] . chr(9) . $bookfoo["last_visit"] . "\n"; 
     57                          fwrite($fp, $bookstring ); 
     58                        } 
     59                } 
     60        } 
     61 
     62        fclose ($fp); 
     63        if (file_exists($filename)){ 
     64                unlink($filename); 
     65        } 
     66        rename($filename . '.tmp',$filename); 
     67} 
     68 
     69function ConvertBookmarks( $sFilename, $sParent ) { 
     70        global $bookmarksdata, $username, $data_dir, $n; 
     71 
     72        if ($sFilename == '') { 
     73                $foldertmp = ''; 
     74        } else { 
     75                $foldertmp = $sFilename . '.'; 
     76        } 
     77        $filename = getHashedFile($username, $data_dir, $username. '.' . $foldertmp . 'bookmark'); 
     78 
     79        if ($sParent == '') { 
     80                $sDelim = ''; 
     81        } else { 
     82                $sDelim = '|'; 
     83        } 
     84 
     85        if (file_exists($filename)){ 
     86                $fp = fopen ($filename,'r'); 
     87                if ($fp){ 
     88                        if ($sFilename <> '') { 
     89                                $bookmarksdata[$n]["folder"] = $sParent . $sDelim . $sFilename; 
     90                                $n = $n + 1; 
     91                        } 
     92                        while ($fdata = fgetcsv ($fp, 4096, '|')) { 
     93                                if (substr($fdata[0],0,6) == "folder") { 
     94                                        ConvertBookmarks( $fdata[1], $sParent . $sDelim . $sFilename ); 
     95                                } else { 
     96                                        if ( $fdata[0] <> 'parent') { 
     97                                                $bookmarksdata[$n]["folder"] = $sParent . $sDelim . $sFilename; 
     98                                                $bookmarksdata[$n]["title"] = $fdata[1]; 
     99                                                $bookmarksdata[$n]["url"] = $fdata[0]; 
     100                                                $bookmarksdata[$n]["index"] = $n; 
     101                                                $bookmarksdata[$n]["visit_count"] = 0; 
     102                                                $bookmarksdata[$n]["last_visit"] = ''; 
     103                                                $n = $n + 1; 
     104                                        } 
     105                                } 
     106                        } 
     107                } 
     108                fclose ($fp); 
     109                unlink($filename); 
     110        } 
     111} 
    6112?> 
  • trunk/gui/tools/webmail/themes/css/omega.css

    r1109 r1111  
    191191.message_toggle_bar { 
    192192 
    193         background: url(../../skins/omega/left_inbox_bar.gif); 
     193        background-image: url(../../skins/omega/left_inbox_bar.gif); 
    194194        background-repeat: repeat-x; 
    195195} 
     
    202202/** Login **/ 
    203203#container { 
    204         background-image: url(../../skins/omega/images/bg.jpg); 
     204        background-image: url(../../skins/omega/bg.jpg); 
    205205        background-repeat: no-repeat; 
    206206        background-attachment: scroll; 
  • trunk/gui/tools/webmail/themes/omega_theme.php

    r331 r1111  
    1919global $color; 
    2020$color[0]   = '#c0c0c0'; // TitleBar 
    21 $color[1]   = '#c0c0c0'; //  
     21$color[1]   = '#c0c0c0'; // 
    2222$color[2]   = '#000000'; // Warning/Error Messages 
    2323$color[3]   = '#c0c0c0'; // Left Bar Background 
     
    3434$custom_css = 'omega.css'; 
    3535$GLOBALS['minimize_button'] = 'hive_minimize.png'; 
    36 $GLOBALS['refresh_button'] = 'xp_refresh.png'; 
     36$GLOBALS['refresh_button'] = 'hive_refresh.png'; 
    3737?>