Jump to content
MakeWebGames

mails


deadlyculprit

Recommended Posts

  • 2 weeks later...

Re: mails

this is a easy fix :-P

open yourgang.php

Find:

 

function gang_staff_massmailer()
{
global $db,$ir,$c,$userid,$gangdata;
if($_POST['text'])
{
$subj="This is a mass mail from your gang";
$q=$db->query("SELECT * FROM users WHERE gang={$ir['gang']}");
while($r=$db->fetch_row($q))
{
$db->query("INSERT INTO mail VALUES('', 0, {$ir['userid']}, {$r['userid']}, unix_timestamp(),'$subj','{$_POST['text']}')");

 

Add After:

 

$db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$r['userid']}");
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...