Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addmute($steamid, $pseudo, $date, $raison, $temp, $mute, $admin, $token)
- {
- global $nuked, $user;
- $sql=mysql_query("SELECT id, steamid, mute FROM ".MUTE_TABLE." WHERE steamid = '" . $steamid . "'");
- while (list ($id, $steamid, $mute) = mysql_fetch_array($sql)){
- mysql_query("SET NAMES 'ISO-8859-1'");
- $count = mysql_num_rows($sql);
- if($count == 0){
- //$sql=mysql_query("SELECT * FROM ".BANLIST_CONFIG_TABLE." where id='1'" );
- //list($id, $iden, $unban1) = mysql_fetch_array($sql);
- }elseif ($mute == 0){
- ?>
- <div class="notification error png_bg">
- <div><?php echo _DEJABAN; ?><?php echo ($mute); ?><br /><div style="text-align:center;"><a href="javascript:history.back()"><b><?php echo _BACK; ?></b></a></div></div>
- </div>
- <?php
- }elseif ($mute == 1){
- ?>
- <div class="notification error png_bg">
- <div><?php echo _DEJAUNBAN; ?><?php echo ($mute); ?><br /><div style="text-align:center;"><a href="javascript:history.back()"><b><?php echo _BACK; ?></b></a></div></div>
- </div>
- <?php
- }else{
- $steamid = printSecuTags($steamid);
- $pseudo = printSecuTags($pseudo);
- $date = date('d-m-Y H:i:s');
- $raison = printSecuTags($raison);
- $temp = printSecuTags($temp);
- $mute = printSecuTags($mute);
- $admin = printSecuTags($user[2]);
- $token = printSecuTags($user[0]);
- $add = mysql_query("INSERT INTO " . MUTE_TABLE . " ( `steamid`, `pseudo`, `date`, `raison`, `temp`, `mute`, `admin`, `token` ) VALUES ( '" . $steamid . "', '" . $pseudo . "', '" . $date . "', '" . $raison . "', '" . $temp . "', '" . $mute . "', '" . $user[2] . "', '" . $user[0] . "' )");
- mysql_query("SET NAMES 'ISO-8859-1'");
- ?>
- <div class="notification success png_bg">
- <div><?php echo _AJOUTER; ?><?php echo ($mute); ?><br /><div style="text-align:center;"><a href="javascript:history.back()"><b><?php echo _BACK; ?></b></a></div></div>
- </div>
- <?php
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement