Redirects to the user index page if not properly authenticated.
public validate ( $canRedirect = true ) | ||
$canRedirect | boolean Whether or not to redirect if the user cannot be validated; if not, the script simply terminates. |
function clearLog() { list($plugin) = CounterHandler::validate(false); $logEntryDao =& DAORegistry::getDAO('LogEntryDAO'); $logEntryDao->clearLog(); Request::redirect(null, 'counter'); }