Example #1
0
File: ajax.php Project: philum/cms
     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);
     if ($va) {
         $t = 'Rss';
     }
     $s = 450;
     break;
     //msql
 //msql
Example #2
0
File: mod.php Project: philum/cms
function videoboard($p, $c, $o)
{
    static $iv;
    $iv++;
    $ra = array();
    require_once 'ajxf.php';
    list($pa, $pb) = split_right('-', $p, 0);
    if ($pa == 'priority') {
        $pa = 11;
    }
    if ($pa == 'cat') {
        $pa = 1;
    }
    if ($pa == 'tag') {
        $pa = 5;
    }
    if (!is_numeric($pa)) {
        $pb = $p;
        $pa = 5;
    }
    if ($pb == 1) {
        $pb = $_SESSION['frm'];
    }
    if (strpos($pb, '|') !== false) {
        $rc = explode('|', $pb);
        $nc = count($rc);
    }
    if ($nc > 0) {
        foreach ($rc as $k => $v) {
            $rab = tri_rqt((string) $v, $pa);
            if ($rab) {
                $ra = $rab;
            }
        }
    } elseif ($pb) {
        $ra = tri_rqt($pb, $pa);
    } else {
        $ra = $_SESSION['rqt'];
    }
    if ($ra) {
        $ra = array_keys($ra);
        $min = min($ra);
        $r = search_conn($ra, $min, ':video');
        $_SESSION['iv' . $iv] = $r;
        if ($r) {
            return divd('iv' . $iv, video_viewer($iv, $_SESSION['cur_div'], 0));
        }
    }
}