Welcome, Guest.
Login
|
Register
Username:
Password:
Remember me:
Simpliest Ban System (help)
Please log in to post.
Watch thread
Unwatch thread
Started by
EpicWayne
10 Apr 2012 12:21
By
EpicWayne
(
11
)
On 10 Apr 2012 12:23
Can anyone help me with ban system please , if do I will be greatful.
Creator of Unknown
By
M.J kInG
(
1331
)
On 17 Apr 2012 00:41
Just uses ip Remote here my script.
This part check if users banned or not
<?php
session_start();
$username = $_GET['username'];
include("database.php");
function Profile($username)
{
$result = mysql_query("SELECT * FROM users WHERE username='".$_SESSION['Username']."' and banned='Yes' LIMIT 1");
$row = mysql_num_rows($result);
if($row =="1") {
$r=mysql_fetch_array($result);
die("You are banned<br>Time: 24hour<br><a href=default.php>Back</a>");
}
}
?>
This one call the function
<?
include("Chatroom_kick.php");
kick($_SERVER['REMOTE_ADDR']);
?>
A true developer
By
11Drago
(
684
)
On 17 Apr 2012 01:30
It's actually simple if you KNEW Php.
...
By
Chanishyy
(
154
)
On 17 Apr 2012 15:17
Thanks got it.
Existance alludes
Nintendo 3DS is ™ Nintendo Co. Ltd. This website is ©2009-2025 HullBreach Studios. All rights reserved.