Ejemplo n.º 1
0
Archivo: mod.php Proyecto: philum/cms
function mod_load($load, $ret, $t, $d, $o, $obj, $prw, $tp, $id)
{
    if (!$prw) {
        $prw = 'prw';
    }
    if ($t) {
        $t = build_titl($load, $t, $obj);
    }
    $mx = prmb(6);
    if ($d == 'read') {
        foreach ($load as $id => $prw) {
            $ret .= divc('justy', read_msg($id, 3)) . br();
        }
    } elseif ($d == 'articles') {
        $ret = output_pages($load, $prw, $tp);
    } elseif ($d == 'viewer') {
        $ret = art_viewer($load);
    } elseif ($d == 'multi') {
        $_POST['flow'] = 1;
        foreach ($load as $id => $md) {
            $i++;
            if ($i < $mx) {
                $ret .= art_read_b($id, $_SESSION['nl'], $md, $tp);
            } else {
                $ret .= div(atd($id) . atc($md), '');
            }
        }
    } elseif ($d == 'api') {
        $ret = api_mod_call($load);
    } elseif ($d == 'icons') {
        $ret = desktop_build_ico($load, 'icones') . divc('clear', '');
    } elseif ($d == 'panel') {
        foreach ($load as $k => $v) {
            $ret .= pane_art($k, $o);
        }
    } elseif ($load) {
        $ret = m_pubart($load, $d, $o, $tp);
    }
    if ($o == 'scroll') {
        $ret = scroll_b($load, $ret, 10);
    } elseif ($o == 'scrold') {
        $ret = scroll($load, $ret, 10);
    } elseif ($o == 'cols') {
        $ret = columns($ret, 200, '', '');
    }
    if ($ret) {
        return $t . $ret;
    }
}
Ejemplo n.º 2
0
Archivo: mod.php Proyecto: philum/cms
function mod_load($load, $ret, $t, $d, $o, $obj, $prw, $tp, $id)
{
    if (!$prw) {
        $prw = 'prw';
    }
    if ($t) {
        $t = build_titl($load, $t, $obj);
    }
    $mx = prmb(6);
    if ($d == 'read') {
        foreach ($load as $id => $prw) {
            $ret .= divc('justy', read_msg($id, 3)) . br();
        }
    } elseif ($d == 'articles') {
        $ret = output_pages($load, $prw, $tp);
    } elseif ($d == 'viewer') {
        $ret = art_viewer($load);
    } elseif ($d == 'multi') {
        foreach ($load as $id => $md) {
            $i++;
            $_POST['flow'] = 1;
            if ($i < $mx) {
                $art = art_read_b($id, $_SESSION['nl'], $md, $tp);
                $rt[] = $art;
                $ret .= $art;
            } else {
                $ret .= div(atd($id) . atc($md), '');
            }
        }
    } elseif ($load) {
        return $t . m_pubart($load, $d, $o);
    }
    if ($o == 'scroll') {
        $ret = scroll_b($load, $ret, 10);
    } elseif ($o == 'scrold') {
        $ret = scroll($load, $ret, 10);
    } elseif ($o == 'cols') {
        $ret = colonize($rt, $o, '', '');
    } elseif ($o == 'icons') {
        $ret = desktop_build_ico($load, 'icones');
    }
    //
    //else $ret=m_pubart($load,$d,$o);//echo $ret;
    if ($ret) {
        return $t . $ret;
    }
}