<div class="alert alert-danger"> <?php echo "<p>User <em>" . htmlspecialchars($username) . "</em> is invalid!.</p>"; } else { ?> <div class="alert alert-info"> <?php if (!$htpasswd->user_exists($username)) { $htpasswd->user_add($username, $passwd); echo "<p>User <em>" . htmlspecialchars($username) . "</em> created.</p>"; } else { $htpasswd->user_update($username, $passwd); echo "<p>User <em>" . htmlspecialchars($username) . "</em> changed.</p>"; } if ($use_metadata) { if (!$htpasswd->meta_exists($username)) { $htpasswd->meta_add($meta_model); } else { $htpasswd->meta_update($meta_model); } } } ?> </div> <?php } ?> <div class="result alert alert-info" style="display: none;"></div> </div> </div>