‘;
}
}
function Get_UserLogin($refpin)
{global $con;
$qre = mysqli_query($con,”Select * from users where refpin =’$refpin’ LIMIT 0,1″) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return 0;}
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res[‘userid’];
}
function Get_USERProfile($userid,$option, $field)
{global $con;
$qre = mysqli_query($con,”Select * from profile where userid =’$userid’ LIMIT 0,1″) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return 0;}
else
{
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
if($option==false)
{
return $res[$field];
}
return $res;
}
}
//————————————————
function Pagep($col, $table, $cond)
{
global $con;
if($cond==false)
{
$rs_result = mysqli_query($con, “SELECT COUNT($col) AS CNT FROM $table”)or die(mysqli_error($con));
}
else
{
$rs_result = mysqli_query($con, “SELECT COUNT($col) AS CNT FROM $table $cond”)or die(mysqli_error($con));
}
$row = mysqli_fetch_array($rs_result);
$total_records = $row[‘CNT’];
$total_pages = ceil($total_records / 20);
mysqli_free_result($rs_result);
return $total_pages;
}
function PP($field)
{global $con;
return mysqli_real_escape_string($con, trim($field));
}
function Get_Location_parent($parentid)
{
global $con;
$qre=mysqli_query($con,”select location from locations WHERE locid =’$parentid’ LIMIT 0,1″) or die(mysqli_error($con));
$row = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $row[‘location’];
}
function ShowUsersPofileData($userid)
{
global $con;
$qre=mysqli_query($con,”SELECT U.username, U.refpin, U.ref_by, U.reg_date, UP.phone, UP.name,UP.email FROM users AS U , profile AS UP WHERE UP.userid = U.userid
AND U.userid =’$userid'”) or die(mysqli_error($con));
$row = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $row;
}
function ShowUsersList($page,$limit)
{
global $con; $data=”; $pagLink=”;
$start_from = ($page-1) * $limit;
$qre=mysqli_query($con,”SELECT U.userid, U.username, U.refpin, U.ref_by, U.reg_date, UP.phone, UP.name FROM users AS U , profile AS UP WHERE UP.userid = U.userid AND U.active=’Y’
ORDER BY U.userid DESC LIMIT $start_from, $limit”) or die(mysqli_error());
if(mysqli_num_rows($qre)==0)
return ‘
function ShowChainList($user,$page,$limit)
{
global $con; $data=”; $pagLink=”;
$start_from = ($page-1) * $limit;
$qre=mysqli_query($con,”SELECT U.userid, U.username, U.refpin, U.ref_by, U.reg_date, UP.phone, UP.name FROM users AS U , profile AS UP WHERE UP.userid = U.userid AND U.active=’Y’
AND U.ref_by= ‘$user’
ORDER BY U.userid DESC LIMIT $start_from, $limit”) or die(mysqli_error());
if(mysqli_num_rows($qre)==0)
return ‘
function UpdateLevel_1()
{
global $con;
$qre=mysqli_query($con,”select userid AS childid from profile where ustatus =’N’ ORDER by pid “) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return ‘No Record Found..’;}
$res = mysqli_fetch_array($qre); extract($res);
if(LevelMembers_One($childid) == true)
{
mysqli_query($con,”UPDATE profile Set ustatus =’Y’ WHERE userid =’$childid'”) or die(mysqli_error($con));
return ‘refesh again..’;
}
}
function LevelMembers_One($childid)
{
global $con;
$qre=mysqli_query($con,”select * from levels_member1 where level_status =’Pending’ LIMIT 0,1″) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return ‘No Record Found..’;}
$res = mysqli_fetch_array($qre); extract($res); mysqli_free_result($qre);
$totalMembers = LevelMasterMambers($levelid); // TOTAL MEMBERS IN A LEVELS
$members_count = $members_3 ;
if($totalMembers > $members_count)
{
LevelCountMemberUpdate($levelmemid, $members_count,$userid); // UPDATE MEMBER COUNT
chain_relation($userid, $childid, ‘1’); // INSERT CHILD RELATION
return true;
}
elseif($members_count == $totalMembers)
{
$REF=3;
//$REF = CheckDirectThree($userid);
// $NextUser = GetNextUser($userid, $levelid);
// INSERTUSERLevel($NextUser, ‘1’,’1′);
////////chain_relation($userid, $childid, ‘1’);
if($REF < 3)
{
LevelMemberStatusUpdate($levelmemid, 'Block'); return true;
}
else
{
LevelMemberStatusUpdate($levelmemid, 'Complete');
Insert_Level_Next($userid);
return false;
}
}
}
function Insert_Level_Next($userid)
{
global $con;
$qre=mysqli_query($con,"INSERT levels_member2 (userid,levelid) VALUES('$userid','2' )") or die(mysqli_error($con));
}
function LevelMasterMambers($levelid)
{
global $con; return 3;
$qre=mysqli_query($con,"select * from levels where levelid ='$levelid'") or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return 0;}
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res['members'];
}
function LevelCountMemberUpdate($levelmemid, $members_count,$userid)
{
global $con;
$members_count = $members_count+1;
mysqli_query($con,"UPDATE levels_member1 Set members_3 ='$members_count' WHERE levelmemid ='$levelmemid'") or die(mysqli_error($con)); $k=0;
// ---------------INSERT PAYMENTS -----------------------
if($members_count == 3)
{
$income ='1200'; $debit=0; $stage ='S1'; $k=1;
}
elseif($members_count == 12)
{
$income ='900'; $debit=0; $stage ='S2'; $k=1;
}
elseif($members_count == 39)
{
$income ='3600'; $debit=2000; $stage ='S3'; $k=1;
}
if($k==1)
{
$qre=mysqli_query($con,"SELECT * FROM level1_income WHERE userid='$userid' AND stage='$stage'") or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0)
{$qre=mysqli_query($con,"INSERT INTO level1_income (userid,stage, income,debit,reg_date)
VALUES('$userid','$stage','$income','$debit',NOW() )") or die(mysqli_error($con));
}
}
}
function GetNextLevelID($levelid)
{
global $con;
$qre=mysqli_query($con,"select * from levels where levelid > ‘$levelid’ LIMIT 0,1″) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0){return 0;}
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res[‘levelid’];
}
function CheckDirectThree($userid)
{
global $con; //echo $userid;
$qre=mysqli_query($con,”SELECT COUNT(ref_by) AS REF from users WHERE ref_by =’$userid'”) or die(mysqli_error($con));
$res = mysqli_fetch_array($qre);extract($res);
mysqli_free_result($qre);
return $REF;
}
function LevelMemberStatusUpdate($levelmemid, $level_status)
{
global $con;
//$members_count = $members_count+1;
mysqli_query($con,”UPDATE levels_member1 Set level_status =’$level_status’ WHERE levelmemid =’$levelmemid'”) or die(mysqli_error($con));
}
function GetNextUser($userid, $levelid)
{
global $con;
if($levelid == 1)
{
$qre=mysqli_query($con,”select userid AS NextUSER from users where userid > ‘$userid’ LIMIT 0,1″)
or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0)
{$qre=mysqli_query($con,”UPDATE nextusers set status=’Stop'”) or die(mysqli_error($con));}
$res = mysqli_fetch_array($qre);extract($res);
mysqli_free_result($qre);
return $NextUSER;
}
}
function INSERTUSERLevel($userid, $levelid,$cnt)
{
global $con;
mysqli_query($con,”INSERT INTO levels_member1 (levelid, userid, members_count)
VALUES (‘$levelid’,’$userid’,’$cnt’)”) or die(mysqli_error($con));
}
//$qre=mysqli_query($con,”INSERT INTO levels_member (levelid, userid, members_count) VALUES ()”) or die(mysqli_error($con));
function chain_relation($userid, $childid, $levelid)
{
global $con;
mysqli_query($con,”INSERT INTO chain_relation ( useid, childid, levelid)
VALUES (‘$userid’,’$childid’,’$levelid’)”) or die(mysqli_error($con));
}
function UPDATE_InCome($members_count, $userid)
{
global $con;
if( ($members_count >= 3) && ($members_count <= 11 ))
{
$income ='1200'; $debit=0; $stage ='S1'; $k=1;
}
elseif( ($members_count >= 12) && ($members_count < 39 ))
{
$income ='900'; $debit=0; $stage ='S2'; $k=1;
}
elseif($members_count == 39)
{
$income ='3600'; $debit=2000; $stage ='S3'; $k=1;
}
if($k==1)
{
$qre=mysqli_query($con,"SELECT * FROM level1_income WHERE userid='$userid' AND stage='$stage'") or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0)
{
mysqli_query($con,"INSERT into level1_income (userid,stage, income,debit,reg_date) VALUES('$userid','$stage','$income','$debit',NOW() )") or die(mysqli_error($con));
}}
}
function Ref_Payout_Request($type)
{
global $con; $data='';
$qre=mysqli_query($con,"SELECT * FROM payout_order WHERE type ='$type' ORDER BY orderid DESC") or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return 'No Record Found.';
while($res = mysqli_fetch_array($qre))
{
extract($res); $PF = ShowUsersPofileData($userid);
if($status=='Pending') {$stat =
'Pending‘;}
elseif($status==’Done’) {$stat =
‘Closed‘;}
$data .=’
function Ref_Payout_RequestDetails($orderid)
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM payout_order WHERE orderid =’$orderid'”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
function UserBank($userid)
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM bank WHERE userid =’$userid'”) or die(mysqli_error($con));
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
function Payout_Ref_OrderDetails($orderid)
{
global $con; $data=”; $balance=0; $i=0;
$qre=mysqli_query($con,”SELECT * FROM levels_order_details AS PD WHERE orderid =’$orderid'”) or die(mysqli_error($con));
}
function Get_TransRecord($orderid,$userid)
{
global $con;
$qre =mysqli_query($con,”select * from transactions where orderid=’$orderid’ and userid=’$userid'”)or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
function Get_TransRecord2($orderid,$userid,$type)
{
global $con;
$qre =mysqli_query($con,”select * from transactions where orderid=’$orderid’ and userid=’$userid’ AND type=’$type'”)or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
//////////////////////////—————————————–
function Level_Payout_Request()
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM levels_order ORDER BY orderid DESC”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return ‘No Record Found.’;
while($res = mysqli_fetch_array($qre))
{
extract($res); $PF = ShowUsersPofileData($userid);
if($status==’Pending’) {$stat =
‘Pending‘;}
elseif($status==’Done’) {$stat =
‘Closed‘;}
$data .=’
function Level_Payout_RequestDetails($orderid)
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM levels_order WHERE orderid =’$orderid'”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
function ShowUsersListRegister($page,$limit)
{
global $con; $data=”; $pagLink=”;
$start_from = ($page-1) * $limit;
$qre=mysqli_query($con,”SELECT U.userid, U.username, U.refpin, U.ref_by, U.reg_date, UP.phone, UP.name FROM users AS U , profile AS UP WHERE UP.userid = U.userid AND U.active=’N’
ORDER BY U.userid DESC LIMIT $start_from, $limit”) or die(mysqli_error());
if(mysqli_num_rows($qre)==0)
{ $datas[] = ‘
‘;
$datas[]= $data;
$datas[] =$pagLink ;
return $datas;
}
function Activate_member($userid)
{
global $con;
$qre=mysqli_query($con,”Select * from users where userid = ‘$userid’ LIMIT 0,1″) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) {return false;}
$res = mysqli_fetch_array($qre); extract($res); mysqli_free_result($qre);
if($active ==’N’)
{
mysqli_query($con,”UPDATE users set active=’Y’ Where userid = ‘$userid'”) or die(mysqli_error($con));
mysqli_query($con,”INSERT INTO referal_income (ref_id, userid, income) VALUES (‘$ref_by ‘,’$userid’,’500.00′) “) or die(mysqli_error($con));
mysqli_query($con,”INSERT INTO pool1 ( userid, levelid) VALUES (‘$userid’,’1′)”) or die(mysqli_error($con));
mysqli_query($con,”INSERT INTO levels_member1 ( userid, levelid, level_status) VALUES (‘$userid’,’1′,’Pending’)”) or die(mysqli_error($con));
mysqli_query($con,”INSERT INTO `bank` (userid) VALUES (‘$userid’)”) or die(mysqli_error($con));
}
}
///////////////LEVEL 2 WORKS BEGIN ——————————————————————
function L2_Memberslist()
{
global $con; $data=”; $i=0;
$qre=mysqli_query($con,”SELECT * FROM `levels_member1` WHERE members_count =39 and level2=’Y'”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) {return false;}
‘;
}
mysqli_free_result($qre);
return $data;
}
function GetUserInfo($userid)
{
global $con;
$qre=mysqli_query($con,”SELECT U.username, U.refpin, UP.phone, UP.name FROM users AS U , profile AS UP WHERE UP.userid = U.userid AND U.active=’Y’ AND U.userid=’$userid’
ORDER BY U.userid LIMIT 0,1″) or die(mysqli_error());
$res = mysqli_fetch_array($qre); mysqli_free_result($qre);
return $res;
}
function TeamPerformance_Payout_Request()
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM teamperformance_order ORDER BY toid DESC”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return ‘No Record Found.’;
while($res = mysqli_fetch_array($qre))
{
extract($res); $PF = ShowUsersPofileData($userid);
if($tstatus==’Pending’) {$stat =
‘Pending‘;}
elseif($tstatus==’Done’) {$stat =
‘Closed‘;}
$data .=’
function TeamPerformance_Payout_RequestDetails($toid)
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM teamperformance_order WHERE toid =’$toid'”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
function Daily_Payout_RequestDetails($ref10_inc_id)
{
global $con; $data=”;
$qre=mysqli_query($con,”SELECT * FROM ref10_income WHERE ref10_inc_id =’$ref10_inc_id'”) or die(mysqli_error($con));
if(mysqli_num_rows($qre)==0) return false;
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res;
}
function Daily_Payout_refid($ref10)
{
global $con;
$qre=mysqli_query($con,”SELECT * FROM ref10 WHERE ref10 =’$ref10′”) or die(mysqli_error($con));
$res = mysqli_fetch_array($qre);
mysqli_free_result($qre);
return $res[‘ref_id’];
}
Presented By GFM & Ravishing Entertainment
Directed by MANAV SHAH
Starring: Gurnam Bhullar, Kartar Cheema, Surbhi Jyoti, Prabh Grewal, Lakhwinder, Navdeep Kaler, Manjit Singh, Sanju Solanki, Dheeraj Kumar, Rahul Jungral
Produced by Paramjit Singh, Ravish Abrol, Akashdeep Chally & Gagandeep Chally
Story & Screenplay: Dheeraj Kedarnath Rattan
Dialogue: Dheeraj Kedarnath Rattan, Gurpreet Bhullar, Jimmy Rampal
DOP: Akashdeep Pandey
Editor: Hardik Singh Reen
Special Thanks: S Prasad Chaurasiya
Associate Director: Gaurav Sran, Sachin Arora, Jajvinder Sodhi
Original Background Score: Amar Mohile
Singer: Gurnam Bhullar
Music: Desi Crew & Daddy Beats
Lyrics: Kaptaan, Fateh Shergill & Gurnam Bhullar
Line Production: The Theatre Army Films (Vicky Makhu)
Casting: The Selectors
Art: Shree Kumar Nair, Rommy Arts
Costume: Designer Chetna Seth
Choreographer: Ritchie Burton
Wrestling Coach: Coach Ajay Deep & Coach Rinku Sharma
DI: NY DI-WAALA
DI Colorist: Santosh Pawar (Santy)
DI Head: Sameer Vasudeo Arekar
Sound Designing & Mixing: Yogesh Nehe, Akash Sen Gupta (WAVEMEN POST)
VFX: Shudhanshu Jaiswal
Post Production: Gaurav Sran
Visual Promotions: Visual Key Studios
Poster Design: Thirsty Fish
Action: Monu Kamboj, Ajay Thakur Pathania
Special Thanks: Shiv Naresh
Direction Team: Garry Behniwal, Guntaz Singh Dhillon, Sanjit Narula, Abhijeet Maan
Discover the all new latest punjabi best music videos songs 2024. Find the latest Hindi Bollywood Movies video song, Hindi movies trailers, hindi albums video songs. KOKAHD.COM brings all the upcoming indian webseries from the different ott platforms and hollywood movies trailers. Also watch and listen free online latest Haryanvi, Bojpuri, English and punjabi videos songs. Kokahd.com is the best online video portal for music and movies lovers. Enjoy the party mix hifi Wedding DJ mashup, romantic, Hindi-remix, Punjabi-remix video UK Punjabi & famous Youtube songs 2022, find the popular, trending, top 20, 8D audio songs on Kokahd.com.
KokaHD.com do not support Piracy, we are Youtube video sharing platform. All download links are from third party Streaming. | Model4k.com