diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 10:41:30 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 10:41:30 +1000 |
| commit | 7f6f836bf85350fe92d3975d2fb3973343923aeb (patch) | |
| tree | 0f4923aef20ca4aa73eb86d460ec03126135cfac /inc/mod/ban.php | |
| parent | 2843ddc4826f250a8af6203cff437929ab807a41 (diff) | |
IP notes
Diffstat (limited to 'inc/mod/ban.php')
| -rw-r--r-- | inc/mod/ban.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/mod/ban.php b/inc/mod/ban.php index 33b64975..8d86cbcd 100644 --- a/inc/mod/ban.php +++ b/inc/mod/ban.php @@ -55,6 +55,8 @@ function parse_time($str) { function ban($mask, $reason, $length, $board) { global $mod; + // TODO: permissions + $query = prepare("INSERT INTO `bans` VALUES (NULL, :ip, :mod, :time, :expires, :reason, :board)"); $query->bindValue(':ip', $mask); $query->bindValue(':mod', $mod['id']); @@ -79,6 +81,8 @@ function ban($mask, $reason, $length, $board) { } function unban($id) { + // TODO: permissions + $query = prepare("DELETE FROM `bans` WHERE `id` = :id"); $query->bindValue(':id', $id); $query->execute() or error(db_error($query)); |
