Example #1
0
File: ajax.php Project: philum/cms
    }
    if ($res) {
        list($s, $h) = split('-', $res);
    }
    $s = $s ? $s : 640;
    if ($id) {
        req(str_replace('-', ',', $id));
    }
    $ret = call_user_func_array($va, array($opt, $optb, $res));
}
$eye = array('art', 'popart', 'popartmod');
if ($eye[$n]) {
    eye();
}
if ($tt && $pp) {
    $t = $tt;
}
if ($t == 'pagup') {
    $ret = pagup($ret);
} elseif ($t) {
    $ret = popup($t, $ret, $s, $p);
}
//
if (Head::$add) {
    Head::add('meta', array('http-equiv', 'Content-Type', 'text/html; charset=' . $_SESSION['enc']));
    echo Head::generate();
} else {
    header('Content-Type:text/html; charset=' . $_SESSION['enc']);
}
echo utf($ret);
mysql_close();
Example #2
0
File: ajax.php Project: philum/cms
    }
    $s = $s ? $s : 640;
    if ($id) {
        req(str_replace('-', ',', $id));
    }
    $ret = call_user_func_array($va, array($opt, $optb, $res));
}
if ($n == 'plup' or $n == 'plupin') {
    $p = lkt('', '/plug/' . $id . '/' . $va, picto('url')) . ' ';
}
//if(strpos('art popart popartmod',$n))eye();//api apij
if ($n == 'popart') {
    eye();
}
if ($_GET['popup'] && $tt) {
    $t = $tt;
}
if ($_GET['pagup']) {
    $ret = pagup($t, $ret, $p);
} elseif ($t) {
    $ret = popup($t, $ret, $s, $p);
}
//
if (Head::$add) {
    Head::add('meta', array('http-equiv', 'Content-Type', 'text/html; charset=' . $_SESSION['enc']));
    echo Head::generate();
} else {
    header('Content-Type:text/html; charset=' . $_SESSION['enc']);
}
echo utf($ret);
mysql_close();