evaluate()->getTemplate(); } /** * Displays the login screen and ends execution of the script */ function admin_login() { BSTemplate::fetch('login')->evaluate()->flush(); exit; } /** * Callback function for the Pagination->BitProcessor() * * @param string Base link * @param bool Do not show this as a link * @param integer Page number * @param object Page navigator framework * * @return string Processed HTML */ function AdminPageNavigatorBitCallback($baselink, $nolink, $number, $paginator) { if ($nolink) { return '' . $number . '' . "\n"; } else { return '' . $number . '' . "\n"; } } /** * Callback function for the Pagination->NavigatorProcessor() * * @param string Base URL * @param integer Next page number * @param integer Previous page number * @param array Show information * @param string Individual page bits * @param object Page navigator framework * * @return string Processed HTML */ function AdminPageNavigatorCallback($baselink, $nextpage, $prevpage, $show, $pagebits, $paginator) { global $stylevar; $return = ''; if ($show['first']) { $return .= '' . T('First') . ' ...'; } if ($show['prev']) { $return .= '' . T('Prev') . ' ...'; } $return .= $pagebits; if ($show['next']) { $return .= '... ' . T('Next') . ''; } if ($show['last']) { $return .= '... ' . T('Last') . ''; } return '