示例#1
0
文件: ajax.php 项目: philum/cms
        $ret = openapp($id, $va, $opt);
        $t = $id;
        break;
    case "sesmake":
        if (forbidden_sessions($va)) {
            $_SESSION[$va] = $id;
        }
        break;
    case "session":
        $ret = $_SESSION[$id];
        break;
    case "togses":
        $ret = offon(yesnoses($id));
        break;
    case "tog":
        $ret = yesnoses($id);
        break;
    case "jump":
        $ret = $id;
        if ($va) {
            $t = $va;
        }
        break;
    case "lj":
        $ret = $lj($opt, $id, $va);
        $tt = $va;
        break;
}
if ($n == 'call' or $n == 'callp') {
    if ($n == 'callp') {
        $t = $va;
示例#2
0
文件: msql.php 项目: philum/cms
function sort_table($r, $n, $y = '')
{
    $y = $y ? yesnoses('sort') : '';
    $ret["_menus_"] = $r["_menus_"];
    unset($r["_menus_"]);
    if (is_numeric($n) or !$n) {
        foreach ($r as $k => $v) {
            $re[$k] = $v[$n];
        }
        $y ? arsort($re) : asort($re);
        foreach ($re as $k => $v) {
            $ret[$k] = $r[$k];
        }
    } else {
        $y ? krsort($r) : ksort($r);
        $ret += $r;
    }
    return $ret;
}