Changeset 179

Show
Ignore:
Timestamp:
09/08/07 17:34:36 (16 months ago)
Author:
jonas
Message:
 
Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r178 r179  
    1010        o Added: lang selection per user/sadmin 
    1111        o Added: md5sum of .mailfiter will be saved to database 
     12        o Added: cpves version string to structure.tpl 
    1213        o Improved: removed reload to domain show on save emailaddress 
     14        o Improved: vacation magic quotes 
    1315        o Fixed: autoresponder.pl. UTF-8 problems in body 
    1416CpVES 0.05 2007-08-31 - Jonas Genannt - <jonas.genannt@brachium-system.net> 
  • trunk/includes/config.inc.default.php

    r171 r179  
    7777         "autoresponder_disable","autoresponder_recipient", 
    7878         "autoresponder_send", "email_options","fetchmail", 
    79          "mailarchive","mailfilter","spamassassin","spamassassin_learn"); 
    80  
     79         "mailarchive","mailfilter","spamassassin","spamassassin_learn","autoresponder_xheader"); 
     80$config['cpves_version']="0.06-SVN"; 
    8181require_once(ROOT . '/includes/func.inc.php'); 
    8282?> 
  • trunk/includes/func.inc.php

    r177 r179  
    2323$smarty->assign('mailgraph_link',$config['mailgraph_link']); 
    2424$smarty->assign('display_mb_size',$config['display_mb_size']); 
     25$smarty->assign('cpves_version', $config['cpves_version']); 
    2526/* 
    2627mailfilter prios: 
     
    800801                $db->escapeSimple($uid)); 
    801802        $result=&$db->query($sql); 
     803        // strip fucking magic quotes if enabled 
     804        if (get_magic_quotes_gpc()) { 
     805                $esubject=stripslashes($esubject); 
     806                $msg=stripslashes($msg); 
     807        } 
    802808        if ($result->numRows()==1)  
    803809        { 
     
    812818                        $sql=sprintf("UPDATE autoresponder SET esubject='%s',msg='%s',active='%s',times='%s' WHERE id='%d' AND email='%d'", 
    813819                                $db->escapeSimple($esubject), 
    814                                 $msg, 
     820                                $db->escapeSimple($msg), 
    815821                                $db->escapeSimple($active), 
    816822                                $db->escapeSimple($send_times), 
     
    823829                $sql=sprintf("INSERT INTO autoresponder SET esubject='%s',msg='%s',active='%s',email='%d',times='%s'", 
    824830                                $db->escapeSimple($esubject), 
    825                                 $msg, 
     831                                $db->escapeSimple($msg), 
    826832                                $db->escapeSimple($active), 
    827833                                $db->escapeSimple($uid), 
  • trunk/templates/structure.tpl

    r152 r179  
    2020</head> 
    2121<body {include file="focus_input.tpl"}> 
     22<!-- 
     23################################################################################# 
     24                         CpVES Version: {$cpves_version} 
     25################################################################################# 
     26 
     27################################################################################# 
     28# Copyright (C) 2006-2007 Jonas Genannt <jonas.genannt@brachium-system.net> 
     29#  
     30# This program is free software; you can redistribute it and/or 
     31# modify it under the terms of the GNU General Public License 
     32# as published by the Free Software Foundation; either version 2 
     33# of the License, or (at your option) any later version. 
     34# 
     35# This program is distributed in the hope that it will be useful, 
     36# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     37# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     38# GNU General Public License for more details. 
     39# 
     40# You should have received a copy of the GNU General Public License 
     41# along with this program; if not, write to the Free Software 
     42# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
     43################################################################################# 
     44--> 
    2245{if $error_msg == 'y' && $if_logout != 'y'} 
    2346<div style="background-color:#EF9398;border:1px solid#DC5757;float:right;width:450px;text-align:left;">