Example #1
0
File: ajax.php Project: philum/cms
     req('pop');
     $t = 'swf';
     $ret = embed_flsh($id, $va, $opt, '');
     break;
 case "galj":
     req('pop');
     $ret = gallery_j_slct($va, $id, $opt);
     break;
 case "channel":
     req('pop,spe,art,tri,mod');
     $ret = channel($id, $va, $opt, $optb);
     break;
 case "shop":
     req('pop,spe,art,mod');
     $_SESSION['cart'][$id] += 1;
     $ret = m_pubart($_SESSION['cart'], '', '');
     break;
 case "mktable":
     $ret = $id ? mktc($id, $va, $opt, $res) : mktb($id, $va, $res);
     break;
 case "vview":
     req('pop,spe');
     $ret = video_viewer($id, $va, $opt);
     break;
 case "rssj":
     req('pop,tri,spe');
     $ret = rssin($id, $va);
     break;
 case "rssjb":
     req('pop,tri');
     $ret = rssj($id, $opt);
Example #2
0
File: spe.php Project: philum/cms
function rech_internal($rech)
{
    $load = search_engine($rech);
    $t = btn('', lka(htac('search') . $rech, $rech));
    if ($load) {
        return $t . m_pubart($load, "cols", 3);
    }
}
Example #3
0
File: pop.php Project: philum/cms
function pubart($d)
{
    list($v, $p) = split_one("ยง", $d, 1);
    switch ($p) {
        case 1:
            return art_read_b($v, '', 1, '');
            break;
        case 2:
            return art_read_b($v, '', 2, '');
            break;
        case 3:
            return art_read_b($v, '', 3, '');
            break;
        case 4:
            if (strpos($v, ',')) {
                return m_pubart(array_flip(explode(',', $v)), '', '');
            } else {
                pub_art($v);
            }
            break;
        default:
            return jread('', $v, suj_of_id($v));
            break;
    }
}
Example #4
0
File: mod.php Project: philum/cms
function home_plan($load, $n)
{
    if ($load) {
        ksort($load);
        foreach ($load as $mrf => $ids) {
            $i++;
            $line = $_SESSION['line'][$mrf];
            $mn = $_SESSION['mn'][$mrf];
            if ($n == 2) {
                $re = outputimg($ids);
            } else {
                $re = m_pubart($ids, "scroll", "10000");
            }
            if ($mrf != "user" && $mrf != "_system" && $re && ($line or $mn)) {
                if ($n == 2) {
                    $nib = 25;
                } else {
                    $nib = 7;
                }
                if ($line) {
                    $got = htac('cat') . $mrf;
                } else {
                    $got = subdom($mrf);
                }
                $nbrt = btn("txtsmall2", nbof(count($ids), 1));
                $ret[$i] = lkc('txtcadr', $got, $mrf) . ' ' . $nbrt . br();
                $ret[$i] .= divc("tab", scroll($ids, $re, $nib)) . br();
            }
        }
        if ($ret) {
            if (count($ret) < 2 or $n == 2) {
                $prm = 1;
            } else {
                $prm = 2;
            }
            return columns($ret, $prm, 'board', 'pubart');
        }
    }
}