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 * FROM ".MUTE_TABLE." WHERE steamid = '" . $steamid . "'");
- $count = mysql_num_rows($sql);
- if($count == 0){
- $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] . "' )");
- ?>
- <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
- }if ($count != 0){
- $sql1=mysql_query("SELECT id, steamid, mute FROM ".MUTE_TABLE." WHERE steamid = '" . $steamid . "'");
- while (list ($id, $steamid, $mute) = mysql_fetch_array($sql1)){
- if ($mute != 1){
- ?>
- <div class="notification error png_bg">
- <div><?php echo _DEJAMUTE; ?><?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 != 0){
- ?>
- <div class="notification error png_bg">
- <div><?php echo _DEJAUNMUTE; ?><?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