Exemplo n.º 1
0
Arquivo: stext.php Projeto: philum/cms
function stx_btn($d, $nd, $tx)
{
    //version,node,
    $r = msq_choose('', $nd, 'txt');
    $nxt = msq_find_next($r);
    $tt = 'txtbox" title="';
    if ($d) {
        $ret .= btd('bck', '') . ' ';
        $tar = 'tit|txtarea';
        $ret .= btd('bts', lj('popbt', 'bck_plug__xd_stext_stext*j_' . $d . '__' . $tar, nms(27))) . ' ';
        $ret .= ljb('txtx', 'notepad_open', $nd . '_txt_' . $d . '_' . $tx, $d) . ' ';
        //reload
        $ret .= lj($tt . nms(43), 'bck_plug__xd_stext_stext*del_' . $d . '_' . $tx, picto('del'));
        $ret .= lj($tt . nms(42), 'plgtxt_plug___stext_plug*stext__' . $tx, picto('close'));
    }
    if ($nd) {
        $ret .= lj($tt . nms(44), 'plgtxt_plug___stext_plug*stext_' . $nxt . '_' . $tx, picto('add'));
        $ret .= lj($tt . nms(25), 'popup_plup___stext_stx*files_' . $nd . '_' . $tx, picto('get'));
    }
    if ($d) {
        $ret .= msqlink('', $nd . '_txt_' . $d);
    }
    return $ret;
}
Exemplo n.º 2
0
function select_mods_m()
{
    $r = msq_choose('users', ses('qb'), 'mods');
    sort($r);
    $nw = msq_find_next($r);
    $ret = slct_menus($r, '/?admin=console&slct_mods=', prmb(1), 'active', '', 'v') . ' ';
    $ret .= lkc("popbt", '/?admin=console&newfrom_mods=' . $nw, nms(99) . ':' . $nw) . ' ';
    //new
    $prmb = sql('config', 'qdu', 'v', 'name="' . ses('qb') . '"');
    $prmb1 = strprm($prmb, 1, '#');
    if ($prmb1 != prmb(1)) {
        $ret .= lkc("txtyl", '/?admin=console&adopt_mods==', nms(66)) . ' ';
    }
    //apply
    return btn('nbp', btn('txtsmall', 'mods') . ' ' . $ret) . hlpbt('console_mods') . ' ';
}
Exemplo n.º 3
0
Arquivo: bubs.php Projeto: philum/cms
function bub_msql($cat, $a, $b, $c)
{
    $r = msq_choose($a, $b, $c);
    $j = 'msql___' . $a . '_' . $b . '_';
    if ($c) {
        sort($r);
    }
    if ($r) {
        foreach ($r as $k => $v) {
            if (is_array($v)) {
                sort($v);
                $kp = in_array_b('php', $v);
                if ($kp !== false) {
                    unset($v[$kp]);
                    $ret[] = array('This', 'ajax', 'popup', $j . $k, '', '', $cat . '/' . $k, 'msql');
                }
                if (count($v) < 1) {
                    $ret[] = array($k, 'ajax', 'popup', $j . $k, '', '', $cat, 'msql');
                } else {
                    foreach ($v as $ka => $va) {
                        if ($a != 'design') {
                            $k = $b . '/' . $k;
                        }
                        $ret[] = array($va, 'ajax', 'popup', $j . $k . '*' . $va, '', '', $cat . '/' . $k, 'msql');
                    }
                }
            } else {
                if ($v == 'php') {
                    $ret[] = array('This', 'ajax', 'popup', $j . $c, '', '', $cat, 'msql');
                } else {
                    $ret[] = array($v, 'ajax', 'popup', $j . $c . '*' . $v, '', '', $cat, 'msql');
                }
            }
        }
    }
    return $ret;
}
Exemplo n.º 4
0
function distrib_virtual_dir()
{
    $rc = array();
    $dr = 'users';
    $nd = 'shared';
    $ra = msq_choose($dr, '', $nd);
    $n = count($ra);
    for ($i = 0; $i < $n; $i++) {
        $r = msql_read($dr, $ra[$i], '', 1);
        if ($r) {
            $rc = array_merge($rc, $r);
        }
    }
    return $rc;
}
Exemplo n.º 5
0
Arquivo: lib.php Projeto: philum/cms
function msq_find_last($dr, $pr, $nod)
{
    //next table
    $r = msq_choose($dr, $pr, $nod);
    return msq_find_next($r);
}
Exemplo n.º 6
0
}
if ($_GET['tickets']) {
    $msg = receive_xmsg($_GET['msg']);
    $dfb['_menus_'] = array('host', 'hub', 'msg', 'day', 'ip', 'ib');
    $arr = array($_GET['host'], $_GET['hub'], $msg, date('ymd', time()), hostname(), $_GET['answ']);
    save_xmsg('clients', $_GET['tickets'] . '_tickets', $arr, $dfb);
}
if ($_GET['chat']) {
    $msg = receive_xmsg($_GET['msg']);
    $dfb['_menus_'] = array('time', 'name', 'msg', 'host');
    $arr = array(time(), $_GET['name'], $msg, $_GET['host']);
    //html_entity_decode
    save_xmsg('clients', 'chat_' . $_GET['chat'], $arr, $dfb);
}
if ($_GET['canalchat']) {
    echo implode(';', array_keys(msq_choose('clients', 'chat', '')));
}
if ($m = $_GET['kmail']) {
    require 'sys.php';
    echo sql('mail', 'qdu', 'v', 'name="' . $m . '"');
}
if ($_GET['connect']) {
    $mnu['_menus_'] = array('url');
    msql_modif('server', 'philum_share', array($_GET['share']), $mnu, 'mdf', 0);
}
if ($f = $_GET['fdate']) {
    if (is_file($f)) {
        echo filemtime($f);
    }
}
if ($f = $_GET['fsize']) {