C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$RCHOGJ0.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?PHP
echo "hallo";
    
$headers .="MIME-Version: 1.0 \n";
    
$headers .="From: admin.gridtip@mamweb.at \n";
    
$headers .="X-Mailer: WEbMailer \n";
    
$headers .="X-Priority:3  \n";
    
$headers .="Content-Type: text/html; charset=iso-8859-1 \n";

    
mysql_pconnect("localhost", "admin", "mscmks71s11f132n") or die("Unable to connect to SQL server");
    
mysql_select_db("niki_2009") or die("Unable to select database");

    
$gp=mysql_query("SELECT g_id,g_name, g_datetime_r FROM gps where timediff(g_datetime_r,now())<72 and timediff(g_datetime_r,now()) >0;");

    if (
$erg_gp=mysql_fetch_array($gp)) {
            echo 
"erg_gp";
        
$gp_name=$erg_gp['g_name'];
        
$gp_datetime=$erg_gp['g_datetime_r'];
        
$users=mysql_query("SELECT u_id, u_name, u_email FROM users;");

        while (
$erg_user=mysql_fetch_array($users)) {
            echo 
"erg_user";
                
$message="<html><head>
                    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
                        </head>
                    <body>
                    <p><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Hello "
.$erg_user['u_name'].",<BR><BR>remember to place your tips at <a href='http://gridtip.mamweb.at'><b>GRID TIP</b></a> for the upcoming grand prix of:<BR><BR><b>".$gp_name."</b> on <b>".$gp_datetime." hours (CET)</b>.<BR><BR>Do not forget to place also your tip for the qualifying on the day before and keep in mind that your tip has to be placed at latest until the beginning of the corresponding event.<BR><BR>Cheers,<BR><BR>Your <b>GRID TIP</b> Admin<BR><BR><font size='1'>this is a no-reply address - do not reply to this email</font></font></p>";

                
$status= mail($erg_user['u_email'],"GRID TIP - email reminder",$message,$headers);
            echo 
"status:".$status;
        }
    } 
?>