} elseif ($action == 'slog') {
     include 'admin/slog.php';
 } elseif ($action == 'misc') {
     include 'admin/misc.php';
 } elseif ($action == 'explorer') {
     include 'admin/explorer.php';
 } elseif ($action == 'language') {
     include 'admin/language.php';
 } elseif ($action == 'designs') {
     include 'admin/designs.php';
 } elseif ($action == 'profilefield') {
     include 'admin/profilefield.php';
 } elseif ($action == 'posts') {
     include 'admin/posts.php';
 } elseif ($action == 'logout') {
     $slog->sid_logout();
     echo head();
     ok('admin.php', 'You have successfully logged off!');
 } elseif ($action == 'locate') {
     $url = $gpc->get('url', none);
     if (!empty($url)) {
         $db->close();
         viscacha_header('Location: ' . $url);
         exit;
     } else {
         echo head();
         if (!empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'action=locate') === false) {
             $url = htmlspecialchars($_SERVER['HTTP_REFERER']);
         } else {
             $url = 'javascript:history.back(-1);';
         }