Example #1
0
File: mod.php Project: philum/cms
function pane_art($id, $o)
{
    $o = 'auteurs';
    //
    $p['url'] = urlread($id);
    $p['suj'] = suj_of_id($id);
    //spe
    $ims = sql('img', 'qda', 'v', 'id=' . $id);
    $im = best_img_s($ims, $id);
    $p['img1'] = make_thumb_css($im);
    //$p+=tag_maker($id,1);
    $p[$o] = sql_inner('tag', 'qdt', 'qdta', 'idtag', 'v', 'where cat="' . $o . '" and idart="' . $id . '"');
    return template($p, 'panart');
}
Example #2
0
File: art.php Project: philum/cms
function prepare_thumb($d, $id)
{
    if ($_SESSION['rstr'][30] == '1') {
        return;
    }
    if ($_SESSION['nl']) {
        $pr = 'nl';
    }
    if (rstr(93)) {
        $mg = best_img_s($d, $id);
        if ($mg) {
            $im = make_thumb_css($mg);
        }
        if ($im) {
            return div(ats('background:url(/imgc/' . $im . ') center;') . atc('thumb'), '');
        }
    }
    return minimg($d, $pr);
}