示例#1
0
文件: mod.php 项目: philum/cms
function apps_arts($cnd, $p, $o)
{
    if ($p) {
        $r = api_mod_arts_row($p);
    } else {
        $r = $_SESSION['rqt'];
    }
    if ($r) {
        foreach ($r as $k => $v) {
            list($day, $frm) = pecho_arts($k);
            $rb[] = array($k, 'art', 'auto', $k, $cnd, '', $frm, 'articles');
        }
    }
    return $rb;
}
示例#2
0
文件: book.php 项目: philum/cms
function book_builder($d)
{
    list($p, $o) = split('§', $d);
    $r = array();
    $ra = explode(',', $p);
    //curwidth_set($_SESSION['prma']['content']-60);
    list($t, $or, $tp, $oi) = explode('/', $o);
    if (!$tp) {
        $tp = 'book';
    }
    $rb['title'] = stripslashes($t);
    if ($_SESSION['read'] != $id) {
        return book_cover($t);
    }
    if ($ra) {
        foreach ($ra as $k => $v) {
            //build_list
            $rc = api_mod_arts_row($v);
            if (strpos($v, '=') && $rc) {
                $r += $rc;
            }
            $rc = array_flip(explode(' ', $v));
            if (strpos($v, ' ') && $rc) {
                $r += $rc;
            }
        }
    }
    if ($r) {
        if ($or == 1) {
            ksort($r);
        }
        if ($or == 2) {
            krsort($r);
        }
    }
    if ($r[$id]) {
        unset($r[$id]);
    }
    return array($r, $rb);
}
示例#3
0
文件: pop.php 项目: philum/cms
function arts_mod($v, $id)
{
    list($p, $t, $d, $o, $ch, $hd, $tp) = explode('/', $v);
    $load = api_mod_arts_row($p);
    unset($load[$id]);
    $ret = mod_load($load, '', $t, $d, $o, 1, $prw, $tp, $id);
    return $ret;
}