Changeset 1036


Ignore:
Timestamp:
06/22/09 09:47:02 (15 years ago)
Author:
amuller
Message:

Ticket #559 - Atualização de segurança

Location:
trunk
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/setup/setup.inc.php

    r704 r1036  
    5252        $setup_info['calendar']['depends'][] = array( 
    5353                 'appname' => 'phpgwapi', 
    54                  'versions' => Array('0.9.14','0.9.15','0.9.16','1.0.00', '1.0.0.007') 
     54                 'versions' => Array('0.9.14','0.9.15','0.9.16','1.0.00', '1.0.0.008') 
    5555        ); 
  • trunk/expressoMail1_2/controller.php

    r504 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
     9 
    210        //      Explode action from cExecuteForm function 
    311        $cExecuteFormReturn = false; 
  • trunk/expressoMail1_2/inc/class.ScriptS.inc.php

    r564 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29 
    310//Inclui o arquivo contendo a classe SieveS; 
  • trunk/expressoMail1_2/inc/class.SieveS.inc.php

    r2 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29//Conecta com o Servidor e o serviço Sieve; 
    310class SieveS{ 
  • trunk/expressoMail1_2/inc/class.db_functions.inc.php

    r1035 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29define('PHPGW_INCLUDE_ROOT','../');      
    310define('PHPGW_API_INC','../phpgwapi/inc');       
  • trunk/expressoMail1_2/inc/class.exporteml.inc.php

    r1035 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29/***************************************************************************************\ 
    310* Export EML Format Message Mail                                                                                                                * 
  • trunk/expressoMail1_2/inc/class.functions.inc.php

    r94 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        class Functions{ 
    310                 
  • trunk/expressoMail1_2/inc/class.imap_attachment.inc.php

    r271 r1036  
    1 <?php                    
     1<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29class imap_attachment 
    310{ 
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1035 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29include_once("class.functions.inc.php"); 
    310include_once("class.ldap_functions.inc.php"); 
     
    10001007                } 
    10011008                // Malicious Code Remove 
    1002                 $dirtyCodePattern = "/(<([\w]+)([^>]*)on(mouse(move|over|down|up)|load|blur|change|click|dblclick|focus|key(down|up|press)|select)=[\"'][^>\"']*[\"']([^>]*)>)(.*)(<\/\\2>)?/isU"; 
     1009                $dirtyCodePattern = "/(<([\w]+[\w0-9]*)([^>]*)on(mouse(move|over|down|up)|load|blur|change|click|dblclick|focus|key(down|up|press)|select)(\ *)=(\ *)[\"'][^>\"']*[\"']([^>]*)>)(.*)(<\/\\2>)?/misU"; 
    10031010                preg_match_all($dirtyCodePattern,$body,$rest,PREG_PATTERN_ORDER); 
    10041011                foreach($rest[0] as $i => $val) 
    1005                         if (!(preg_match("/window\.open/i",$rest[1][$i]) && strtoupper($rest[4][$i]) == "CLICK" )) //Calendar events 
     1012                        if (!(preg_match("/javascript:window\.open\(\"\/index\.php\?menuaction=calendar\.uicalendar\.set_action\&cal_id=([^;'\"]+);?['\"]/i",$rest[1][$i]) && strtoupper($rest[4][$i]) == "CLICK" )) //Calendar events 
    10061013                                $body = str_replace($rest[1][$i],"<".$rest[2][$i].$rest[3][$i].$rest[7][$i].">",$body); 
    10071014 
     
    10131020                // Verify exception. 
    10141021                @preg_match("/<a href=\"notes:\/\/\//",$body,$matches); 
    1015                 // It no has exception,then open the link in new window. 
     1022                // If there is no exception,then open the link in new window. 
    10161023                if(count($matches)) 
    10171024                        return $body; 
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r925 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29include_once("class.imap_functions.inc.php"); 
    310include_once("class.functions.inc.php"); 
  • trunk/expressoMail1_2/inc/class.message_components.inc.php

    r567 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29 
    310    class message_components { 
  • trunk/expressoMail1_2/inc/class.phpmailer.php

    r1035 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29//////////////////////////////////////////////////// 
    310// PHPMailer - PHP email class 
  • trunk/expressoMail1_2/inc/class.smtp.php

    r756 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29//////////////////////////////////////////////////// 
    310// SMTP - PHP SMTP class 
  • trunk/expressoMail1_2/inc/class.user.inc.php

    r2 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        class user{ 
    310                 
  • trunk/expressoMail1_2/inc/fckeditor.php

    r389 r1036  
    1 <?php  
     1<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29/* 
    310 * FCKeditor - The text editor for internet 
  • trunk/expressoMail1_2/inc/gd_functions.php

    r1005 r1036  
    1 <?/* 
     1<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29*Author: 
    310*    JPEXS  from http://www.hotscripts.com* ImageCreateFromBmp 
  • trunk/expressoMail1_2/inc/gotodownload.php

    r1011 r1036  
    55                'noheader'   => true 
    66        ); 
    7          
     7 
    88        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    99 
     
    1414        $msg_folder = $_GET['msg_folder']; 
    1515        $msg_folder = mb_convert_encoding($msg_folder,"UTF7-IMAP", mb_detect_encoding($msg_folder, "UTF-8, ISO-8859-1", true)); 
    16                  
     16 
    1717        $encoding = strtolower($_GET['encoding']); 
    1818        $fileContent = ""; 
    19          
     19 
    2020        if($msg_number && $msg_part && $msg_folder && (intval($idx_file == '0' ? '1' : $idx_file))) { 
    2121                $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 
     
    3232                } 
    3333                $mbox_stream = imap_open("{".$imap_server.":".$imap_port.$imap_options."}".$msg_folder, $username, $password);           
    34                 $fileContent = imap_fetchbody($mbox_stream, $msg_number, $msg_part, FT_UID); 
     34                $fileContent = imap_fetchbody($mbox_stream, $msg_number, $msg_part, FT_UID); 
    3535                /* 
    36                 *Removed by Bug #546 
    37                 *include("class.imap_attachment.inc.php"); 
    38                 *$imap_attachment = new imap_attachment();                       
    39                 *$a = $imap_attachment->download_attachment($mbox_stream, $msg_number); 
    40                 *$filename = $a[$idx_file]['name']; 
    41                 */ 
     36                 *Removed by Bug #546 
     37                 *include("class.imap_attachment.inc.php"); 
     38                 *$imap_attachment = new imap_attachment();                      
     39                 *$a = $imap_attachment->download_attachment($mbox_stream, $msg_number); 
     40                 *$filename = $a[$idx_file]['name']; 
     41                 */ 
    4242                $filename = $newfilename; 
    4343        } 
    4444        else 
    4545                $filename = $idx_file; 
    46                          
    47         $filename        = $filename    ? $filename     : "attachment.bin"; 
    48         $newfilename = $newfilename ? $newfilename      : $filename; 
    49         $strFileType = strrev(substr(strrev(strtolower($filename)),0,4)); 
    50          
    51         downloadFile($strFileType, $filename, $newfilename, $fileContent, $encoding); 
    52     
    53    function downloadFile($strFileType, $strFileName, $newFileName, $fileContent, $encoding) { 
    54         $ContentType = "application/octet-stream"; 
    5546 
    56         if ($strFileType == ".asf")  
    57                 $ContentType = "video/x-ms-asf"; 
    58         if ($strFileType == ".avi") 
    59                 $ContentType = "video/avi"; 
    60         if ($strFileType == ".doc") 
    61                 $ContentType = "application/msword"; 
    62         if ($strFileType == ".zip") 
    63                 $ContentType = "application/zip"; 
    64         if ($strFileType == ".xls") 
    65                 $ContentType = "application/vnd.ms-excel"; 
    66         if ($strFileType == ".gif") 
    67                 $ContentType = "image/gif"; 
    68         if ($strFileType == ".jpg" || $strFileType == "jpeg") 
    69                 $ContentType = "image/jpeg"; 
    70         if ($strFileType == ".wav") 
    71                 $ContentType = "audio/wav"; 
    72         if ($strFileType == ".mp3") 
    73                 $ContentType = "audio/mpeg3"; 
    74         if ($strFileType == ".mpg" || $strFileType == "mpeg") 
    75                 $ContentType = "video/mpeg"; 
    76         if ($strFileType == ".rtf") 
    77                 $ContentType = "application/rtf"; 
    78         if ($strFileType == ".htm" || $strFileType == "html") 
    79                 $ContentType = "text/html"; 
    80         if ($strFileType == ".xml")  
    81                 $ContentType = "text/xml"; 
    82         if ($strFileType == ".xsl")  
    83                 $ContentType = "text/xsl"; 
    84         if ($strFileType == ".css")  
    85                 $ContentType = "text/css"; 
    86         if ($strFileType == ".php")  
    87                 $ContentType = "text/php"; 
    88         if ($strFileType == ".asp")  
    89                 $ContentType = "text/asp"; 
    90         if ($strFileType == ".pdf") 
    91                 $ContentType = "application/pdf"; 
    92         if ($strFileType == ".txt") 
    93                 $ContentType = "text/plain"; 
    94         if ($strFileType == ".log") 
    95                 $ContentType = "text/plain"; 
    96         if ($strFileType == ".wmv") 
    97                 $ContentType = "video/x-ms-wmv"; 
    98         if ($strFileType == ".sxc") 
    99                 $ContentType = "application/vnd.sun.xml.calc"; 
    100         if ($strFileType == ".odt") 
    101                 $ContentType = "application/vnd.oasis.opendocument.text"; 
    102         if ($strFileType == ".stc") 
    103                 $ContentType = "application/vnd.sun.xml.calc.template"; 
    104         if ($strFileType == ".sxd") 
    105                 $ContentType = "application/vnd.sun.xml.draw"; 
    106         if ($strFileType == ".std") 
    107                 $ContentType = "application/vnd.sun.xml.draw.template"; 
    108         if ($strFileType == ".sxi") 
    109                 $ContentType = "application/vnd.sun.xml.impress"; 
    110         if ($strFileType == ".sti") 
    111                 $ContentType = "application/vnd.sun.xml.impress.template"; 
    112         if ($strFileType == ".sxm") 
    113                 $ContentType = "application/vnd.sun.xml.math"; 
    114         if ($strFileType == ".sxw") 
    115                 $ContentType = "application/vnd.sun.xml.writer"; 
    116         if ($strFileType == ".sxq") 
    117                 $ContentType = "application/vnd.sun.xml.writer.global"; 
    118         if ($strFileType == ".stw") 
    119                 $ContentType = "application/vnd.sun.xml.writer.template"; 
    120         if ($strFileType == ".ps") 
    121                 $ContentType = "application/postscript"; 
    122         if ($strFileType == ".pps") 
    123                 $ContentType = "application/vnd.ms-powerpoint"; 
    124         if ($strFileType == ".odt") 
    125                 $ContentType = "application/vnd.oasis.opendocument.text"; 
    126         if ($strFileType == ".ott") 
    127                 $ContentType = "application/vnd.oasis.opendocument.text-template"; 
    128         if ($strFileType == ".oth") 
    129                 $ContentType = "application/vnd.oasis.opendocument.text-web"; 
    130         if ($strFileType == ".odm") 
    131                 $ContentType = "application/vnd.oasis.opendocument.text-master"; 
    132         if ($strFileType == ".odg") 
    133                 $ContentType = "application/vnd.oasis.opendocument.graphics"; 
    134         if ($strFileType == ".otg") 
    135                 $ContentType = "application/vnd.oasis.opendocument.graphics-template"; 
    136         if ($strFileType == ".odp") 
    137                 $ContentType = "application/vnd.oasis.opendocument.presentation"; 
    138         if ($strFileType == ".otp") 
    139                 $ContentType = "application/vnd.oasis.opendocument.presentation-template"; 
    140         if ($strFileType == ".ods") 
    141                 $ContentType = "application/vnd.oasis.opendocument.spreadsheet"; 
    142         if ($strFileType == ".ots") 
    143                 $ContentType = "application/vnd.oasis.opendocument.spreadsheet-template"; 
    144         if ($strFileType == ".odc") 
    145                 $ContentType = "application/vnd.oasis.opendocument.chart"; 
    146         if ($strFileType == ".odf") 
    147                 $ContentType = "application/vnd.oasis.opendocument.formula"; 
    148         if ($strFileType == ".odi") 
    149                 $ContentType = "application/vnd.oasis.opendocument.image"; 
    150         if ($strFileType == ".ndl") 
    151                 $ContentType = "application/vnd.lotus-notes"; 
    152          
    153         header ("Content-Type: $ContentType"); 
    154         header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
    155         header("Pragma: public"); 
    156         header("Expires: 0"); // set expiration time 
    157         header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\"");          
    158         if($fileContent) { 
    159                 if($encoding == 'base64') 
    160                         echo imap_base64($fileContent); 
    161                 else if($encoding == 'quoted-printable') 
    162                         echo quoted_printable_decode($fileContent); 
     47        $filename        = $filename    ? $filename     : "attachment.bin"; 
     48        $newfilename = $newfilename ? $newfilename      : $filename; 
     49        $strFileType = strrev(substr(strrev(strtolower($filename)),0,4)); 
     50 
     51        downloadFile($strFileType, $filename, $newfilename, $fileContent, $encoding); 
     52 
     53        function downloadFile($strFileType, $strFileName, $newFileName, $fileContent, $encoding) { 
     54                $ContentType = "application/octet-stream"; 
     55 
     56                if ($strFileType == ".asf")  
     57                        $ContentType = "video/x-ms-asf"; 
     58                if ($strFileType == ".avi") 
     59                        $ContentType = "video/avi"; 
     60                if ($strFileType == ".doc") 
     61                        $ContentType = "application/msword"; 
     62                if ($strFileType == ".zip") 
     63                        $ContentType = "application/zip"; 
     64                if ($strFileType == ".xls") 
     65                        $ContentType = "application/vnd.ms-excel"; 
     66                if ($strFileType == ".gif") 
     67                        $ContentType = "image/gif"; 
     68                if ($strFileType == ".jpg" || $strFileType == "jpeg") 
     69                        $ContentType = "image/jpeg"; 
     70                if ($strFileType == ".wav") 
     71                        $ContentType = "audio/wav"; 
     72                if ($strFileType == ".mp3") 
     73                        $ContentType = "audio/mpeg3"; 
     74                if ($strFileType == ".mpg" || $strFileType == "mpeg") 
     75                        $ContentType = "video/mpeg"; 
     76                if ($strFileType == ".rtf") 
     77                        $ContentType = "application/rtf"; 
     78                if ($strFileType == ".htm" || $strFileType == "html") 
     79                        $ContentType = "text/html"; 
     80                if ($strFileType == ".xml")  
     81                        $ContentType = "text/xml"; 
     82                if ($strFileType == ".xsl")  
     83                        $ContentType = "text/xsl"; 
     84                if ($strFileType == ".css")  
     85                        $ContentType = "text/css"; 
     86                if ($strFileType == ".php")  
     87                        $ContentType = "text/php"; 
     88                if ($strFileType == ".asp")  
     89                        $ContentType = "text/asp"; 
     90                if ($strFileType == ".pdf") 
     91                        $ContentType = "application/pdf"; 
     92                if ($strFileType == ".txt") 
     93                        $ContentType = "text/plain"; 
     94                if ($strFileType == ".log") 
     95                        $ContentType = "text/plain"; 
     96                if ($strFileType == ".wmv") 
     97                        $ContentType = "video/x-ms-wmv"; 
     98                if ($strFileType == ".sxc") 
     99                        $ContentType = "application/vnd.sun.xml.calc"; 
     100                if ($strFileType == ".odt") 
     101                        $ContentType = "application/vnd.oasis.opendocument.text"; 
     102                if ($strFileType == ".stc") 
     103                        $ContentType = "application/vnd.sun.xml.calc.template"; 
     104                if ($strFileType == ".sxd") 
     105                        $ContentType = "application/vnd.sun.xml.draw"; 
     106                if ($strFileType == ".std") 
     107                        $ContentType = "application/vnd.sun.xml.draw.template"; 
     108                if ($strFileType == ".sxi") 
     109                        $ContentType = "application/vnd.sun.xml.impress"; 
     110                if ($strFileType == ".sti") 
     111                        $ContentType = "application/vnd.sun.xml.impress.template"; 
     112                if ($strFileType == ".sxm") 
     113                        $ContentType = "application/vnd.sun.xml.math"; 
     114                if ($strFileType == ".sxw") 
     115                        $ContentType = "application/vnd.sun.xml.writer"; 
     116                if ($strFileType == ".sxq") 
     117                        $ContentType = "application/vnd.sun.xml.writer.global"; 
     118                if ($strFileType == ".stw") 
     119                        $ContentType = "application/vnd.sun.xml.writer.template"; 
     120                if ($strFileType == ".ps") 
     121                        $ContentType = "application/postscript"; 
     122                if ($strFileType == ".pps") 
     123                        $ContentType = "application/vnd.ms-powerpoint"; 
     124                if ($strFileType == ".odt") 
     125                        $ContentType = "application/vnd.oasis.opendocument.text"; 
     126                if ($strFileType == ".ott") 
     127                        $ContentType = "application/vnd.oasis.opendocument.text-template"; 
     128                if ($strFileType == ".oth") 
     129                        $ContentType = "application/vnd.oasis.opendocument.text-web"; 
     130                if ($strFileType == ".odm") 
     131                        $ContentType = "application/vnd.oasis.opendocument.text-master"; 
     132                if ($strFileType == ".odg") 
     133                        $ContentType = "application/vnd.oasis.opendocument.graphics"; 
     134                if ($strFileType == ".otg") 
     135                        $ContentType = "application/vnd.oasis.opendocument.graphics-template"; 
     136                if ($strFileType == ".odp") 
     137                        $ContentType = "application/vnd.oasis.opendocument.presentation"; 
     138                if ($strFileType == ".otp") 
     139                        $ContentType = "application/vnd.oasis.opendocument.presentation-template"; 
     140                if ($strFileType == ".ods") 
     141                        $ContentType = "application/vnd.oasis.opendocument.spreadsheet"; 
     142                if ($strFileType == ".ots") 
     143                        $ContentType = "application/vnd.oasis.opendocument.spreadsheet-template"; 
     144                if ($strFileType == ".odc") 
     145                        $ContentType = "application/vnd.oasis.opendocument.chart"; 
     146                if ($strFileType == ".odf") 
     147                        $ContentType = "application/vnd.oasis.opendocument.formula"; 
     148                if ($strFileType == ".odi") 
     149                        $ContentType = "application/vnd.oasis.opendocument.image"; 
     150                if ($strFileType == ".ndl") 
     151                        $ContentType = "application/vnd.lotus-notes"; 
     152 
     153                header ("Content-Type: $ContentType"); 
     154                header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
     155                header("Pragma: public"); 
     156                header("Expires: 0"); // set expiration time 
     157                header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\"");          
     158                if($fileContent) { 
     159                        if($encoding == 'base64') 
     160                                echo imap_base64($fileContent); 
     161                        else if($encoding == 'quoted-printable') 
     162                                echo quoted_printable_decode($fileContent); 
     163                        else 
     164                                echo $fileContent; 
     165                } 
    163166                else 
    164                         echo $fileContent; 
     167                        if ( ( strpos( $strFileName, ini_get( 'session.save_path' ) ) === 0 ) && ( strpos( $strFileName, '../' ) === false ) ) 
     168                                readfile($strFileName); 
    165169        } 
    166         else 
    167                 if ( strpos( $strFileName, ini_get( 'session.save_path' ) ) !== false ) 
    168                         readfile($strFileName); 
    169    } 
    170    ?> 
     170?> 
  • trunk/expressoMail1_2/inc/hook_admin.inc.php

    r69 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        /**************************************************************************\ 
    310        * eGroupWare                                                               * 
  • trunk/expressoMail1_2/inc/hook_home.inc.php

    r139 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29         
    310        $current_app = 'expressoMail1_2'; 
  • trunk/expressoMail1_2/inc/hook_preferences.inc.php

    r873 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29{ 
    310        $title = $appname; 
  • trunk/expressoMail1_2/inc/hook_settings.inc.php

    r1035 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        /**************************************************************************\ 
    310        * eGroupWare - ExpressoMail Preferences                                    * 
  • trunk/expressoMail1_2/inc/load_lang.php

    r604 r1036  
    1 <? 
     1<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29// Load the lang of the module. 
    310        if(!$_SESSION['phpgw_info']['expressomail']['lang'])  
  • trunk/expressoMail1_2/inc/show_embedded_attach.php

    r205 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 
    310        $password = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; 
  • trunk/expressoMail1_2/inc/show_img.php

    r178 r1036  
    1 <?php    
     1<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        header("Content-Type: image/jpeg"); 
    310        if($_GET['msg_num'] && $_GET['msg_part'] && $_GET['msg_folder']) { 
  • trunk/expressoMail1_2/inc/show_thumbs.php

    r178 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 
    310        $password = $_SESSION['phpgw_info']['expressomail']['user']['passwd']; 
  • trunk/expressoMail1_2/inc/show_user_photo.php

    r175 r1036  
    11<?php 
     2        $GLOBALS['phpgw_info']['flags'] = array( 
     3                'currentapp' => 'expressoMail1_2', 
     4                'nonavbar'   => true, 
     5                'noheader'   => true 
     6        ); 
     7 
     8        require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 
    29        function ldapRebind($ldap_connection, $ldap_url) 
    310        { 
  • trunk/expressoMail1_2/index.php

    r1035 r1036  
    3232        ); 
    3333         
    34         include('../header.inc.php'); 
     34        require_once('../header.inc.php'); 
    3535        $update_version = $GLOBALS['phpgw_info']['flags']['update_version']; 
    3636        $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
  • trunk/expressoMail1_2/preferences.php

    r1035 r1036  
    1010 
    1111         
    12         include('../header.inc.php'); 
     12        require_once('../header.inc.php'); 
    1313        include('inc/class.imap_functions.inc.php');     
    1414        include_once("inc/fckeditor.php"); 
  • trunk/help/setup/setup.inc.php

    r194 r1036  
    2626        $setup_info['help']['depends'][] = array( 
    2727                 'appname' => 'phpgwapi', 
    28                  'versions' => Array('0.9.14','1.0.0.007') 
     28                 'versions' => Array('0.9.14','1.0.0.008') 
    2929        ); 
    3030?> 
  • trunk/phpgwapi/inc/class.sessions.inc.php

    r694 r1036  
    650650                                        $login = substr($login,0,30); 
    651651                                } 
    652                                 $GLOBALS['phpgw']->db->query('INSERT INTO phpgw_access_log(sessionid,loginid,ip,li,lo,account_id)' 
     652                                $GLOBALS['phpgw']->db->query('INSERT INTO phpgw_access_log(sessionid,loginid,ip,li,lo,account_id,browser)' 
    653653                                        . " VALUES ('" . $sessionid . "','" . $this->db->db_addslashes($login). "','" 
    654                                         . $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .')',__LINE__,__FILE__); 
     654                                        . $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .",'".$this->db->db_addslashes($_SERVER[ 'HTTP_USER_AGENT' ])."')",__LINE__,__FILE__); 
    655655                        } 
    656656                        else if($sessionid != 'bad login or password') 
  • trunk/phpgwapi/setup/setup.inc.php

    r2 r1036  
    1414        $setup_info['phpgwapi']['name']      = 'phpgwapi'; 
    1515        $setup_info['phpgwapi']['title']     = 'phpgwapi'; 
    16         $setup_info['phpgwapi']['version']   = '1.0.0.007'; 
     16        $setup_info['phpgwapi']['version']   = '1.0.0.008'; 
    1717        $setup_info['phpgwapi']['versions']['current_header'] = '1.27'; 
    1818        $setup_info['phpgwapi']['enable']    = 3; 
  • trunk/phpgwapi/setup/tables_update.inc.php

    r2 r1036  
    16481648                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
    16491649        } 
     1650 
     1651        $test[] = '1.0.0.007'; 
     1652        function phpgwapi_upgrade1_0_0_007() 
     1653        { 
     1654 
     1655                global $setup_info,$phpgw_setup; 
     1656 
     1657                $phpgw_setup->oProc->AddColumn('phpgw_access_log','browser', array ('type' => 'varchar', 'precision' => 200)); 
     1658                $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.0.0.008'; 
     1659                return $GLOBALS['setup_info']['phpgwapi']['currentver']; 
     1660 
     1661        } 
     1662 
    16501663?> 
  • trunk/preferences/setup/setup.inc.php

    r2 r1036  
    2828        $setup_info['preferences']['depends'][] = array( 
    2929                'appname' => 'phpgwapi', 
    30                 'versions' => Array('0.9.10', '0.9.11', '0.9.12', '0.9.13', '0.9.14','1.0.0.007') 
     30                'versions' => Array('0.9.10', '0.9.11', '0.9.12', '0.9.13', '0.9.14','1.0.0.008') 
    3131        ); 
    3232?> 
Note: See TracChangeset for help on using the changeset viewer.