Exemplo n.º 1
0
Arquivo: stext.php Projeto: 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);
}
Exemplo n.º 2
0
Arquivo: txt.php Projeto: philum/cms
function plug_txt($d, $tx)
{
    $nd = txt_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, 44, 4, ats('min-width:640px; min-height:400px; font-size:large; padding:16px;'));
    }
    return btd('plgtxt', $ret);
}