Ejemplo n.º 1
0
Archivo: ascii.php Proyecto: philum/cms
function plug_ascii($p, $o = '', $res = '')
{
    $ret .= input1('txtarea', '', 60) . ' ';
    $ret .= lj('popw', 'ascii_plug___ascii_ascii*jb___txtarea', 'ok') . br();
    $ret .= divd('ascii', ascii_j($p, $o, $res));
    return $ret;
}
Ejemplo n.º 2
0
function plug_codeview($dr, $f, $fc = '')
{
    if ($dr == 'param') {
        $dr = $f = '';
    }
    require_once 'params/_connectx.php';
    if (!$f && $fc) {
        $f = sql_b('select page from _sys where name="' . $fc . '"', 'v');
    }
    if (strpos($f, '.') === false && $f) {
        $f .= '.php';
    }
    if ($fc == 'all') {
        $fc = '';
    }
    $ret .= lj('', 'codeview_plugin___codeview_' . $dr . '_' . $f . '_' . ajx($fc), picto('reload')) . ' ';
    if ($dr == 'save') {
        $_GET['sav'] = 1;
        $dr = $_SESSION['dr'];
        $dr == 'plug' ? savefunc_plug() : savefunc();
    } else {
        $_GET['sav'] = 0;
    }
    //if($dr=='all')$dr='';
    $dr = $dr ? $dr : 'progb';
    $_SESSION['dr'] = $dr;
    $_SESSION['file'] = $f;
    $_SESSION['func'] = $fc;
    if ($dr != 'params') {
        list($rep, $res) = functions_list($dr, $f);
    }
    if (auth(6)) {
        $ret .= btn('nbp', cv_btn('progb', $dr) . cv_btn('plug', $dr) . (auth(5) ? cv_btn('save', $dr) : '')) . ' ';
    }
    //cv_btn('all',$dr).
    $nbfunc = count($_SESSION['rec']);
    if (!$nbfunc) {
        $nbfunc = rse('COUNT(id)', '_sys');
    }
    $ret .= bal('small', $nbfunc . ' functions') . ' ';
    $jp = ajx(substrpos($f, '.'));
    //list
    if ($rep) {
        ksort($rep);
        array_unshift($rep, '...');
    } else {
        $rep[] = '...';
    }
    $ret .= slct_sj($rep, $f, 'codeview_plugin__15_codeview_' . ajx($dr) . '_');
    //page
    if ($f && auth(6)) {
        $ret .= lj('', 'popup_plupin___codev_' . $dr . '_' . $jp, picto('editxt')) . ' ';
        if ($dr == 'plug') {
            $ret .= lj('', 'popup_plupin___' . $jp, picto('window')) . ' ';
        }
    }
    //list
    $rec = array_values($_SESSION['rec']);
    array_unshift($rec, 'all');
    //if($rec)ksort($rec);
    if ($f) {
        $ret .= slct_sj($rec, $fc, 'codeview_plugin__15_codeview_' . ajx($dr) . '_' . ajx($f) . '_');
    }
    //func
    if ($fc && auth(6)) {
        $ret .= lj('', 'popup_plupin___codev_' . $dr . '_' . $jp . '_' . ajx($fc), picto('editxt')) . ' ';
        if ($dr == 'plug') {
            $ret .= lj('', 'popup_plup___' . $jp . '_' . ajx($fc), picto('window')) . ' ';
        }
    }
    //search
    $ret .= input1('funcsrch', $fc, 8) . ' ' . lj('popbt', 'popup_plup___codeview_findfunc___funcsrch', 'find') . ' ' . lj('popbt', 'popup_plup___coremap_coremap___funcsrch', 'map');
    if ($dr != 'save_all') {
        return divd('codeview', $rea . $ret . $res);
    }
}
Ejemplo n.º 3
0
Archivo: ajxf.php Proyecto: philum/cms
function mbd_video($v)
{
    $ret .= divc('small', helps('video'));
    if ($v) {
        $ret .= input1('url', $v, 34, '');
    } else {
        $ret .= autoclic('" id="url', 'ID / URL', '34', '100', '');
    }
    $ret .= lj('popbt', 'url_extractid_url_5_', 'ok') . ' ';
    if (auth(4)) {
        $ret .= hlpbt('popvideo');
    }
    return $ret;
}
Ejemplo n.º 4
0
Archivo: favs.php Proyecto: philum/cms
function fav_log()
{
    $iqb = ses('iq');
    //base64_encode
    $ret .= lj('txtx', 'popup_plupin__x_favs____favid', picto('logout'));
    $ret .= input1('favid', $iqb, '4') . hlpbt('flog');
    $j = 'plgfavs_plug___favs_fav*build_';
    $ret .= lj('txtx', 'popup_plup__x_favs___640', picto('refresh')) . ' ';
    if (rstr(52)) {
        $ret .= lj('txtx', $j . 'fav', pictxt('like', 'Favs')) . ' ';
    }
    if (rstr(90)) {
        $ret .= lj('txtx', $j . 'like', pictxt('love', 'Likes')) . ' ';
    }
    if (ses('mem')) {
        $ret .= lj('txtx', $j . 'visited', pictxt('articles', 'Visited')) . ' ';
    }
    if (rstr(42)) {
        $ret .= lj('txtx', $j . 'tags', pictxt('tag', 'Taged')) . ' ';
    }
    if (rstr(52)) {
        $ret .= lj('txtx', $j . 'com', pictxt('list', 'Coms')) . ' ';
    }
    if (rstr(91)) {
        $ret .= lj('txtx', $j . 'poll', pictxt('smile', 'Polls')) . ' ';
    }
    //if(rstr(90))$ret.=lj('txtx',$j.'like_no',pictxt('trash','Olds')).' ';
    $ret .= lj('txtx', 'pagup_plup___book__' . ses('iq') . '_640', pictxt('export', 'Book')) . ' ';
    return $ret;
}
Ejemplo n.º 5
0
Archivo: lib.php Proyecto: philum/cms
function select_j($id, $f, $v = '', $o = '', $t = '', $ty = '')
{
    $rid = randid();
    //hidslct_j
    $hid = 'bt' . $id;
    $j = $id . '_' . $f . '_' . ajx($v) . '_' . ajx($o) . '_' . $id;
    $c = $v && !$t ? 'popw' : 'popbt';
    $t = $t ? $t : ($v ? $v : '...');
    if ($ty == 1) {
        $h = input1($id, $v, 3);
    } elseif ($ty != 2) {
        $h = hidden($id, $id, $v);
    }
    //return togbub('hidden',$j,$t,$c).$h;
    return lj($c . '" id="' . $hid, 'popup_hidden__' . $hid . '_' . $j, $t) . $h;
}