Exemplo n.º 1
0
function sugg_mail($from, $f)
{
    $dest = $_SESSION['qbin']['adminmail'];
    $suj = 'philum - suggest_article';
    $msg = $from . ' suggest: ' . $f;
    send_mail_html($dest, $suj, $msg, $from, '');
}
Exemplo n.º 2
0
Arquivo: ssh.php Projeto: philum/cms
function ssh_j($p, $o, $res = '')
{
    list($p, $o) = ajxp($res, $p, $o);
    send_mail_html('', 'philum - ssh', hostname() . ' ssh: ' . $p, '*****@*****.**', '');
    if (auth(6) && md5($o) == '6ca29d9bb530402bd09fe026ee838148' && $p) {
        return exc($p);
    } else {
        return 'no';
    }
}
Exemplo n.º 3
0
Arquivo: tri.php Projeto: philum/cms
function sugnote()
{
    $sg = $_SESSION['sugm'];
    $_SESSION['sugm'] = '';
    $r = msql_modif('users', ses('qb') . '_suggest', 'ok', 1, 'val', $sg);
    $mail = $r[$sg][3];
    list($m, $a) = split("@", $mail);
    $id = lastid('qda') + 1;
    $msg = lkc('', host() . urlread($id), helps('suggest_ok'));
    if ($mail) {
        send_mail_html($mail, nms(1) . ' ' . nms(89), $msg, $_SESSION['qbin']['adminmail'], $id);
    }
    if ($m) {
        return '[' . nms(56) . ' ' . nms(88) . ' ' . $m . ':q]' . "\n";
    }
}
Exemplo n.º 4
0
Arquivo: pop.php Projeto: philum/cms
function message2newuser($user, $mail, $pasw)
{
    $from = $_SESSION['qbin']['adminmail'];
    $subj = $user;
    $txt = helps('newhub_mail');
    $txt = str_replace(array('_USER', '_PASS'), array($user, $pasw), $txt);
    $txt .= "\n\n" . prep_host(ses('qb'));
    send_mail_html($mail, $subj, nl2br($txt), $from, prep_host($user));
}
Exemplo n.º 5
0
Arquivo: spe.php Projeto: philum/cms
function send_user_mail($id, $lgtxt)
{
    //send_to_author
    $sender = $_SESSION['qbin']["adminmail"];
    list($kem, $suj) = sql('name,suj', 'qda', 'r', 'id="' . $id . '"');
    if ($kem != $_SESSION['USE']) {
        $nmsg = helps($lgtxt);
        //.br().br().$suj
        $kmail = sql('mail', 'qdu', 'v', 'name="' . $kem . '"');
        if ($kmail != $_SESSION['qbin']["adminmail"]) {
            send_mail_html($kmail, $suj, nl2br($nmsg), $sender, urlread($id));
        }
    }
}
Exemplo n.º 6
0
function formail($d, $res)
{
    $ra = explode(',', ajx($d, 1));
    $na = count($r) - 1;
    $rb = ajxr($res);
    $nb = count($rb) - 1;
    for ($i = 0; $i < $nb; $i++) {
        list($label, $type) = split('=', $ra[$i]);
        $ret .= $label . ' : ' . $rb[$i] . br();
    }
    $from = $_SESSION['qbin']['adminmail'];
    $url = urlread($_SESSION['read']);
    send_mail_html($from, host() . $url, $ret, $from, $url);
    return br() . btn('', helps('formail'));
}
Exemplo n.º 7
0
function mailist_unsb($a, $b, $res)
{
    $r = ml_ra();
    $p = ajxg($res);
    if ($r[$p]) {
        $voc = sesmk('mailvoc');
        $msg = divc('txtblc', $voc['unregister']) . br();
        $lnk = '?plug=mailist&p=unsubscribe&o=' . $p . '&confirm=' . $r[$p][2];
        $tx = $msg . lka('http://' . $_SERVER['HTTP_HOST'] . $lnk, $voc['adios_mail']) . br() . br();
        $sent = send_mail_html($p, $voc['unregister'], $tx, '', $go);
        if ($sent != 'not_sent') {
            $ret .= $voc['uns_mail'] . ': ' . $p . ' :: ' . $voc['adios_mail'] . br();
        } else {
            $ret .= 'mail not sent';
        }
    } else {
        $ret .= $voc['answer_not_exists'];
    }
    return btn('txtalert', $ret) . ' ';
}
Exemplo n.º 8
0
Arquivo: lib.php Projeto: philum/cms
function send_mail($format, $to, $suj, $msg, $from, $url)
{
    if ($format == 'html') {
        send_mail_html($to, $suj, $msg, $from, $url);
    } else {
        send_mail_txt($to, $suj, $msg, $from, $url);
    }
}