SF.net SVN: postfixadmin:[1475] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2013-06-06 21:05:13
|
Revision: 1475 http://sourceforge.net/p/postfixadmin/code/1475 Author: christian_boltz Date: 2013-06-06 21:05:10 +0000 (Thu, 06 Jun 2013) Log Message: ----------- list-virtual.php, smarty.inc.php: - replace boolconf() calls with Config::bool() Modified Paths: -------------- trunk/list-virtual.php trunk/smarty.inc.php Modified: trunk/list-virtual.php =================================================================== --- trunk/list-virtual.php 2013-06-06 20:53:37 UTC (rev 1474) +++ trunk/list-virtual.php 2013-06-06 21:05:10 UTC (rev 1475) @@ -95,7 +95,7 @@ # alias domain # -if (boolconf('alias_domain')) { +if (Config::bool('alias_domain')) { if ($search == "") { $list_param = "alias_domain='$fDomain' OR target_domain='$fDomain'"; } else { @@ -163,7 +163,7 @@ # mailboxes # -$display_mailbox_aliases = boolconf('alias_control_admin'); +$display_mailbox_aliases = Config::bool('alias_control_admin'); # build the sql query $sql_select = "SELECT $table_mailbox.* "; @@ -188,17 +188,17 @@ $sql_join .= " LEFT JOIN $table_alias ON $table_mailbox.username=$table_alias.address "; } -if (boolconf('vacation_control_admin')) { +if (Config::bool('vacation_control_admin')) { $sql_select .= ", $table_vacation.active AS v_active "; $sql_join .= " LEFT JOIN $table_vacation ON $table_mailbox.username=$table_vacation.email "; } -if (boolconf('used_quotas') && boolconf('new_quota_table')) { +if (Config::bool('used_quotas') && Config::bool('new_quota_table')) { $sql_select .= ", $table_quota2.bytes as current "; $sql_join .= " LEFT JOIN $table_quota2 ON $table_mailbox.username=$table_quota2.username "; } -if (boolconf('used_quotas') && ( ! boolconf('new_quota_table') ) ) { +if (Config::bool('used_quotas') && ( ! Config::bool('new_quota_table') ) ) { $sql_select .= ", $table_quota.current "; $sql_join .= " LEFT JOIN $table_quota ON $table_mailbox.username=$table_quota.username "; $sql_where .= " AND ( $table_quota.path='quota/storage' OR $table_quota.path IS NULL ) "; @@ -226,7 +226,7 @@ if ($goto_single == $row['username'] || $goto_single_rec_del == $row['username']) { # delivers to mailbox $row['goto_mailbox'] = 1; - } elseif (boolconf('vacation') && strstr($goto_single, '@' . $CONF['vacation_domain']) ) { # vacation alias - TODO: check for full vacation alias + } elseif (Config::bool('vacation') && strstr($goto_single, '@' . $CONF['vacation_domain']) ) { # vacation alias - TODO: check for full vacation alias # skip the vacation alias, vacation status is detected otherwise } else { # forwarding to other alias $row['goto_other'][] = $goto_single; @@ -288,7 +288,7 @@ $limit ['aliases'] = eval_size ($limit ['aliases']); $limit ['mailboxes'] = eval_size ($limit ['mailboxes']); - if (boolconf('quota')) { + if (Config::bool('quota')) { $limit ['maxquota'] = eval_size ($limit ['maxquota']); } } @@ -457,7 +457,7 @@ $smarty->assign ('tCanAddAlias', $tCanAddAlias); $smarty->assign ('tMailbox', $tMailbox); $smarty->assign ('gen_show_status_mailbox', $gen_show_status_mailbox, false); -$smarty->assign ('boolconf_used_quotas', boolconf('used_quotas')); +$smarty->assign ('boolconf_used_quotas', Config::bool('used_quotas')); $smarty->assign ('divide_quota', $divide_quota); $smarty->assign ('tCanAddMailbox', $tCanAddMailbox); $smarty->assign ('display_mailbox_aliases', $display_mailbox_aliases); Modified: trunk/smarty.inc.php =================================================================== --- trunk/smarty.inc.php 2013-06-06 20:53:37 UTC (rev 1474) +++ trunk/smarty.inc.php 2013-06-06 21:05:10 UTC (rev 1475) @@ -66,7 +66,7 @@ $smarty->assign ('version', $version); //*** menu.tpl -$smarty->assign ('boolconf_alias_domain', boolconf('alias_domain')); +$smarty->assign ('boolconf_alias_domain', Config::bool('alias_domain')); $smarty->assign ('authentication_has_role', array ('global_admin' => authentication_has_role ('global-admin'), 'admin' => authentication_has_role ('admin'), 'user' => authentication_has_role ('user'))); function select_options($aValues, $aSelected) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |