Username:
Password:
Remember me:
Register

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)


Search forums via Google


0 Users appreciate this thread.

Ban Script Code - Simple
Started by angelrulez7
(2013-05-12 02:15:25)
angelrulez7 (2013-05-12 02:15:25)
I actually constructed something myself! Though it's old, I still remember how it works.

Add rows to users table:
ban INT (1) (INT due to the fact that 0 = unbanned, 1 = banned)
reason VARCHAR (10000) (Space can be changed, but varchar to set a default reason)

The script:

On the home:
Source Code
<?if ($row['ban'] =="1"{ echo $row['reason']; } else { ?> Site content <? } ?>


If it doesn't work, I'll fix it around.

No, it doesn't have timed bans.

This post has been edited one or more times, the last time was:
2013-05-12 09:15:57

a
 

Log in to submit a comment

This topic's ID: 46143

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved