Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add($identifiant, $pseudo, $raison, $serveur, $date, $record, $commentaire, $unban1)
- {
- global $nuked, $user;
- $sql=mysql_query("SELECT * FROM ".BANLIST_TABLE." WHERE pseudo = '" . $pseudo . "'");
- mysql_query("SET NAMES 'ISO-8859-1'");
- $count = mysql_num_rows($sql);
- if($count == 0)
- {
- $date = time();
- $admin = printSecuTags( $user[2]);
- $identifiant = printSecuTags($identifiant);
- $pseudo = printSecuTags($pseudo);
- $raison = printSecuTags($raison);
- $serveur = printSecuTags($serveur);
- $record = printSecuTags($record);
- $commentaire = printSecuTags($commentaire);
- $unban1 = printSecuTags($unban1);
- if ($unban1 != 'on'){$unban1 = "off";}
- $add = mysql_query("INSERT INTO " . BANLIST_TABLE . " ( `id` , `identifiant` , `pseudo` , `raison` , `serveur` , `admin` , `date`, `record`, `commentaire`, `unban1` ) VALUES ( '' , '" . $identifiant . "' , '" . $pseudo . "' , '" . $raison . "' , '" . $serveur . "' , '" . $user[2] . "' , '" . time() . "', '" . $record . "', '" . $commentaire . "', '" . $unban1 . "' )");
- mysql_query("SET NAMES 'ISO-8859-1'");
- $sql=mysql_query("SELECT * FROM ".BANLIST_CONFIG_TABLE." where id='1'" );
- list($id, $iden, $unban1) = mysql_fetch_array($sql);
- echo "<div class=\"notification success png_bg\">\n"
- . "<div>\n"
- . _THXBAN." " . $user[2]. "<br /> "._ADDOK." "._ADDOK4." <b>".$raison."</b> "._ADDOK5." <b>".$serveur."</b><br />"._ADDOK2." ".$iden.": <b>".$identifiant."</b><br /> "._ADDOK3." <b>".$pseudo."</b><br /> "._LIENBAN." : <b>".$record."</b><br /> "._COMMENTAIRE." : <b>".$commentaire."</b>><br /> "._unban." : <b>".$unban1."</b>\n"
- . "</div>\n"
- . "</div>\n";
- redirect("index.php?file=Banlist&page=admin&op=gestion", 5);
- }else{
- ?>
- <div class="notification error png_bg">
- <div><?php echo _DEJABAN; ?><br /><div style="text-align:center;"><a href="javascript:history.back()"><b><?php echo _BACK; ?></b></a></div></div>
- </div>
- <?php
- }
- }
Add Comment
Please, Sign In to add comment