Jump to content

script not emailing please help


rabidvibes

Recommended Posts

I got this script called pimpz uk installed and running but when people register and such it doesn't email out. the only file I can find is func.php that has anything to do with email and its this?

 

<?
include("setup.php");

function fetch ($query)
{
   $data = mysql_fetch_row(mysql_query($query));
   return $data[0];
}

function commas ($str){
   return number_format(floor($str));
}

function mail_1 ($subject, $message, $email){
mail("$email", "$subject", $message,
     "From: admin@rabid-vibes.com\r\n"
    ."Reply-To: admin@rabid-vibes.com\r\n"
    ."X-Mailer: PHP/" . phpversion());
}

function mail_2 ($subject, $message, $email){
$MP = "/usr/sbin/sendmail -t";
//$MP .= " -f admin@rabid-vibes.com";
$fd = popen($MP,"w");
fputs($fd, "To: $email\n");
fputs($fd, "From: PimpAttack <admin@rabid-vibes.com>\n");
fputs($fd, "Subject: $subject\n");
fputs($fd, "X-Mailer: PHP4\n");
fputs($fd, $message);
pclose($fd);
}

function dayhour ($online){
global $time;
$difference=$online-$time;
$num = $difference/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
if($days != 0){echo"$days days, ";}if($hours != 0){echo"$hours hours. ";}
}

function countdown ($online){
global $time;
$difference=$online-$time;
$num = $difference/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);

if($days != 0){echo"$days days, ";}
if($hours != 0){echo"$hours hours, ";}
if($mins != 0){echo"$mins mins, ";}
if($secs != 0){echo"$secs secs. ";}
}

function securepic( $var ){

     if(strstr($var,"diamondswebpages"))
       {$var="gfx/media/banned.gif";}
elseif(strstr($var,"http://mywebpages.comcast.net/wahtever/"))
       {$var="gfx/media/banned.gif";}   
elseif(strstr($var,"http://thunder.prohosting.com/~csears/WeBmAsTeR.swf"))
       {$var="gfx/media/banned.gif";}
elseif(strstr($var,"http://www.rentyman.com/temp/rentyman.swf"))
       {$var="gfx/media/banned.gif";}
elseif(strstr($var,"http://www.millsracing.com/images/fatguyeating.gif"))
       {$var="gfx/media/banned.gif";}
elseif(strstr($var,"http://www.redcoat.net/pics/tubgirl.jpg"))
       {$var="gfx/media/banned.gif";}
elseif(strstr($var,"pimpwarhelp.com"))
       {$var="gfx/media/banned.gif";}
   else{$var=$var;}

return $var;
}
?> 

 

 

can you help me

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.