diff --git a/mod.php b/mod.php index ab643d16..cda1a4aa 100644 --- a/mod.php +++ b/mod.php @@ -78,7 +78,8 @@ // Dashboard $fieldset = Array( 'Boards' => '', - 'Administration' => '' + 'Administration' => '', + 'Logout' => '' ); // Boards @@ -103,6 +104,8 @@ $fieldset['Administration'] .= '
  • Show configuration
  • '; } + $fieldset['Logout'] .= '
  • Logout
  • '; + // TODO: Statistics, etc, in the dashboard. $body = ''; @@ -118,6 +121,10 @@ //,'mod'=>true /* All 'mod' does, at this point, is put the "Return to dashboard" link in. */ ) ); + } elseif(preg_match('/^\/logout$/', $query)) { + destroyCookies(); + + header('Location: ?/', true, $config['redirect_http']); } elseif(preg_match('/^\/log$/', $query)) { if($mod['type'] < $config['mod']['modlog']) error($config['error']['noaccess']); @@ -698,7 +705,7 @@ '">'. $ban['ip'] . '' . // Reason - '' . ($ban['reason'] ? $ban['reason'] : 'none given') . '' . + '' . ($ban['reason'] ? $ban['reason'] : '-') . '' . // Set '' . date($config['post_date'], $ban['set']) . '' .