Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 21:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Shakes & Fidget Ban System

Discussion on Shakes & Fidget Ban System within the Browsergames forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
Shakes & Fidget Ban System

Hi there guys , i was bored so i created a simple ban system

How it works? When user uses bugs or break rules you can simple ban him by pressing one little button that says Ban! [ If you have administration by Jessi ]

And if time goes then you just click on Unban!

So what to do? Go to your request.php and search case $ACT_LOGIN
Then find this:
PHP Code:
// compare passwords, if wrong, throw wrong password exception & break 
         
        
$db_pass $db_data ['password']; 
         
        if (
$pass != $db_pass) { 
            
$ret = array ( 
                    
$ERR_LOGIN_FAILED  // $ERR_WRONG_PASSWORD 
                        
); 
             
            break; 
        } 
Then below it type this
PHP Code:
if ($db_data ['banned'] == 1) { 
            
$ret = array (
                    
$ERR_LOGIN_FAILED // Shows him at login screen that he have ban
                        
);
                        
            break;
        } 
Then go to your phpmyadmin select your database and click on sql

Delete everything thats inside and type in this
Code:
ALTER TABLE user_data ADD banned VARCHAR (60)
And if you dont have administration by jessi then if you want to ban a player go to your database then go to user_data search the nickname of player search for banned and type in 1 to unban type 0

if you have administration by jessi go into ban.php and delete everything inside and type in this
PHP Code:
<?php

    
// Simple AdminUI
    // Author: Jessi 4 psfgame.de
    // You are allowed to modify and/or redistribute any part of this

require_once("backend/main.php");
loggedinorreturn();
stdhead("ban");

dbconn();

if(isset(
$_POST["doit"]) && isset($_POST["sec"]) && isset($_POST["id"]))
{
    if(
$_POST["sec"] == "yes")
    {
        
$pid $_POST["id"];
        
$sql "UPDATE user_data SET banned = 1,ssid = 0 WHERE user_id = $pid";
        
$qry mysql_query($sql);
        echo 
"account banned..";
?>
        <meta http-equiv="refresh" content="5; URL=index.php">
<?php
    
}
    else
    {
        echo 
"wrong answer...";
?>
        <meta http-equiv="refresh" content="6; URL=user.php?id=<?=$_POST["id"]?>">
<?php
    
}
}
else
{
?>

<form action="<?=$_SERVER["PHP_SELF"?>" method="post" enctype="multipart/form-data" target="_self">
<table cellpadding="4" cellspacing="1" border="0" style="width:100%" class="tableinborder">
 <tr class="tabletitle" width="100%">
  <td colspan="10" width="100%"><span class="normalfont"><center><b>Authentication</b></center></span></td> 
 </tr><tr><td width="100%" class="tablea"><center>
<table border="0" cellspacing="1" cellpadding="4" class="tableinborder">
<tr><td class=tableb align=left>Type in "yes":</td><td class=tablea align=left><input type="text" size="40" name="sec" /></td></tr>
<tr><td class=tablea colspan="2" align="center"><input type="submit" value="Ban!" class=btn></td></tr>
</table>
<input type="hidden" name="doit" value="yes" />
<input type="hidden" name="id" value="<?=$_GET["id"]?>" />
</form>
</center>
</td></tr></table>
<?php
}
stdfoot();
?>
Then create a file named unban.php and type in
PHP Code:
<?php

    
// Simple AdminUI
    // Author: Jessi 4 psfgame.de
    // You are allowed to modify and/or redistribute any part of this

require_once("backend/main.php");
loggedinorreturn();
stdhead("UnBan");

dbconn();

if(isset(
$_POST["doit"]) && isset($_POST["sec"]) && isset($_POST["id"]))
{
    if(
$_POST["sec"] == "yes")
    {
        
$pid $_POST["id"];
        
$sql "UPDATE user_data SET banned = 0 WHERE user_id = $pid";
        
$qry mysql_query($sql);
        echo 
"account unbanned...";
?>
        <meta http-equiv="refresh" content="5; URL=index.php">
<?php
    
}
    else
    {
        echo 
"wrong answer...";
?>
        <meta http-equiv="refresh" content="6; URL=user.php?id=<?=$_POST["id"]?>">
<?php
    
}
}
else
{
?>

<form action="<?=$_SERVER["PHP_SELF"?>" method="post" enctype="multipart/form-data" target="_self">
<table cellpadding="4" cellspacing="1" border="0" style="width:100%" class="tableinborder">
 <tr class="tabletitle" width="100%">
  <td colspan="10" width="100%"><span class="normalfont"><center><b>Authentication</b></center></span></td> 
 </tr><tr><td width="100%" class="tablea"><center>
<table border="0" cellspacing="1" cellpadding="4" class="tableinborder">
<tr><td class=tableb align=left>Type in "yes":</td><td class=tablea align=left><input type="text" size="40" name="sec" /></td></tr>
<tr><td class=tablea colspan="2" align="center"><input type="submit" value="UnBan!" class=btn></td></tr>
</table>
<input type="hidden" name="doit" value="yes" />
<input type="hidden" name="id" value="<?=$_GET["id"]?>" />
</form>
</center>
</td></tr></table>
<?php
}
stdfoot();
?>
And in user.php search this ( it is translated to my language)
PHP Code:
<a href="pmspy.php?id=<?=$u["user_id"]?>">Zprávy od ostatních</a><br>
                                                    <a href="pmsend.php?to=<?=$u["user_id"]?>">Poslat zprávu - Momentalne nefunkcne</a><br>
And replace it with this
PHP Code:
<a href="pmspy.php?id=<?=$u["user_id"]?>">Zprávy od ostatních</a><br>
                                                    <a href="pmsend.php?to=<?=$u["user_id"]?>">Poslat zprávu - Momentalne nefunkcne</a><br>
                                                    <a href="ban.php?id=<?=$u["user_id"]?>">Ban </a><br>
                                                    <a href="unban.php?id=<?=$u["user_id"]?>">Unban </a><br></td>
Hope you enjoy this!
EptunLP is offline  
Thanks
3 Users
Old 06/02/2014, 17:06   #2
 
Crasim's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 93
Received Thanks: 74
is very similar to the system that I have created two days ago xD the only difference is the database that I created a page dedicated only to users banned xD
PS: uses a system using enum as I had recommended to me jessi

Crasim is offline  
Thanks
1 User
Old 06/02/2014, 20:08   #3
 
UND3RW0RLD's Avatar
 
elite*gold: 1
Join Date: Jun 2011
Posts: 1,464
Received Thanks: 1,065
Quote:
Originally Posted by EptunLP View Post
And replace it with this
PHP Code:
<a href="pmspy.php?id=<?=$u["user_id"]?>">Zprávy od ostatních</a><br>
                                                    <a href="pmsend.php?to=<?=$u["user_id"]?>">Poslat zprávu - Momentalne nefunkcne</a><br>
                                                    <a href="ban.php?id=<?=$u["user_id"]?>">Ban </a><br>
                                                    <a href="unban.php?id=<?=$u["user_id"]?>">Unban </a><br></td>
Hope you enjoy this!
Tiny improvement
PHP Code:
<a href="pmspy.php?id=<?=$u["user_id"]?>">Zprávy od ostatních</a><br>
                                                    <a href="pmsend.php?to=<?=$u["user_id"]?>">Poslat zprávu - Momentalne nefunkcne</a><br>
<?php
if($u["banned"] == 0)
{
?>
                                                    <a href="ban.php?id=<?=$u["user_id"]?>">Ban </a><br>
<?php
}
else
{
?>
                                                    <a href="unban.php?id=<?=$u["user_id"]?>">Unban </a>
<?php
}
?>
                                                    <br></td>
UND3RW0RLD is offline  
Thanks
2 Users
Old 06/02/2014, 21:40   #4
 
nazulor's Avatar
 
elite*gold: 0
Join Date: Nov 2013
Posts: 62
Received Thanks: 22
nice work
nazulor is offline  
Old 06/02/2014, 22:17   #5
 
elite*gold: 0
Join Date: Jul 2012
Posts: 44
Received Thanks: 3
Gj a třeba další verze bude? Duvod banu atd časový ban
eskocze is offline  
Old 06/30/2014, 20:09   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 7
Received Thanks: 0
Eptun máš i jiné navody a jinak jak dám ban ??
Zatlos is offline  
Old 06/30/2014, 20:19   #7
 
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
Návodov by som ti mohol písať na 10 strán a ban dáš tak že pojdeš do db najdeš hráča a nastavíš banned na 1
EptunLP is offline  
Thanks
1 User
Old 06/30/2014, 20:22   #8
 
elite*gold: 0
Join Date: Jun 2014
Posts: 7
Received Thanks: 0
Ahoj Eptune Kde najdu další tvoje návody ??
Zatlos is offline  
Old 06/30/2014, 20:25   #9
 
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
Viac už tu nemám, ak chceš pomoc napiš mi do pm tvoj skype
EptunLP is offline  
Old 07/01/2014, 08:21   #10
 
elite*gold: 0
Join Date: Jun 2014
Posts: 7
Received Thanks: 0
Ahoj EptunLP napsal sem do pm skype Kdyby to tam nebylo tak muj skype je marian.zatlos potřebuji pomoct s pomocníkami ve věži mám v request.php nakodovany ale nezobrazjí se mi nevýš proč ??
Zatlos is offline  
Old 07/01/2014, 09:51   #11
 
elite*gold: 0
Join Date: Nov 2013
Posts: 167
Received Thanks: 57
Pozrel som sa , nič tam nemáš nakódované
EptunLP is offline  
Reply


Similar Threads Similar Threads
Top 10 Shakes and Fidget acc!!! Shakes & Fidget/ S&F Game
01/14/2015 - Browsergames Trading - 13 Replies
Ich verkaufe hier einen Shakes and Fidget Acc, der sich meistens in den top 5-15 (~top 10) aufhält. Server 26 Beschreibung: Eigenschaft: Kundschafter Pilze vorhanden: Ja zurzeit 16 Email: Ja, vorhanden Greifdrache 15 Tage noch
[Buying] Shakes & Fidget S25 Acc (:
10/22/2013 - Trading - 5 Replies
Hey, Ich suche einen Acc auf S25 sollte min. 40+ sein mehr geht natürlich auch :d Schreibt mir eure Gebote mit Preis hier oder per pn. lg zhaaaw
[S]Shakes and Fidget[B]PSC
04/15/2013 - Browsergames Trading - 7 Replies
Hallo, ich suche einen Hohen Shakes and Fidget Level Acc. Der Acc sollte gut Ausgerüstet sein und für die Levelbremse sollte noch Dungeons übrig sein. Max Level:180 Ihr sagt wieviel ihr wollt. Getradet über MM oder ihr gibt first. MFG
Shakes&Fidget Acc vk
10/20/2011 - Browsergames Trading - 0 Replies
hallo ich verkaufe mein kundschafter lvl26 welt16 macht mir doch einfach ein paar gebote ich nehme nur psc an



All times are GMT +1. The time now is 21:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.