public function includeProfile($profileUpdate)
 {
     $obj_vali = new Validation();
     $sess_obj->checkAdminLoged();
     $user_name = $_POST['user_name'];
     $user_id = $obj_vali->userNameToID($user_name);
     $obj_reg = new Register();
     $get_profile = new ToolTip();
     $obj_sponser = new Validation();
     $u_name = $_POST['user_name'];
     $user_id = $obj_sponser->userNameToID($u_name);
     $table_prefix = $_SESSION['table_prefix'];
     $user_details = $table_prefix . "user_details";
     $ft_individual = $table_prefix . "ft_individual";
     $qr = "select u.* from {$user_details} AS u\n    INNER JOIN {$ft_individual} AS f ON u.user_detail_refid=f.id\n    where user_detail_refid='" . $user_id . "'";
     //echo $qr;
     $details = $get_profile->getUserData($qr);
     $sponser = $obj_sponser->getSponserIdName($u_name);
 }
Esempio n. 2
0
 $count = count($obj_payout->actiavtion_details);
 //echo "From: $from_date To: $to_date";
 if ($count >= 1) {
     $doc[1][0] = "No";
     $doc[1][1] = "Username";
     $doc[1][2] = "Name";
     $doc[1][3] = "Referral UserID";
     $doc[1][4] = "Referral Full Name";
     $doc[1][5] = "Mobile No";
     $doc[1][6] = "Email";
     $count = $count + 2;
     $j = 0;
     $k = 0;
     for ($i = 2; $i < $count; $i++) {
         $user_name = $obj_payout->actiavtion_details["detail{$k}"]["user_name"];
         $user_id = $obj_sponser->userNameToID($user_name);
         $table_prefix = $_SESSION['table_prefix'];
         $user_details = $table_prefix . "user_details";
         $qr = "select* from {$user_details} where user_detail_refid='" . $user_id . "'";
         //echo $qr;
         $details = $get_profile->getUserData($qr);
         //print_r($details);
         $name = $details["detail1"]["name"];
         $address = $details["detail1"]["address"];
         $land = $details["detail1"]["land"];
         $country = $details["detail1"]["country"];
         $state = $details["detail1"]["state"];
         $district = $details["detail1"]["district"];
         $mobile = $details["detail1"]["mobile"];
         $email = $details["detail1"]["email"];
         $acnumber = $details["detail1"]["acnumber"];
 public function checkUser($user_name)
 {
     require_once 'validation.php';
     $obj_val = new Validation();
     $flag = false;
     $user_name = mysql_real_escape_string($user_name);
     $user_id = $obj_val->userNameToID($user_name);
     if ($user_id) {
         $flag = 1;
     }
     return $flag;
 }
Esempio n. 4
0
require_once '../class/Database.php';
require_once '../class/Validation.php';
require_once '../class/Tree.php';
require_once '../class/TreeView.php';
//require_once "../class/TreeViewAs.php";
//$obj_tree_view = new TreeViewAs();
$obj_tree_view = new TreeView();
$obj_tree = new Tree();
$obj_val = new Validation();
$user_id = $sess_obj->sess_user_id;
$id = $_GET["id"];
$obj = new Database();
$obj->connectDB();
if (isset($_POST['go_submit'])) {
    $go = $_POST['go_id'];
    $go = $obj_val->userNameToID($go);
    $child_id = $go;
    $go = getEncrypt($go);
    if ($user_id < $child_id) {
        $status = $obj_tree->userDownlineUser($child_id, $user_id);
        if ($status == "yes") {
            echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
        } else {
            $go = getEncrypt($user_id);
            echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
        }
    } else {
        $go = getEncrypt($user_id);
        echo "<script>document.location.href='ft_chart.php?id={$go}';</script>";
    }
}
 public function checkLeg($sponserleg, $sponser_user_name)
 {
     require_once 'validation.php';
     $obj_val = new Validation();
     $sponserleg = mysql_real_escape_string($sponserleg);
     $sponser_user_name = mysql_real_escape_string($sponser_user_name);
     $sponserid = $obj_val->userNameToID($sponser_user_name);
     return $obj_val->isLegAvailable($sponserid, $sponserleg);
 }
 public function getnameToId($user_name)
 {
     require_once 'Validation.php';
     $OBJ_VALI = new Validation();
     $user_id = $OBJ_VALI->userNameToID($user_name);
     return $user_id;
 }