示例#1
0
文件: channel.php 项目: philum/cms
function channel($p, $t, $d = '')
{
    $ra = explode(' ', $p);
    foreach ($ra as $ka => $va) {
        list($kab, $vab) = split(':', $va);
        $sc[$vab] = $kab;
    }
    if ($sc['site']) {
        require_once 'plug/microxml.php';
        $site = 'http://' . $sc['site'];
        $t = lka($site, $sc['site'] . '/' . $sc['hub']);
        $load = clkt($sc['site'] . '/msql/users/' . $sc['hub'] . '_cache');
    } else {
        $load = msql_read('users', $sc['hub'] . '_cache', '', 1);
    }
    if ($load) {
        if ($sc['cat']) {
            $load = channel_tri($load, $sc['cat'], 1);
        }
        if ($sc['parent']) {
            $load = channel_tri($load, $sc['art'], 10);
        }
        if ($sc['art']) {
            $load = channel_tri($load, $sc['art'], '');
        }
        if ($sc['tag']) {
            $load = channel_tri($load, $sc['tag'], 5);
        }
        if ($sc['last']) {
            $load = splice($load, $sc['last']);
        }
        $t = build_titl($load, !$t ? $sc['hub'] : $t, 1, $sc['hub']);
        if ($d == 'articles') {
            if ($site) {
                $ret .= output_pages_from_cache($site, $load);
            } else {
                $ret .= output_pages($load, 2, '');
            }
        } elseif ($load) {
            foreach ($load as $k => $v) {
                $re[] = llk('', $site . '/' . $k, html_entity_decode($v[2]));
            }
            $ret = implode('', $re);
            $ret = balc('ul', 'panel pubart', $ret);
        }
    }
    return $t . $ret;
}
示例#2
0
文件: tickets.php 项目: philum/cms
function msqlxread()
{
    $page = $_GET['page'] ? $_GET['page'] : 1;
    $npg = 10;
    require 'plug/microxml.php';
    $min = ($page - 1) * $npg;
    $max = $page * $npg;
    $i = 0;
    $site = 'http://philum.net';
    //$site=philum();//father_server
    $r = clkt($site . '/msql/clients/philum_tickets');
    unset($r['_menus_']);
    if ($r) {
        foreach ($r as $k => $v) {
            //array('host','hub','msg','day','ip')
            if ($v[0] == $_SERVER['HTTP_HOST'] && $v[1] == ses('qb')) {
                $del = lj('txtyl', 'tickets_plug___tickets_tickets*j_' . $k . '_x', 'x');
            } else {
                $del = '';
            }
            $answ = ljb('popbt', 'jumpMenu_text', 'tckansw_' . ($v[5] ? $v[5] : $k), nms(91));
            $rb[$k] .= btn('txtsmall2', $v[3]) . ' ';
            $rb[$k] .= lkc('txtsmall', 'http://' . $v[0] . '/' . $v[1], $v[1]) . ' ';
            if (!$v[5]) {
                $rb[$k] .= $answ . ' ';
            }
            $rb[$k] .= $del . br();
            $msg = $v[2];
            if (!function_exists('correct_txt')) {
                req('tri,pop,spe');
            }
            //$msg=correct_txt($msg,'','sconn');
            if ($i >= $min && $i < $max) {
                $msg = miniconn($msg);
            }
            $i++;
            $rb[$k] .= divc('" style="width:400px;', nl2br(stripslashes($msg))) . br();
            if ($v[5]) {
                $rb[$v[5]] .= div(ats('margin-left:40px;'), $rb[$k]);
                unset($rb[$k]);
            }
        }
    }
    if ($rb) {
        rsort($rb);
    }
    return by_pages($rb, $page);
}
示例#3
0
文件: microxml.php 项目: philum/cms
        array_shift($v);
        if ($key == '_menus_') {
            $keys = $v;
        }
        foreach ($v as $ka => $va) {
            if ($va) {
                $n[$k]++;
            }
        }
        if ($key) {
            $re[$key] = $v;
        }
    }
    if ($n) {
        $max = max($n);
        foreach ($re as $k => $v) {
            for ($i = 0; $i < $max; $i++) {
                $ret[$k][$i] = $v[$i];
            }
        }
        //$keys[$i]
        return $ret;
    }
}
//if($_GET['table']=='server/shared_files'){require_once('../progb/finder.php'); distrib_share();}
if ($_GET['table']) {
    echo server();
}
if ($_GET['call']) {
    echo clkt($_GET['call']);
}
示例#4
0
文件: finder.php 项目: philum/cms
function finder_distant($p)
{
    require_once 'plug/microxml.php';
    //server
    $h = str_extract('/', $p, 0, 0);
    if (strpos($h, '.') !== false) {
        return clkt('http://' . $h . '/msql/server/shared_files');
    }
    unset($r['_menus_']);
}
示例#5
0
文件: chatxml.php 项目: philum/cms
function chatxdata($p)
{
    $lst = chtses($p, 'a');
    //echo philum().'plug/microxml.php?table=/msql/clients/chat_'.$p.'&last='.$lst;
    require 'plug/microxml.php';
    $r = clkt(philum() . '/msql/clients/chat_' . $p, $lst);
    if ($r) {
        unset($r['_menus_']);
        $r1 = $r[1];
        unset($r[1]);
        $r = array_reverse_b($r, 20);
        if ($r) {
            chtses($p, key($r));
        }
    }
    return array($r, $r1);
}
示例#6
0
文件: msql.php 项目: philum/cms
function import_defs($defsb, $d)
{
    if (strpos($d, 'msql/') !== false) {
        require 'plug/microxml.php';
        return clkt($d);
    } else {
        list($a, $b) = split_one('/', $d, 1);
        if (substr($a, 5) != 'msql/') {
            $a = sesm('root') . $a;
        }
        return read_vars($a . '/', $b, $defsb);
    }
}