Esempio n. 1
0
File: ftext.php Progetto: philum/cms
function plug_ftext($d, $tx)
{
    $nd = stext_log();
    $ra = msql_read('', $nd . '_txt_ftxt', '1');
    $msg = stripslashes($ra[1]);
    $msg = html_entity_decode_b($msg);
    if (!$ra && $nd) {
        msql_modif('users', $nd . '_txt_ftxt', array('day', 'text'), '', 'one', 1);
    }
    $ret .= btd('bts', lj('', 'bck_plug__xd_ftext_ftext*j_ftxt__ftxt', picto(save))) . ' ';
    $ret .= btd('bck', '') . hlpbt('ftext') . br();
    if (!$tx) {
        $ret .= txarea('ftxt', $msg, 54, 12);
    }
    return btd('plgtxt', $ret);
}
Esempio n. 2
0
File: stext.php Progetto: philum/cms
function plug_stext($d, $tx)
{
    $nd = stext_log();
    if ($d) {
        $ra = msql_read('', $nd . '_txt_' . $d, '');
    }
    $msg = stripslashes($ra[1][1]);
    $msg = html_entity_decode_b($msg);
    if ($d && !$ra && $nd) {
        msql_modif('users', $nd . '_txt_' . $d, array('title', ''), '', 'one', 1);
    }
    $ret .= st_paste($d) . ' ';
    if ($d) {
        $ret .= input('text', 'tit', stripslashes($ra[1][0])) . ' ';
    }
    $ret .= stx_btn($d, $nd, $tx) . br();
    if (!$tx) {
        $ret .= txarea('txtarea', $msg, 64, 20);
    }
    return btd('plgtxt', $ret);
}