예제 #1
0
파일: print_api.php 프로젝트: gtn/mantisbt
/**
 * print a mailto: href link with subject
 *
 * @param string $p_email  Email Address.
 * @param string $p_text   Link text to display to user.
 * @param string $p_bug_id The bug identifier.
 * @return void
 */
function print_email_link_with_subject($p_email, $p_text, $p_bug_id)
{
    $t_bug = bug_get($p_bug_id, true);
    if (!access_has_project_level(config_get('show_user_email_threshold', null, null, $t_bug->project_id), $t_bug->project_id)) {
        echo $p_text;
        return;
    }
    $t_subject = email_build_subject($p_bug_id);
    echo get_email_link_with_subject($p_email, $p_text, $t_subject);
}
예제 #2
0
function print_email_link_with_subject($p_email, $p_text, $p_bug_id)
{
    $t_subject = email_build_subject($p_bug_id);
    echo get_email_link_with_subject($p_email, $p_text, $t_subject);
}
예제 #3
0
function print_email_link_with_subject($p_email, $p_text, $p_bug_id)
{
    global $g_mantis_bug_table;
    $t_subject = email_build_subject($p_bug_id);
    print get_email_link_with_subject($p_email, $p_text, $t_subject);
}