$sth->free(); $smarty->assign('atleastone', false); $sth = $dbh->prepare("SELECT language_name, abbreviation FROM maia_languages " . "WHERE installed = 'Y' " . "ORDER BY language_name ASC"); $res = $sth->execute(); if (PEAR::isError($sth)) { die($sth->getMessage()); } $data = array(); $opt_lang = array(); while ($row = $res->fetchrow()) { $opt_lang[$row['abbreviation']] = $row['language_name']; } $smarty->assign('opt_lang', $opt_lang); $sth->free(); } if (is_an_administrator($uid)) { //admins can change these settings $smarty->assign('user_virus_scanning', true); $smarty->assign('user_spam_filtering', true); $smarty->assign('user_banned_files_checking', true); $smarty->assign('user_bad_header_checking', true); } else { // but everyone else is subject to the system config $sth = $dbh->prepare("SELECT user_virus_scanning, " . "user_spam_filtering, " . "user_banned_files_checking, " . "user_bad_header_checking " . "FROM maia_config WHERE id = 0"); $res = $sth->execute(); if ($row = $res->fetchrow()) { $smarty->assign('user_virus_scanning', $row["user_virus_scanning"] == 'Y'); $smarty->assign('user_spam_filtering', $row["user_spam_filtering"] == 'Y'); $smarty->assign('user_banned_files_checking', $row["user_banned_files_checking"] == 'Y'); $smarty->assign('user_bad_header_checking', $row["user_bad_header_checking"] == 'Y'); }
$lang['help_settings_19'] = sprintf($lang['help_settings_19'], $lang['text_bad_header_filtering']); $lang['help_settings_20'] = sprintf($lang['help_settings_20'], $lang['text_mail_with_bad_headers'], $lang['text_quarantined'], $lang['text_labeled']); $lang['help_wblist_3'] = sprintf($lang['help_wblist_3'], "<a href=\"wblist.php" . $sid . "\">[" . $lang['menu_whiteblacklist'] . "]</a>", $lang['header_whitelist'], $lang['header_blacklist'], $lang['button_add_to_list'], $lang['heading_wblist']); $lang['help_wblist_4'] = sprintf($lang['help_wblist_4'], $lang['button_update'], $lang['heading_wblist']); $lang['help_quarantine_2'] = sprintf($lang['help_quarantine_2'], $mail_viewer_url); $lang['help_quarantine_9'] = sprintf($lang['help_quarantine_9'], $lang['text_ham'], $lang['text_delete'], $lang['button_confirm']); $lang['help_quarantine_3'] = sprintf($lang['help_quarantine_3'], $mail_viewer_url, $lang['text_ham'], $lang['text_ham'], $lang['button_confirm']); $lang['help_quarantine_4'] = sprintf($lang['help_quarantine_4'], $mail_viewer_url, $lang['text_ham'], $lang['button_confirm']); $lang['help_quarantine_5'] = sprintf($lang['help_quarantine_5'], $mail_viewer_url, $lang['text_ham'], $lang['button_confirm']); $lang['help_quarantine_6'] = sprintf($lang['help_quarantine_6'], $lang['text_ham']); $lang['help_quarantine_7'] = sprintf($lang['help_quarantine_7'], $expiry_period); $lang['help_quarantine_8'] = sprintf($lang['help_quarantine_8'], $lang['button_delete_all_items']); $lang['help_fn_3'] = sprintf($lang['help_fn_3'], $mail_viewer_url, $lang['link_report']); $lang['help_fn_6'] = sprintf($lang['help_fn_6'], $lang['text_spam'], $lang['button_confirm']); $lang['help_fn_4'] = sprintf($lang['help_fn_4'], $ham_cache_expiry_period); $lang['help_fn_5'] = sprintf($lang['help_fn_5'], $lang['button_delete_all_cached_items']); $lang['help_mail_viewer_1'] = sprintf($lang['help_mail_viewer_1'], $lang['link_view_raw'], $lang['link_view_decoded']); $lang['help_admin_1'] = sprintf($lang['help_admin_1'], "<a href=\"adminhelp.php" . $sid . "\">" . $lang['help_text_adminhelp'] . "</a>"); $lang['help_assistance_1'] = sprintf($lang['help_assistance_1'], "<a href=\"mailto:" . $admin_email . "\">" . $admin_email . "</a>"); $lang['help_credits_1'] = sprintf($lang['help_credits_1'], "<a href=\"http://www.maiamailguard.com/\">Maia Mailguard</a>", "<a href=\"mailto:rjl@renaissoft.com\">Robert LeBlanc</a> & <a href=\"mailto:mortonda@dgrmm.net\">David Morton</a>", "<a href=\"http://www.ijs.si/software/amavisd/\">AMaViS Mail Virus Scanner (amavisd-new)</a>", "<a href=\"http://www.spamassassin.org/\">SpamAssassin</a>", "<a href=\"http://us.mcafee.com/root/package.asp?pkgid=100\">McAfee VirusScan</a>", "<a href=\"http://clamav.elektrapro.com/\">Clam Antivirus</a>", "<a href=\"http://www.f-prot.com/\">F-Prot Antivirus</a>"); $smarty->assign("is_an_administrator", is_an_administrator($uid)); $smarty->assign("enable_banned_files_checking", $enable_banned_files_checking); $smarty->assign("enable_virus_scanning", $enable_virus_scanning); $smarty->assign("enable_bad_header_checking", $enable_bad_header_checking); $smarty->assign("enable_spam_filtering", $enable_spam_filtering); $smarty->assign("enable_false_negative_management", $enable_false_negative_management); $smarty->assign("auth_method", $auth_method); $smarty->assign("use_icons", $use_icons); $smarty->assign("enable_stats_tracking", $enable_stats_tracking); $smarty->assign("lang", $lang); $smarty->display("help.tpl");
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ require_once "core.php"; require_once "maia_db.php"; require_once "authcheck.php"; require_once "display.php"; $display_language = get_display_language($euid); require_once "./locale/{$display_language}/db.php"; require_once "./locale/{$display_language}/display.php"; require_once "./locale/{$display_language}/stats.php"; require_once "smarty.php"; if (isset($_GET["id"])) { $id = trim($_GET["id"]); if ($id != 0 && !is_an_administrator($uid)) { $id = $euid; } } else { $id = $euid; } $smarty->assign("user_id", $id); $select = "SELECT currency_label, enable_false_negative_management, " . "enable_virus_scanning, enable_spam_filtering, " . "enable_bad_header_checking, enable_banned_files_checking, enable_charts " . "FROM maia_config WHERE id = 0"; $sth = $dbh->prepare($select); $res = $sth->execute(); if (PEAR::isError($sth)) { die($sth->getMessage()); } if ($row = $res->fetchrow()) { $currency_label = $row["currency_label"]; $enable_false_negative_management = $row["enable_false_negative_management"] == 'Y';
$logo_alt_text = $row["logo_alt_text"]; $enable_false_negative_management = $row["enable_false_negative_management"] == 'Y'; $enable_stats_tracking = $row["enable_stats_tracking"] == 'Y'; $enable_user_autocreation = $row['enable_user_autocreation'] == 'Y'; } $showmenu = true; if (!$uid && !$euid) { $username = ""; $is_a_visitor = true; } else { $username = who_am_i($uid, $euid); $is_a_visitor = false; } $showmail = ok_to_impersonate($euid, $uid); if ($showmenu) { $admin = is_an_administrator($uid); $cols = 5; if ($enable_stats_tracking) { $cols++; } if ($enable_false_negative_management) { $cols++; } if ($admin) { $cols++; } // if (!$showmail) { // $cols -= 2; // } } else { $cols = 1;