if ($_SERVER['REQUEST_METHOD'] == 'POST' ) {
+ if (!$params['user'] || in_array($params['user'], $username_exceptions)) {
+ throw new Exception("invalid username");
+ }
+ // if (!$params['pass']) {
+ // throw new Exception("invalid password");
+ // }
+
$dbh = get_db_connection();
$dbh->beginTransaction();
<ul class="tags" id="tags">
<?php for($i = 0; $row = $q->fetch(); $i++ ): ?>
- <li><span class="tag"><a href="<?php echo $row['tag'] ?>"><?php echo $row['tag'] ?></a> <?php echo $row['count'] ?></span></li>
+ <li><span class="tag"><a href="/tag/<?php echo $row['tag'] ?>"><?php echo $row['tag'] ?></a> <?php echo $row['count'] ?></span></li>
<?php endfor; ?>
</ul>