function handler_gc($page) { $if = new ImageFilter(new PFC_And(new IFC_NoSize(), new IFC_Temp())); $images = $if->get()->select(FrankizImageSelect::gc()); $page->assign('images', $images); $page->addCssLink('images.css'); $page->assign('title', 'Images GC'); $page->changeTpl('images/gc.tpl'); }
function handler_images($page) { $temp = Group::from('temp'); $temp->select(GroupSelect::castes()); $everybody_temp = $temp->caste(Rights::everybody()); $if = new ImageFilter(new IFC_Caste($everybody_temp), new IFO_Created()); $images = $if->get(new PlLimit(50))->select(FrankizImageSelect::base()); $page->assign('title', 'Images du groupe temporaire'); $page->assign('images', $images); $page->addCssLink('admin.css'); $page->changeTpl('admin/images.tpl'); }