Changeset 220
- Timestamp:
- 11/28/07 21:03:23 (13 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 modified
-
ChangeLog (modified) (1 diff)
-
includes/sites/email_view.php (modified) (2 diffs)
-
includes/sites/forward_add.php (modified) (1 diff)
-
includes/sites/main.php (modified) (1 diff)
-
includes/sites/user_fetchmail.php (modified) (1 diff)
-
includes/sites/user_spam.php (modified) (1 diff)
-
sql_upgrades (modified) (1 diff)
-
templates/domain_view.tpl (modified) (2 diffs)
-
templates/index_admin.tpl (modified) (1 diff)
-
templates/index_sadmin.tpl (modified) (1 diff)
-
web/css/main.css (modified) (1 diff)
-
web/img/icons/help.png (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r218 r220 3 3 o Fixed: recipient classes VIEW 4 4 o Improved: display mailbox size with units 5 o Improved: vaction view in index with CSS tooltips 5 6 o Improved: fist step to better inputchecks for XSS protection 6 7 Thanks to Sven Tantau (http://beastiebytes.com) -
trunk/includes/sites/email_view.php
r218 r220 98 98 $smarty->assign('if_wrong_sa_subjecttag','y'); 99 99 } 100 elseif (!preg_match("/^([ 0-9A-Za-z*\s\+\.\-_\]\[]+)$/",$_POST['rewrite_subject_header'])) {100 elseif (!preg_match("/^([\s0-9A-Za-z*\s\+\.\-_\]\[]+)$/",$_POST['rewrite_subject_header'])&&$_POST['spamassasin_active']=='1') { 101 101 $smarty->assign('error_msg', 'y'); 102 102 $smarty->assign('if_illegal_sa_subjecttag','y'); … … 185 185 $db->query($sql); 186 186 } 187 //FIXME INPUT CHECKS!!! 187 188 if (isset($_POST['xheader_submit'])) { 188 189 if (!empty($_POST['xheader_name']) && !empty($_POST['xheader_value'])) { -
trunk/includes/sites/forward_add.php
r145 r220 39 39 $smarty->assign('if_error_forwds_max_reached','y'); 40 40 } 41 41 //FIXME: Remove that fucking coe 42 42 //fetch all mailaddress: 43 43 $sql=sprintf("SELECT email FROM users WHERE domainid='%s' AND enew!='0' ORDER BY email", -
trunk/includes/sites/main.php
r217 r220 67 67 $vaction_infos=""; 68 68 while($row_vac = $res_vacation->fetchrow(DB_FETCHMODE_ASSOC)) { 69 $vaction_infos .= $row_vac['email'] . " ";69 $vaction_infos .= $row_vac['email'] . "<br/>"; 70 70 } 71 71 } -
trunk/includes/sites/user_fetchmail.php
r139 r220 48 48 } 49 49 else { 50 //FIXME: INPUT CHECKS!! 50 51 $sql=sprintf("INSERT INTO fetchmail SET email='%d', server='%s',proto='%d',conn_type='%d',username='%s',password='%s', keep_mails='%d',active='1'", 51 52 $db->escapeSimple($_SESSION['uid']), -
trunk/includes/sites/user_spam.php
r218 r220 51 51 $smarty->assign('if_wrong_sa_subjecttag','y'); 52 52 } 53 elseif (!preg_match("/^([ 0-9A-Za-z*\s\+\.\-_\]\[]+)$/",$_POST['rewrite_subject_header'])) {53 elseif (!preg_match("/^([\s0-9A-Za-z*\s\+\.\-_\]\[]+)$/",$_POST['rewrite_subject_header'])&&$_POST['spamassasin_active']=='1') { 54 54 $smarty->assign('error_msg', 'y'); 55 55 $smarty->assign('if_illegal_sa_subjecttag','y'); -
trunk/sql_upgrades
r217 r220 178 178 DROP VIEW IF EXISTS smtpd_recipient_classes; 179 179 CREATE VIEW smtpd_recipient_classes AS SELECT email,if(p_check_polw=1,'check_polw','') AS polw,if(p_check_grey=1,'check_grey','') AS grey FROM users WHERE access=1 AND p_check_polw!=0 AND p_check_polw!=0 UNION SELECT efrom,if(p_check_polw=1,'check_polw','') AS polw,if(p_check_grey=1,'check_grey','') AS grey FROM forwardings WHERE access=1 AND p_check_polw!=0 AND p_check_polw!=0 AND efrom NOT REGEXP '^@'; 180 180 181 CREATE TABLE `domains_forward` ( 182 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , 183 `fr_domain` INT NOT NULL , 184 `to_domain` INT NOT NULL , 185 INDEX ( `fr_domain` ) 186 ) ENGINE = MYISAM ; 187 -
trunk/templates/domain_view.tpl
r217 r220 23 23 {foreach from=$table_email item=row } 24 24 <tr bgcolor="{cycle values="$color1,$color2"}"> 25 <td style="width:300px;">{if $row.autoresponder eq "1"}<img src="img/icons/autoresponder.png" title="{t}vacation active!{/t}" />{/if} 26 <a href="?module=email_view&id={$row.id}&did={$did}">{$row.email}</a></td> 25 26 <td style="width:300px;"><div style="float:left;"> 27 {if $row.autoresponder eq "1"}<img src="img/icons/autoresponder.png" align="middle" title="{t}vacation active!{/t}" />{/if} 28 <a href="?module=email_view&id={$row.id}&did={$did}">{$row.email}</a></div> 29 <div style="float:right;padding:0px;"> 30 <a class="tooltip" href="#"> 31 <img src="img/icons/help.png" title="" align="middle"/> 32 <span>{t}information{/t}:<br/> </span></a> 33 </div></td> 27 34 28 35 {if $display_mb_size == 1} … … 133 140 </tr> 134 141 142 143 <tr> 144 <td style="width:670px;" class="domain_view" colspan="4"><h3>{t}internal domainforward{/t}:</h3></td> 145 </tr> 146 <tr> 147 {if $domain_forward_active==0} 148 <td colspan="4"> 149 {t 1=$dnsname}no internal domainforward for %1 configured.{/t}<br/><a href="?module=domain_forward&did={$did}&new=yes">{t}click here to configure an domainfoward.{/t}</a> 150 </td> 151 </tr> 152 {else} 153 154 <tr> 155 <td style="font-weight:bold;padding-right:15px;">{t}source domain{/t}</td> 156 <td style="font-weight:bold;">{t}destination domain{/t}</td> 157 </tr> 158 <tr> 159 <td style="padding-right:15px;">{$dnsname}</td> 160 <td><a href="?module=domain_view&did={$to_domain_id}">{$to_domain_name}</a></td> 161 <td style="text-align:right;vertical-align:middle;"><img src="img/icons/delete.png" style="border:0px;" /></td> 162 </tr> 163 164 {/if} 165 135 166 {if $if_superadmin == 1 } 136 167 <tr> -
trunk/templates/index_admin.tpl
r217 r220 11 11 <tr bgcolor="{cycle values="$color1,$color2"}"> 12 12 <td style="padding-left:3px;"> 13 <a href="?module=domain_view&did={$table_data[row].id}">{$table_data[row].dnsname}</a></td> 13 <div style="float:left;"> 14 <a href="?module=domain_view&did={$row.id}">{$row.dnsname}</a></div> 15 {if $row.vacation == 1} 16 <div style="float:right;padding:0px;"> 17 <a class="tooltip" href="#"> 18 <img src="img/icons/autoresponder.png" title="" align="middle"/> 19 <span>{t}vacation{/t}:<br/>{$row.vacation_infos}</span></a> 20 </div> 21 {/if} 22 </td> 14 23 <td style="text-align:right;">{$table_data[row].count_email}</td> 15 24 <td style="text-align:right;">{$table_data[row].count_forward}</td> -
trunk/templates/index_sadmin.tpl
r217 r220 18 18 {if $row.vacation == 1} 19 19 <div style="float:right;padding:0px;"> 20 <img src="img/icons/autoresponder.png" title="{$row.vacation_infos}" align="middle"/> 20 <a class="tooltip" href="#"> 21 <img src="img/icons/autoresponder.png" title="" align="middle"/> 22 <span>{t}vacation{/t}:<br/>{$row.vacation_infos}</span></a> 21 23 </div> 22 24 {/if} -
trunk/web/css/main.css
r22 r220 310 310 .right {text-align:right;} 311 311 312 a.tooltip, 313 a.tooltip:link, 314 a.tooltip:visited, 315 a.tooltip:active { 316 position: relative; 317 text-decoration: none; 318 font-style: bold; 319 border-bottom:0px dotted #f0f0f0; 320 } 321 322 a.tooltip:hover { 323 background: transparent; 324 z-index: 200; 325 } 326 327 a.tooltip span { 328 display: none; 329 text-decoration: none; 330 } 331 332 a.tooltip:hover span { 333 display: block; 334 position: absolute; 335 top: 30px; 336 left: 0; 337 width: 200px; 338 z-index: 200; 339 color: #000000; 340 border-right: 4px solid #8b8b8b; 341 border-left: 4px solid #8b8b8b; 342 padding: 2px 10px 2px 10px; 343 background: #EEEEEE; 344 font-style: Normal; 345 text-align: left; 346 347 312 348 /*** End of file ***/
