if (!$struct) { $struct = array(); } else { $acl_list = session_allowed_access_list(); if (!in_array('all', $acl_list)) { foreach ($struct as $k) { if ($k == 'sitellite_access') { $acl = array('sitellite_access' => new rList('sitellite_access', session_allowed_access_list())); break; } } } } $pg = new Pager($cgi->offset, $limit); $pg->url = site_current() . '?collection=' . urlencode($cgi->collection); $res = $rex->getDeleted($limit, $cgi->offset, $acl); if (!$res) { $res = array(); $rex->total = 0; } $pg->total = $rex->total; $res2 = array(); foreach ($res as $k => $v) { $res2[$v->{$rex->key}] = $v; } function pretty_date($date) { loader_import('saf.Date'); return Date::timestamp($date, 'M j, Y - g:ia'); } $pg->setData($res2);