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: [email protected]\r\n"
    ."Reply-To: [email protected]\r\n"
    ."X-Mailer: PHP/" . phpversion());
}

function mail_2 ($subject, $message, $email){
$MP = "/usr/sbin/sendmail -t";
//$MP .= " -f [email protected]";
$fd = popen($MP,"w");
fputs($fd, "To: $email\n");
fputs($fd, "From: PimpAttack <[email protected]>\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
https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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