$cur_gloss['votes'] = serialize($votes);
            $db->query('UPDATE ' . $db->prefix . 'glossary_items SET votes=\'' . $db->escape($cur_gloss['votes']) . '\' WHERE id=' . $id) or error('Could note update votes', __FILE__, __LINE__, $db->error());
            redirect('glossitem.php?id=' . $id, 'Vote updated.');
            break;
        default:
            message($lang_common['Bad request']);
    }
}
$page_title = $lang_evgs['Edit glossary'];
include PUN_ROOT . 'header.php';
switch ($action) {
    case 'edit':
        if ($pun_user['is_guest']) {
            message($lang_common['Bad request']);
        }
        show_newgloss_box($cur_gloss, true);
        break;
    case 'vote':
        $dsts = parse_evgs_destination($cur_gloss['dst']);
        ?>
<div class="blockform">
	<h2><?php 
        echo printf($lang_evgs['Glossary: %s'], $cur_gloss['src']);
        ?>
</h2>
	<div class="box">
		<form id="search" method="post" action="glossitem.php?id=<?php 
        echo $id;
        ?>
">
			<input type="hidden" name="action" value="vote" />
</p>
<?php 
        if (!$no_back_link) {
            ?>
		<p><a href="javascript: history.go(-1)"><?php 
            echo $lang_common['Go back'];
            ?>
</a></p>
<?php 
        }
        ?>
		</div>
	</div>
</div>
<?php 
        show_newgloss_box();
        $footer_style = 'glossary';
        require PUN_ROOT . 'footer.php';
    }
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $lang_search['Search'];
$focus_element = array('search', 'keywords');
require PUN_ROOT . 'header.php';
?>
<div id="searchform" class="blockform">
	<h2><span><?php 
echo $lang_search['Search'];
?>
</span></h2>
	<div class="box">
		<form id="search" method="get" action="glossary.php">