Files
Testing/mailservices/new_user_track.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

195 lines
7.2 KiB
PHP

<?php header('Content-Type: text/html; charset=utf-8');
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/bebop/');
if(!session_id()){session_start();}
if(!isset($_SESSION["newuserid"])){$_SESSION["newuserid"]=0;}
?>
<!doctype html>
<html>
<head>
<?php
function uuid() {
// The field names refer to RFC 4122 section 4.1.2
return sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x',
mt_rand(0, 65535), mt_rand(0, 65535),
mt_rand(0, 65535),
mt_rand(0, 4095),
bindec(substr_replace(sprintf('%016b', mt_rand(0, 65535)), '01', 6, 2)),
mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535)
);
}
$fresh=uuid();
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="25; url=https://bateworld.com/mailservices/new_user_track.php?dofresh=<?php echo $fresh;?>">
<title>Spammer Hunt and Disable</title>
<style type="text/css">
a{color:darkgreen;}
td, th{font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif"}
</style>
</head>
<body>
<table style="width:100%;">
<caption style="vertical-align:baseline;background-color:#9fd4ff;"><h2 style="vertical-align:baseline;">Spammer Hunt and Destroy<img src="/mailservices/images/icons/submarine.png" width="134" height="75" style="float:right;margin-right:10px;width:75px;height:auto;" /></h2></caption>
<thead>
<tr style="background-color:#0077BE;color:#fff;">
<th style="text-align:left;padding:5px 10px 5px 5px;border-radius:5px 0px 0px 0px;">User Id</th>
<th style="text-align:left;padding:5px;">Username</th>
<th style="text-align:center;padding:5px;">On/Off</th>
<th style="text-align:center;padding:5px;">EVC</th>
<th style="text-align:left;padding:5px;">Email</th>
<th style="text-align:left;padding:5px;border-radius:0px 5px 0px 0px;" colspan="2">ip address</th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="7" style="background-color:#0077BE;color:white;font-weight:bold;padding:5px 10px 5px 10px;">Spammer Detect</th>
</tr>
</tfoot>
<tbody>
<?php
$playaudio=0;
$lofemail=array();
if(!isset($_SESSION["listemail"])){$_SESSION["listemail"]="";}
$lofemail=$_SESSION["listemail"];
function connecttodb()
{
$emsg="Ok";
$mhostname = "localhost";
$mdatabase = "bateworldcom";
$musername = "db.bateworldcom";
$mpassword = "sDIE8U8!5n*4%Ue_x.Pq";
mysql_connect($mhostname, $musername, $mpassword) or $emsg="Host Connect Error";
if($emsg=="Ok"){mysql_select_db($mdatabase) or $emsg="Database Connection Error";}
return($emsg);
}
$em="";
$ctb=connecttodb();
mysql_query("SET NAMES UTF8");
$sql="SELECT `se_users`.`user_username`, `se_users`.`user_id`, `se_users`.`user_email`, `se_users`.`user_email`, `se_users`.`user_ip_lastactive`, `se_users`.`user_enabled`, `se_users`.`user_pdp_evc` FROM `se_users` WHERE ((floor((UNIX_TIMESTAMP()-`se_users`.`user_signupdate`) / (60*60*24))) <= 1) ORDER BY `se_users`.`user_id` DESC";
$query = mysql_query($sql) or $em=$em.mysql_error();
$rownum=0;
while ($row = mysql_fetch_assoc($query)) {
$makestrong=""; //clear variable
$theaction=""; //clear variable
$rownum=$rownum+1;
// Play new user music
if($rownum==1){if($_SESSION["newuserid"] !== $row["user_id"]){$playaudio=1;$_SESSION["newuserid"] = $row["user_id"];}}
// check to see if newuser ip duplicated in the user loop - sould trigger a flag
if($playaudio==1 && $rownum > 1)
{
if($_SESSION["newuserid"]==$row["user_id"])
{
echo "duplicate";
}
}
if (strpos($row["user_ip_lastactive"], '81.171.98') !== false || strpos($row["user_ip_lastactive"], '70.211.136') !== false || strpos($row["user_ip_lastactive"], '73.163.118') !== false || strpos($row["user_ip_lastactive"], '194.187.251') !== false ||
strpos($row["user_ip_lastactive"], '89.101.26') !== false){
$makestrong=";font-weight:bold;color:navy;";
$chkemail = in_array($row["user_email"], $lofemail);
if(!$chkemail){if($row["user_enabled"]==1){$lofemail[]=$row["user_email"];}}
}
if (strpos($row["user_ip_lastactive"], '209.107.214') !== false || strpos($row["user_ip_lastactive"], '205.185.223') !== false ){
$theaction="kill";
}
// Kill user strings
if (strpos($row["user_email"], '@banit') !== false || strpos($row["user_email"], '@nada') !== false) {
$theaction="kill";
}
if (strpos($row["user_email"], '.club') !== false)
{
if (strpos($row["user_email"], 'duck2.club') !== false || strpos($row["user_email"], 'mail.club') !== false || strpos($row["user_email"], 'cars2.club') !== false)
{
$theaction="kill";
}
else // requires additonal evaluation
{
$makestrong=";font-weight:bold;color:#a65200;";
$chkemail = in_array($row["user_email"], $lofemail);
if(!$chkemail){if($row["user_enabled"]==1){$lofemail[]=$row["user_email"];}}
}
}
// Users require additional evaluation
if (strpos($row["user_email"], 'yopmail') !== false || strpos($row["user_email"], '@inaby.com') !== false)
{
$makestrong=";font-weight:bold;color:midnightblue;";
$chkemail = in_array($row["user_email"], $lofemail);
if(!$chkemail){if($row["user_enabled"]==1){$lofemail[]=$row["user_email"];}}
}
// Modify $theaction kill
//if (strpos($row["user_email"], '@locantowsite.club')){$theaction="";}
//Deactivate User
if($theaction=="kill")
{
$makestrong=";font-weight:bold;color:#777;";
if($row["user_enabled"]==1){
$makestrong=";color:red;font-weight:bold;";
$theuserid=$row["user_id"];
include(PATHTOINCLUDES."killthelion.php");
}
}
if($rownum % 2 != 0){$rc="#9fd4ff";} else{$rc="#fff";}
echo "<tr style=\"background:".$rc."".$makestrong.";\" onmouseover=\"this.style.background='#6ce26c';\" onmouseout=\"this.style.background='".$rc."';\" class=\"trr\" valign=\"top\" id=\"therow_".$rownum."\">";
echo '<td style="padding:5px 10px 5px 5px;text-align:left;">'.$row["user_id"].'</td>';
if($row["user_enabled"]==1)
{
echo '<td style="padding:5px 10px 5px 5px;text-align:left;"><a href="https://bateworld.com/profile.php?user='.$row["user_username"].'" target="_blank">'.$row["user_username"].'</a></td>';
}
else
{
echo '<td style="padding:5px 10px 5px 5px;text-align:left;">'.$row["user_username"].'</td>';
}
echo '<td style="padding:5px;text-align:center;">'.$row["user_enabled"].'</td>';
echo '<td style="padding:5px;text-align:center;">'.$row["user_pdp_evc"].'</td>';
echo '<td style="padding:5px;text-align:left;">'.$row["user_email"].'</td>';
echo '<td style="padding:5px;text-align:left;">'.$row["user_ip_lastactive"].'</td>';
echo '<td style="padding:5px;text-align:right;" nowrap="nowrap"> Delete | Ban | <a href="javascript:void(0);" onclick="lionhunt(\'kill\','.$row["user_id"].')">Kill</a></td>';
echo '</tr>';
}
?>
</tbody>
</table>
<script type='text/javascript' src="/mailservices/js/jquery-1.7.2.min.js"></script>
<script>
function lionhunt(theact,theid,mid)
{
"use strict";
var url="/bebop/lionhunt.php";
jQuery.ajax({
url: url,
type: 'GET',
data:{userid:theid,takeaction:theact},
async: true,
cache: false,
success: function(data) {
if(data.theerror!==""){alert(data.theerror);}
},
error: function(resp, textStatus, errorThrown){ }
});
}
</script>
<?php if($playaudio===1){; ?>
<audio id="newmemberalert" autoplay><source src="/cmeter/cmeter.mp3" type="audio/mpeg"></audio>
<?php } ?>
<?php
$_SESSION["listemail"]=$lofemail;
foreach($listemail as $ea){
}
?>
</body>
</html>