@@ -27,6 +27,9 @@
⌂
</a>
{{#unless key}}
+ <a href="#page-users">
+ Users
+ </a>
<a href="#page-register">
Register
@@ -55,6 +55,18 @@
if($v == null){
$v = $_GET;
}
- return isset($v[$col]) && !empty($v[$col]);
+ if(isset($v[$col]) && !empty($v[$col])){
+ $v = $v[$col];
+ switch($col){
+ case 'email':
+ return filter_var($v,FILTER_VALIDATE_EMAIL) != false;
+ case 'username':
+ return strip_tags($v) == $v;
+ default:
+ return true;
+ }
+ }else{
+ return false;
?>