Exemplo n.º 1
0
Arquivo: mod.php Projeto: philum/cms
function trkarts($p, $t = '')
{
    $p = $_GET['dig'] ? $_GET['dig'] : $p;
    $p = is_numeric($p) ? $p : $_SESSION['nbj'];
    if (!$p) {
        $p = 30;
    }
    $np = time_prev($p);
    $ret = dig_it_j($p, 'modtrk_ajxlnk___VAR' . $mx . '/' . ajx($t) . '/' . $d . '/' . $o . ':' . ajx('tracks'));
    $qda = ses('qda');
    $qdi = ses('qdi');
    $r = sql_inner($qdi . '.frm', 'qda', 'qdi', 'frm', 'k', 'where ' . $qda . '.nod="' . ses('qb') . '" AND ' . $qda . '.re>0 AND ' . $qdi . '.day>' . calc_date($p) . ' AND ' . $qdi . '.day<' . calc_date($np) . ' AND substring(' . $qda . '.frm,1,1)!="_" ORDER BY ' . $qdi . '.day DESC');
    if ($r) {
        $ret .= build_titl($r, $t ? $t : 'Tracks', 21);
        $ret .= output_pages_spe($r, 1, 'track');
    }
    return divd('modtrk', $ret);
}
Exemplo n.º 2
0
Arquivo: mod.php Projeto: philum/cms
function most_read_mod($p, $t, $d, $o, $m, $tp)
{
    list($dyb, $mx) = explode('-', $p);
    $r = most_read($dyb, $mx);
    unset($r[80301]);
    $ta = dig_it_j($dyb, 'mostread_ajxlnk___VAR-' . $mx . '/' . ajx($t) . '/' . $d . '/' . $o . ':' . ajx($m));
    $t = lkc('', '/module/most_read/' . $p . '/' . $t . '/' . $d, $t != 1 ? $t : 'most_read');
    if ($r) {
        return divd('mostread', $ta . mod_load($r, '', $t, $d, $o, 1, $o, $tp, ''));
    }
}