Server IP : 108.163.255.210 / Your IP : 18.119.255.170 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/Development/ |
Upload File : |
<?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>"; } if(isset($_REQUEST['__upd'])) { $profileid=$_SESSION['profileid']; $pack=$_REQUEST['package']; $amount=$_REQUEST['totamt']; $product=$_REQUEST['pro']; $qty=$_REQUEST['qty']; $uInfo=$com_obj->singlerec("select user_email from mlm_register where user_profileid='$profileid'"); $ui=$com_obj->singlerec("select * from mlm_register where user_profileid='$profileid'"); $user_id=$ui['user_id']; $user_email=$ui['user_email']; $user_phone=$ui['user_phone']; $rankey=rand(0,99999); $dat=date("Y-m-d"); try { $response=$Instamojo->paymentRequestCreate(array( "purpose" => "Upgrading Membership", "amount" => $amount, "send_email" => true, "email" => $uInfo['user_email'], "redirect_url" => $website_url."memberpackage.php" )); $ip=$_SERVER['REMOTE_ADDR']; $set="profileid='$profileid'"; $set.=",payment_id='$response[id]'"; $set.=",pack='$pack'"; $set.=",amount='$amount'"; $set.=",qty='$qty'"; $set.=",discount='$discount'"; $set.=",paidamt='$paidamt'"; $set.=",status='$response[status]'"; $set.=",longurl='$response[longurl]'"; $set.=",ip_address='$ip'"; $set.=",created_at='$dat'"; $set.=",modified_at='$response[modified_at]'"; $sett="pay_userid='$profileid'"; $sett.=",pay_user='$user_id'"; $sett.=",pay_email='$user_email'"; $sett.=",randomkey ='$rankey'"; $sett.=",pay_phone='$user_phone'"; $sett.=",pay_product='$product'"; $sett.=",pay_amount='$amount'"; $sett.=",pay_qty='$qty'"; $sett.=",pay_type='Instamojo'"; $sett.=",pay_txnid='$response[id]'"; $sett.=",pay_date='$dat'"; $sett.=",pay_ip='$ip'"; $com_obj->insertrec("insert into mlm_mempayments set $set"); $com_obj->insertrec("insert into mlm_purchase set $sett"); 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> </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> </td></tr> <tr height='40'> <td align='right' style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;background-color:#006699; color: #000000;'>© Copyright " .date("Y")." "."<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> </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> </td></tr> <tr height='40'> <td align='right' style='font-family: Arial, Helvetica, sans-serif;font-size: 10px;background-color:#006699; color: #000000;'>© Copyright " .date("Y")." "."<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 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;"> <h4 class="navbar-inner" style="color:#091647; line-height:40px; margin-top: -50px; margin-bottom: 7px;">Generate Pin</h4> <?php $ismemExpired=extra::ismemExpired($_SESSION['profileid']); if($ismemExpired) { $renewIn=extra::renewIn(); ?> <form action="" method="post"> <table cellpadding="7" cellspacing="0" border="0" width="100%"> <?php if($renewIn<=10) { ?> <tr><td colspan="3" align="center" style="color:red; font-weight:bold;">Your plan has been expired. You need to upgrage your plan within <?php echo $renewIn." days"; ?> to continue using our service.</td></tr> <?php } ?> <?php if(isset($_REQUEST['pyerr'])) { ?> <tr><td colspan="3" align="center" style="color:red; font-weight:bold;">Upgrade failed. Please try again!</td></tr> <?php } ?> <tr> <td width="40%" align="right"><strong>Choose package</strong></td> <td width="7" align="center">:</td> <td width="50%"> <?php $sql=mysql_query("select * from mlm_membership order by id ASC"); ?> <select name="package" onchange="return detajax(this.value);"> <option value="">select</option> <?php while($rowfetch=mysql_fetch_array($sql)) { ?> <option value="<?php echo $rowfetch['id']; ?>"><?php echo $rowfetch['membership_name']; ?></option> <?php } ?> </select> </td> </tr> <tr> <td colspan="4"> <div id="resp"></div> </td> </tr> <tr> <td colspan="3" align="center"> <input type="submit" name="__upd" class="greenbtn" value="Generate Pin"/> </td> </tr> </table> </form> <?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>