<?php
$system->db->do('DELETE FROM logins WHERE id = ?',undef,$login->id);
$system->set_cookie('admin','1');
($system->service->config('logout_redirect')) ? $system->redirect_url($system->service->config('logout_redirect')) : $system->redirect('/');
?>