Advertisement
Samdan

Untitled

May 5th, 2018
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 50.50 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <?php $this->load->view('user/common_style'); ?>
  5.     <link rel="stylesheet" href="<?php echo base_url();?>styles/fonts/Socialico/stylesheet.css">
  6.     <link href="<?php echo base_url();?>styles/css/table.css" type="text/css" rel="stylesheet" />
  7.     <script src="<?php echo base_url();?>styles/js/modernizr.js"></script>
  8. </head>
  9. <body>
  10.     <div id="preloader">
  11.         <div class="preloader_spinner"> </div>
  12.     </div>
  13.     <section class="body_wrapper home_one">
  14.  
  15.         <?php
  16.             $this->load->view('user/header');
  17.         ?>
  18.            
  19.         <?php
  20.             $this->load->view('user/login_header');
  21.             $currency_info = defaultcurrency();
  22.             $pays= $form_payment['payment_id'];
  23.             $curunit= $form_payment['currency_unit'];
  24.  
  25.             //print_r($form_payment);
  26.  
  27.             $currency_det=$this->db->query("select * from payment_currency");
  28.             $currency_dat=$currency_det->result();
  29.             $usd_decimal=$currency_dat[0]->deimal_point;
  30.             $usd_name=$currency_dat[0]->currency_unit;
  31.             $btc_decimal=$currency_dat[1]->deimal_point;
  32.             $btc_name=$currency_dat[1]->currency_unit;
  33.             $eth_decimal=$currency_dat[2]->deimal_point;
  34.             $eth_name=$currency_dat[2]->currency_unit;
  35.             $mnt_decimal=$currency_dat[3]->deimal_point;
  36.             $mnt_name=$currency_dat[3]->currency_unit;
  37.  
  38.             if($curunit=='1')
  39.             {
  40.                 $pay_curr="USD";
  41.                 $decimal=$usd_decimal;
  42.             }
  43.             else if($curunit=='2')
  44.             {
  45.                 $pay_curr="BTC";
  46.                 $decimal=$btc_decimal;
  47.             }
  48.             else if($curunit=='3')
  49.             {
  50.                 $pay_curr="ETH";
  51.                 $decimal=$eth_decimal;
  52.             }
  53.             else if($curunit=='4')
  54.             {
  55.                 $pay_curr="MNT";
  56.                 $decimal=$mnt_decimal;
  57.             }
  58.             else
  59.             {
  60.                 $pay_curr="USD";
  61.                 $decimal=$usd_decimal;
  62.             }
  63.  
  64.     ?>
  65.   <style type="text/css">
  66.      
  67.  
  68.   </style>
  69.   <section class="dmain">
  70.     <div class="container">
  71.         <div class="row">
  72.            
  73.             <div class="col-lg-2"></div>
  74.           <div class="col-lg-8">
  75.                 <div class="gry clearfix ">
  76.                     <div class="profilesub">
  77.                         <h2><?php echo $this->lang->line('lbl_your');?> <span><?php echo $this->lang->line('lbl_summary');?></span></h2>
  78.                     </div>
  79.                     <div class="clearfix"></div>
  80.                     <div class="col-sm-12">
  81.                         <div class="profilesub">
  82.                         <div class="col-sm-7">
  83.                          <h2><?php echo $this->lang->line('lbl_total_deposit_amount');?>  </h2>
  84.                         </div>
  85.                         <div class="col-sm-5">
  86.                         <h2><span style="float:right"><?php echo number_format($form_deposit['amount'],$decimal).' '.strtoupper($pay_curr); ?></span></h2>
  87.                         </div>
  88.                         <div style="clear:both;"><br></div>
  89.                         <div class="col-sm-7">
  90.                             <h2><?php echo $this->lang->line('lbl_payment_name');?></h2>
  91.                         </div>
  92.                         <div class="col-sm-5">
  93.                         <h2><span style="float:right"><?php echo ucfirst($form_payment['payment_name']); ?></span> </h2>
  94.                      </div>
  95.                      <div class="clearfix"></div>
  96.                     <?php
  97.                     $currency_up=strtolower($currency_info->currency_unit);
  98.                     $currency_det=$this->db->query("select * from payment_currency");
  99.                     $currency_dat=$currency_det->result();
  100.                     $btc_decimal=$currency_dat[1]->deimal_point;
  101.                     $btc_name=$currency_dat[1]->currency_unit;
  102.                     if(isset($form_payment['pay_mode']))
  103.                     {
  104.                         if($form_payment['payment_id']=='2' && $form_payment['pay_mode']=='block')
  105.                         {  
  106.                             $flag=0;
  107.                             if($form_payment['coin_mode']=='BTC')
  108.                             {
  109.                                 //$data_amt=file_get_contents("https://blockchain.info/tobtc?currency=USD&value=".$form_deposit['amount']);
  110.                                 /*$url = "https://api.cryptonator.com/api/ticker/".$currency_up."-btc";
  111.                                  $json = file_get_contents($url);
  112.                                  $data_api = json_decode($json, TRUE);
  113.                                  $data_amts=$data_api['ticker']['price'];
  114.                                  $data_amt= $data_amts*$form_deposit['amount'];*/
  115.                                  $data_amt=number_format($form_deposit['amount'],$btc_decimal);
  116.                                  $data_amt=str_replace(",",'',$data_amt);
  117.                             }
  118.                             if($form_payment['coin_mode']=='LTC')
  119.                             {
  120.                                 $url = "https://api.cryptonator.com/api/ticker/".$currency_up."-ltc";
  121.                                 $json = file_get_contents($url);
  122.                                 $data_api = json_decode($json, TRUE);
  123.                                 $data_amts=$data_api['ticker']['price'];
  124.                                 $data_amt= $data_amts*$form_deposit['amount'];
  125.                                 $data_amt=number_format($data_amt,$btc_decimal);
  126.                                 $data_amt=str_replace(",",'',$data_amt);
  127.  
  128.                                
  129.                                 //$data_amt=file_get_contents("https://blockchain.info/tobtc?currency=USD&value=".$form_deposit['amount']);
  130.                             }
  131.                             if($form_payment['coin_mode']=='DOGE')
  132.                             {
  133.                                 $url = "https://api.cryptonator.com/api/ticker/".$currency_up."-doge";
  134.                                 $json = file_get_contents($url);
  135.                                 $data_api = json_decode($json, TRUE);
  136.                                 $data_amts=$data_api['ticker']['price'];
  137.                                 $data_amt= $data_amts*$form_deposit['amount'];
  138.                                 $data_amt= $data_amts*$form_deposit['amount'];
  139.                                 $data_amt=number_format($data_amt,$btc_decimal);
  140.                                 $data_amt=str_replace(",",'',$data_amt);
  141.                                 //$data_amt=file_get_contents("https://blockchain.info/tobtc?currency=USD&value=".$form_deposit['amount']);
  142.                             }
  143.                             $user=$this->session->userdata('uusersid');
  144.                             $find_addr=$this->db->query("select * from deposit_address where status='0' and typ='1' and uuserid='$user'");
  145.                             $rest=$find_addr->num_rows();
  146.                             if($rest >0)
  147.                             {
  148.                                 $rest=$find_addr->result();
  149.                                 $getaddress=$rest[0]->btc_address;
  150.                             }
  151.                             else
  152.                             {
  153.                                 $wallet_addr = $form_payment['email'];
  154.                                 $wallet_pass = $form_payment['ipn_secret_block'];
  155.                                 $wallet_api  = $form_payment['api_key'];
  156.                                 $json_url = "https://block.io/api/v2/get_new_address/?api_key=$wallet_api";
  157.                                 $ch = curl_init();            
  158.                                 curl_setopt($ch,CURLOPT_URL,$json_url);
  159.                                 curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  160.                                 $json_data=curl_exec($ch);
  161.                                 curl_close($ch);
  162.                                 if($json_data)
  163.                                 {  
  164.                                    $output = json_decode($json_data);
  165.                                    if($output->data)
  166.                                    {                          
  167.                                        $paid = $output->data;        
  168.                                        foreach ($paid as $row => $value)
  169.                                        {      
  170.                                              if($row=='address')
  171.                                              {    
  172.                                                 $getaddress = $value;
  173.                                                 $this->db->query("insert into deposit_address(btc_address,amount,status,uuserid,typ)values('$getaddress','0','0','$user','1')");
  174.                                                }
  175.                                                if($row=='error_message')  
  176.                                                {
  177.                                                    $error = $value;
  178.                                                    echo "<b style='color:red;'>".$error."</b><br>";
  179.                                                }    
  180.                                            }    
  181.                                        }  
  182.                                    }
  183.                                }
  184.  
  185.                    
  186.                     ?>
  187.                     <br>
  188.                     <h5><?php echo $this->lang->line('lbl_attend');?></h5>
  189.                     <br><BR>
  190.                         <li class="divclas">- <?php echo $this->lang->line('lbl_pay_amt');?> <b style='color:green;'><?php echo $data_amt;?></b> <?php echo $form_payment['coin_mode'];?></li>
  191.                                   <li class="divclas">- <?php echo $this->lang->line('lbl_pay_addr');?>.  <b style='color:green;'><?php echo $getaddress;?></b></li>
  192.                                   <li class="divclas">- <?php echo $this->lang->line('lbl_pay_det');?>. </li>
  193.                                   <div style="clear:both;height:50px;"><br></div>
  194.                     <?php
  195.                     }
  196.  
  197.                     if($form_payment['payment_id']=='2' && $form_payment['pay_mode']=='address')
  198.                     {
  199.                         $user=$this->session->userdata('uusersid');
  200.                         $find_addr=$this->db->query("select * from btc_addresses where status='2' and typ='1' and uuserid='$user'");
  201.                         $rest=$find_addr->num_rows();
  202.                         if($rest >0)
  203.                         {
  204.                             $rest=$find_addr->result();
  205.                             $getaddress=$rest[0]->payment_value;
  206.                         }
  207.                         else
  208.                         {
  209.                            $find_addr=$this->db->query("select * from btc_addresses where status='1' and typ='1' and uuserid='0'");
  210.                            $rest=$find_addr->result();
  211.                            $getaddress=$rest[0]->payment_value;
  212.                            $pid=$rest[0]->pid;
  213.                            $this->db->query("update btc_addresses set status='2',uuserid='$user' where pid='$pid'");
  214.                         }
  215.                         ?>
  216.                           <div class="refrrinfo clearfix" style="background:none;">
  217.                           <div style="clear:both;"><br></div>
  218.                             <h3>Make a payment through below mentioned address </h3>
  219.                             <div style="clear:both;"><br></div>
  220.                             <div class="col-xs-8">
  221.                              <input id="link01" type="text" class="rtu"  value="<?php echo $getaddress; ?>" placeholder="Your Address" style="border-radius:0px;height:50px;" readonly/></div>
  222.                                 <div class="col-xs-4">
  223.                                 <button style="width:auto;" data-copytarget="#link01" class="copy">Copy</button>
  224.                                 </div>
  225.                            <div style="clear:both;"><Br></div>
  226.                             <h3>QR CODE</h3>
  227.                             <div align="center">
  228.                             <img src="https://api.qrserver.com/v1/create-qr-code/?size=350x170&data=<?php echo $getaddress;?>">
  229.                             </div>
  230.                             <div style="clear:both;"><br>
  231.                            
  232.                             </div>
  233.                             </div>
  234.  
  235.                         <?php
  236.  
  237.  
  238.                     }
  239.  
  240.                 }
  241.                 ?>
  242.  
  243.                         <?php
  244.                         $flag=0;
  245.                         if($form_payment['payment_name']=='bitcoin')
  246.                         {
  247.                             if($form_payment['pay_mode']!='coin')
  248.                             {
  249.                                 $flag=1;
  250.                             }
  251.                            
  252.                         }
  253.                         if($form_payment['payment_name']=='etherum')
  254.                             $flag=1;
  255.                      ?>
  256.                      <?php
  257.                      if($flag!='1')
  258.                      {
  259.                       ?>
  260.                         <div class="col-xs-6 cmmn">
  261.                             <div class="contact_page_btn">
  262.                             <input value="Cancel" name="submit" onclick="goBack()" type="submit">
  263.                             </div>
  264.                         </div>
  265.                      <?php
  266.                         }
  267.                      ?>
  268.                        
  269.                         <?php
  270.                         if($flag!='1')
  271.                         {
  272.                         ?>
  273.                          <div class="col-xs-6 cmmn">
  274.                          <div class="contact_page_btn">
  275.  
  276.                         <?php
  277.                         }
  278.                         ?>
  279.  
  280.  
  281.                    
  282.                     <?php
  283.                         // check user reinvetment
  284.                         if(isset($form_payment['reinvest'])){
  285.                     ?>
  286.                             <form action="<?php echo $form_payment['action'];?>" method="post" target="_self" style="display:block;" >
  287.                                 <input type="hidden" name="item_name" value="Deposit">
  288.                                
  289.                                 <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>">
  290.                                 <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
  291.                                 <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
  292.                                 <input type="hidden" name="uusersid"  value="<?php echo $form_deposit['uusersid'];?>"/>
  293.                                 <input type="hidden" name="planid"  value="<?php echo $form_deposit['planid'];?>"/>
  294.                                 <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  295.                                 <input type="hidden" name="payment_name"  value="<?php echo $form_payment['payment_name'];?>"/>
  296.                                 <input type="hidden" name="payment_id"  value="<?php echo $form_payment['payment_id'];?>"/>
  297.                                 <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  298.  
  299.                             </form>
  300.                     <?php
  301.                         } else {
  302.  
  303.                         // online payment gateway
  304.                         // pr($form_payment);
  305.                         if($form_payment['payment_name']=='paypal') {
  306.                       ?>
  307.                        
  308.                         <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_self" style="display:block;" >
  309.                             <input type="hidden" name="cmd" value="_xclick" />
  310.                             <input type="hidden" name="business" value="<?php echo $form_payment['email'];?>" />
  311.                             <input type="hidden" name="item_name" value="Deposit">
  312.                             <input type="hidden" name="currency_code" value="<?php echo strtoupper($pay_curr); ?>" />
  313.                             <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>">
  314.                             <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
  315.                             <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
  316.                             <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>"/>
  317.                             <input type="hidden" name="custom"  value="<?php echo $form_deposit['deposit_id'];?>" id="custom">
  318.                             <input type="hidden" name="charset" value="UTF%252d8"/>
  319.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  320.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  321.                         </form>
  322.  
  323.                     <?php } else if($form_payment['payment_name']=='payza') { ?>
  324.                        
  325.  
  326.                         <form method="post" action="https://secure.payza.com/checkout">
  327.                             <input type="hidden" name="ap_merchant" value="<?php echo $form_payment['account_id']; ?>"/>
  328.                             <input type="hidden" name="ap_purchasetype" value="item"/>
  329.                             <input type="hidden" name="ap_itemname" value="Investment from <?php echo $form_deposit['username'];?>"/>
  330.                             <input type="hidden" name="ap_amount" value="<?php echo $form_deposit['amount']; ?>"/>
  331.                             <input type="hidden" name="ap_currency" value="<?php echo strtoupper($pay_curr); ?>"/>
  332.                             <input type="hidden" name="ap_description" value=""/>
  333.                             <input type="hidden" name="ap_returnurl" value="<?php echo $form_payment['success_url'];?>"/>
  334.                             <input type="hidden" name="ap_cancelurl" value="<?php echo $form_payment['cancel_url'];?>"/>
  335.                             <input type="hidden" name="ap_alerturl" value="<?php echo $form_payment['ipn_url'];?>"/>
  336.                             <input type="hidden" name="apc_1" value="<?php echo $form_deposit['uusersid'];?>"/>
  337.                             <input type="hidden" name="apc_2" value="<?php echo $form_deposit['deposit_id'];?>"/>
  338.                             <input type="hidden" name="apc_3" value="<?php echo $form_deposit['amount'];?>"/>
  339.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  340.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  341.                         </form>
  342.  
  343.                     <?php } else if($form_payment['payment_name']=='payeer') { ?>
  344.  
  345.                         <?php
  346.                             $payid = 28;
  347.                             $m_shop = $form_payment['shop_id'];
  348.                             $m_orderid = $form_deposit['deposit_id'];
  349.                             $m_amount = number_format($form_deposit['amount'], 2);
  350.                             $m_curr = strtoupper($pay_curr);
  351.                             $m_desc = base64_encode('Amount Deposited');
  352.                             $m_key = $form_payment['secret_key'];
  353.                            
  354.                             // $m_orderid = $form_deposit['deposit_id'];
  355.                            
  356.                             $arHash = array(
  357.                                 $m_shop,
  358.                                 $m_orderid,
  359.                                 $m_amount,
  360.                                 $m_curr,
  361.                                 $m_desc,
  362.                                 $m_key
  363.                             );
  364.                                    
  365.                             $sign = strtoupper(hash('sha256', implode(':', $arHash)));
  366.                         ?>
  367.  
  368.                         <form method="GET" action="//payeer.com/merchant/">
  369.                             <input type="hidden" name="m_shop" value="<?=$m_shop?>">
  370.                             <input type="hidden" name="m_orderid" value="<?=$m_orderid?>">
  371.                             <input type="hidden" name="m_amount" value="<?=$m_amount?>">
  372.                             <input type="hidden" name="m_curr" value="<?=$m_curr?>">
  373.                             <input type="hidden" name="m_desc" value="<?=$m_desc?>">
  374.                             <input type="hidden" name="m_sign" value="<?=$sign?>">
  375.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  376.                             <input type="submit" name="m_process" class="black_btn" value="Click here to Invest"  />
  377.                         </form>
  378.  
  379.                     <?php }
  380.  
  381.  
  382.                     else if($form_payment['payment_name']=='perfectmoney') {
  383.  
  384.  
  385.  
  386.                         ?>
  387.  
  388.                         <?php
  389.                             //HASH STRING
  390.  
  391.  
  392.                             $stamp  = time();
  393.  
  394.                             $alt_hash = $form_payment['alternate_password'];
  395.                             $md5_hash_alt = strtoupper(md5($alt_hash));
  396.  
  397.                             /*$string = $form_payment['account_number'].':'. $form_deposit['amount'].':'.strtoupper($currency_info->currency_unit).':'. $form_payment['account_name'];*/
  398.  
  399.                             $string = $form_payment['account_number'].':'. $form_deposit['amount'].':'.strtoupper($currency_info->currency_unit).':'. $form_payment['account_name'].':'.$md5_hash_alt;
  400.  
  401.                             $hash   = strtoupper(md5($string));
  402.                         ?>
  403.  
  404.                         <form action="https://perfectmoney.is/api/step1.asp" method="POST">
  405.                             <input type="hidden" name="PAYEE_ACCOUNT" value="<?php echo $form_payment['account_number']; ?>" >
  406.                             <input type="hidden" name="PAYEE_NAME" value="<?php echo $form_payment['account_number']; ?>">
  407.                             <input type="hidden" name="PAYMENT_ID" value="<?php echo $form_deposit['deposit_id']; ?>">
  408.                             <input type="hidden" name="PAYMENT_AMOUNT" value="<?php echo $form_deposit['amount']; ?>">
  409.                             <input type="hidden" name="PAYMENT_UNITS" value="<?php echo strtoupper($pay_curr); ?>">
  410.                             <input type="hidden" name="STATUS_URL" value='<?php echo $form_payment['ipn_url'];?>'>
  411.                             <input type="hidden" name="PAYMENT_URL" value='<?php echo $form_payment['success_url'];?>'>
  412.                             <input type="hidden" name="NOPAYMENT_URL" value='<?php echo $form_payment['cancel_url'];?>' >
  413.                             <input type="hidden" name="MEMO" value="Purchage" class="pmuser1">
  414.                             <input type="hidden" name="V2_HASH" value="<?=$hash;?>">
  415.                             <input type="hidden" name="code"  class="apc_1"  value="<?php echo $form_deposit['deposit_id']; ?>">
  416.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  417.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  418.                         </form>
  419.  
  420.                     <?php } else if($form_payment['payment_name']=='okpay') { ?>
  421.  
  422.                         <?php $customvalues = $form_deposit['uusersid'].','.$form_deposit['deposit_id'].','.$form_deposit['amount'];?>
  423.  
  424.                         <form  method="post" action="https://www.okpay.com/process.html">
  425.                             <input type="hidden" name="ok_receiver" value="<?php echo $form_payment['merchant_id'];?>"/>
  426.                             <input type="hidden" name="ok_item_1_name" value="Investment from <?php echo $form_deposit['username'];?>"/>
  427.                             <input type="hidden" name="ok_item_1_price" value="<?php echo $form_deposit['amount'];?>"/>
  428.                             <input type="hidden" name="ok_item_1_custom_2_value" value="<?php echo $customvalues;?>"/>
  429.                             <input type="hidden" name="ok_currency" value="<?php echo strtoupper($pay_curr); ?>"/>
  430.                             <input type="hidden" name="ok_return_success" value="<?php echo $form_payment['success_url'];?>" />
  431.                             <input type="hidden" name="ok_return_fail" value="<?php echo $form_payment['cancel_url'];?>" />
  432.                             <input type="hidden" name="ok_ipn" value="<?php echo $form_payment['ipn_url'];?>" />
  433.                             <input type="hidden" name="ok_payment_methods" value="SOF"/>
  434.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  435.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  436.                         </form>
  437.  
  438.                     <?php } else if($form_payment['payment_name']=='pexpay') { ?>
  439.  
  440.                         <form action='https://www.pexpay.com/payments/autopay.php' method='post' target='_top' name='pexpay-purchase-form'>
  441.                             <input type='hidden' name='payee_account' value='<?php echo $form_payment['account_number'];?>'>
  442.                             <input type='hidden' name='amount' value='<?php echo $form_deposit['amount'];?>'>
  443.                             <input type='hidden' name='memo' value='Investment from <?php echo $form_deposit['username'];?>'>
  444.                             <input type='hidden' name='return_url' value='<?php echo $form_payment['success_url'];?>'>
  445.                             <input type='hidden' name='cancel_url' value='<?php echo $form_payment['cancel_url'];?>'>
  446.                             <input type='hidden' name='notify_url' value='<?php echo $form_payment['ipn_url'];?>'>
  447.                            
  448.                             <input type='hidden' name='extra1' value='<?php echo $form_deposit['uusersid'];?>'>
  449.                             <input type='hidden' name='extra2' value='<?php echo $form_deposit['deposit_id'];?>'>
  450.                             <input type='hidden' name='extra3' value='<?php echo $form_deposit['amount'];?>'>
  451.                             <input type='hidden' name='extra4' value='<?php echo $compound;?>'>
  452.                             <input type='hidden' name='extra5' value='<?php echo $payid;?>'>
  453.                             <input type='hidden' name='test' value='on'>
  454.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  455.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  456.                         </form>
  457.  
  458.                     <?php } else if($form_payment['payment_name']=='solidtrustpay') { ?>
  459.  
  460.                         <form method="post" action="https://solidtrustpay.com/handle.php">
  461.                             <input type="hidden" name="merchantAccount" value="<?php echo $form_payment['account_login'];?>">
  462.                             <input type="hidden" name="sci_name" value="<?php echo $form_payment['sci_button_name'];?>">
  463.                             <input type="hidden" name="amount" value="<?php echo $form_deposit['amount'];?>">
  464.                             <input type="hidden" name="testmode" value="ON">
  465.                             <input type="hidden" name="item_id" value="Investment from <?php echo $form_deposit['username'];?>">
  466.                             <input type="hidden" name="return_url" value="<?php echo $form_payment['success_url'];?>">
  467.                             <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>">
  468.                             <input type="hidden" name="cancel_url" value="<?php echo $form_payment['cancel_url'];?>">
  469.                             <input type="hidden" name="SUGGESTED_MEMO" value="Investment from <?php echo $form_deposit['username'];?>">
  470.                             <input type="hidden" name="user1" value="<?php echo $form_deposit['uusersid'];?>">
  471.                             <input type="hidden" name="user2" value="<?php echo $form_deposit['deposit_id'];?>">
  472.                             <input type="hidden" name="user3" value="<?php echo $form_deposit['amount'];?>">
  473.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  474.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  475.                         </form>
  476.  
  477.                     <?php } else if($form_payment['payment_name']=='skrill') { ?>
  478.                        
  479.                         <form action="https://www.moneybookers.com/app/payment.pl?p=zhyip" method="post">
  480.                             <input type="hidden" name="pay_to_email" value="<?php echo $form_payment['email']; ?>" />
  481.                             <input type="hidden" name="recipient_description" value="Investment from <?php echo $form_deposit['username'];?>" />
  482.                             <input type="hidden" name="transaction_id" value="<?php echo $form_deposit['uusersid'];?>" />
  483.                             <input type="hidden" name="return_url" value="<?php echo $form_payment['success_url']; ?>" />
  484.                             <input type="hidden" name="cancel_url" value="<?php echo $form_payment['cancel_url']; ?>" />
  485.                             <input type="hidden" name="status_url" value="<?php echo $form_payment['ipn_url']; ?>" />
  486.                             <!-- <input type="hidden" name="language" value="<?php echo $language; ?>" />
  487.                             <input type="hidden" name="logo_url" value="<?php echo $logo; ?>" /> -->
  488.                            
  489.                             <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>" />
  490.                             <input type="hidden" name="currency" value="<?php echo strtoupper($pay_curr); ?>" />
  491.                             <input type="hidden" name="detail1_text" value="Investment from <?php echo $form_deposit['username'];?>" />
  492.                             <input type="hidden" name="merchant_fields" value="order_id" />
  493.                             <input type="hidden" name="order_id" value="<?php echo $form_deposit['deposit_id'];?>" />
  494.                             <!-- <input type="hidden" name="platform" value="<?php echo $platform; ?>" /> -->
  495.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  496.                             <input type="submit" id="send" value="Click here to Invest" class="btn btn-primary" name="Send" />
  497.                         </form>
  498.  
  499.                     <?php } else if($form_payment['payment_name']=='hdmoney') { ?>
  500.  
  501.                         <form action="https://www.hd-money.com/sci/Payment.aspx" method="post">
  502.                             <input type="hidden" name="hd_recipient" value="<?php echo $form_payment['account_number'];?>" />
  503.                             <input type="hidden" name="hd_sci_name" value="<?php echo $form_payment['account_name'];?>" />
  504.                             <input type="hidden" name="hd_amount" value="<?php echo $form_deposit['amount']; ?>" />
  505.                             <input type="hidden" name="hd_item_name" value="<?php echo $form_deposit['planid'];?>" />
  506.                             <input type="hidden" name="hd_description" value="Investment from <?php echo $form_deposit['username'];?>" />
  507.                             <input type="hidden" name="hd_callback_url" value="<?php echo $form_payment['ipn_url'];?>" />
  508.                             <input type="hidden" name="hd_callback_method" value="post" />
  509.                             <input type="hidden" name="hd_success_url" value="<?php echo $form_payment['success_url'];?>" />
  510.                             <input type="hidden" name="hd_failure_url" value="<?php echo $form_payment['cancel_url'];?>" />
  511.                             <input type="hidden" name="hd_varX" value="<?php echo $form_deposit['uusersid'];?>" />
  512.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  513.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send"></li>
  514.                         </form>
  515.  
  516.                     <?php } else if($form_payment['payment_name']=='webmoney') { ?>
  517.                        
  518.                         <form method="POST" action="https://merchant.wmtransfer.com/lmi/payment.asp">
  519.                             <input type="hidden" name="LMI_PAYEE_PURSE" value="<?php echo $form_payment['purse_id'];?>">
  520.                             <input type="hidden" name="LMI_PAYMENT_AMOUNT" value="<?php echo $form_deposit['amount'];?>">
  521.                             <input type="hidden" name="LMI_PAYMENT_DESC" value="Investment from <?php echo $form_deposit['username'];?>">
  522.                             <input type="hidden" name="LMI_MODE" value="1">
  523.                             <input type="hidden" name="LMI_RESULT_URL" value="<?php echo $form_payment['ipn_url'];?>">
  524.                             <input type="hidden" name="LMI_SUCCESS_URL" value="<?php echo $form_payment['success_url'];?>">
  525.                             <input type="hidden" name="LMI_FAIL_URL" value="<?php echo $form_payment['cancel_url'];?>">
  526.                             <input type="hidden" name="FIELD_1" value="<?php echo $form_deposit['uusersid'];?>">
  527.                             <input type="hidden" name="FIELD_2" value="<?php echo $form_deposit['planid'];?>">
  528.                             <input type="hidden" name="FIELD_3" value="<?php echo $form_deposit['amount'];?>">
  529.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  530.                             <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
  531.                         </form>
  532.  
  533.                     <?php } else if($form_payment['payment_name']=='bankwire') { ?>
  534.  
  535.                         <form action="<?php echo base_url();?>user/deposit/bankwire" method="post" target="_self" style="display:block;" >
  536.                             <input type="hidden" name="item_name" value="Deposit">
  537.                             <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>">
  538.                             <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
  539.                             <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
  540.                             <input type="hidden" name="uusersid"  value="<?php echo $form_deposit['uusersid'];?>"/>
  541.                             <input type="hidden" name="planid"  value="<?php echo $form_deposit['planid'];?>"/>
  542.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  543.                             <input type="hidden" name="payment_name"  value="<?php echo $form_payment['payment_name'];?>"/>
  544.                             <input type="hidden" name="payment_id"  value="<?php echo $form_payment['payment_id'];?>"/>
  545.                             <input type="hidden" name="currency_id"  value="<?php echo $form_payment['currency_unit'];?>"/>
  546.                             <input type="submit" id="send"  class="black_btn" value="Click here to Invest" name="Send">
  547.                         </form>
  548.  
  549.                     <?php
  550.                         }
  551.                         else if($form_payment['payment_name']=='bitcoin')
  552.                         {
  553.                         if(isset($form_payment['pay_mode'])){
  554.  
  555.                             if($form_payment['pay_mode']=='coin')
  556.                             {
  557.  
  558.                         ?>
  559.  
  560.                         <form method="post" action="https://www.coinpayments.net/index.php" role="form" id="coform">
  561.                             <input type="hidden" value="_pay" name="cmd">
  562.                             <input type="hidden" value="1" name="reset">
  563.                             <input type="hidden" name="merchant" value="<?php echo $form_payment['merchant_id'];?>">
  564.                             <input type="hidden" name="currency" value="<?php echo strtoupper($pay_curr); ?>">
  565.                             <input type="hidden" name="amountf" value="<?php echo $form_deposit['amount']; ?>">
  566.                             <input type="hidden" name="item_name" value="Deposit">
  567.                             <input type="hidden" name="item_number" value="<?php echo $form_deposit['deposit_id'];?>">
  568.                             <input type="hidden" name="on1" value="<?php echo $form_deposit['uusersid'];?>">
  569.                             <input type="hidden" name="allow_currencies" value="BTC">
  570.                             <input type="hidden" name="want_shipping" value="0">
  571.                             <input type=hidden name="success_url" value="<?php echo $form_payment['success_url'];?>">
  572.                             <input type=hidden name="notify_url" value="<?php echo $form_payment['ipn_url'];?>">
  573.                             <input type=hidden name="cancel_url" value="<?php echo $form_payment['cancel_url'];?>">
  574.                             <input type="submit" name="button" id="button" value="Deposit" class="button" />
  575.                             <input type="button" name="button" id="button" onclick="window.location='deposit.php'" value="Cancel" class="button" />
  576.                             <input type="submit" id="send"  class="black_btn" value="Click here to Invest" name="Send">
  577.                        
  578.                         </form>
  579.                         <?php
  580.                             }
  581.                             else
  582.                             {
  583.                                 ?>
  584.                                
  585.                                
  586.                             <form action="<?php echo base_url();?>user/deposit/btc" method="post" target="_self" style="display:block;" >
  587.                             <input type="hidden" name="item_name" value="Deposit">
  588.                             <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>">
  589.                             <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
  590.                             <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
  591.                             <input type="hidden" name="uusersid"  value="<?php echo $form_deposit['uusersid'];?>"/>
  592.                             <input type="hidden" name="planid"  value="<?php echo $form_deposit['planid'];?>"/>
  593.                             <input type="hidden" name="depositid"  value="<?php echo $form_deposit['deposit_id'];?>"/>
  594.                             <input type="hidden" name="payment_id"  value="<?php echo $form_payment['payment_id'];?>"/>
  595.                             <input type="hidden" name="currency_id"  value="<?php echo $form_payment['currency_unit'];?>"/>
  596.                             <input type="submit" id="send"  class="black_btn" value="Click here to Invest" name="Send">
  597.                         </form>
  598.  
  599.  
  600.                                 <?php
  601.  
  602.                             } }
  603.  
  604.                         ?>
  605.  
  606.                     <?php } else if($form_payment['payment_name']=='advcash') { ?>
  607.  
  608.                         <?php
  609.                             $ac_account_email = $form_payment['ac_account_email'];
  610.                             $ac_sci_name = $form_payment['ac_sci_name'];
  611.                             $ac_amount = $form_deposit['amount'];
  612.                             $ac_currency = strtoupper($currency_info->currency_unit);
  613.                             $secret = $form_payment['ac_api_pwd'];
  614.                             $ac_order_id = $form_deposit['deposit_id'];
  615.  
  616.                             $sign_hash = hash('sha256', implode(":", array(
  617.                                 $ac_account_email,
  618.                                 $ac_sci_name,
  619.                                 $ac_amount,
  620.                                 $ac_currency,
  621.                                 $secret,
  622.                                 $ac_order_id
  623.                             )));
  624.                         ?>
  625.  
  626.                             <form method="post" action="https://wallet.advcash.com/sci/" role="form" id="coform">
  627.                                 <input type="hidden" name="ac_account_email" value="<?php echo $form_payment['ac_account_email'];?>" />
  628.                                 <input type="hidden" name="ac_sci_name" value="<?php echo $form_payment['ac_sci_name'];?>" />
  629.                                 <input type="hidden" name="ac_amount" value="<?php echo $form_deposit['amount']; ?>" />
  630.                                 <input type="hidden" name="ac_currency" value="<?php echo strtoupper($pay_curr); ?>" />
  631.                                 <input type="hidden" name="ac_order_id" value="<?php echo $form_deposit['deposit_id'];?>" />
  632.                                 <input type="hidden" name="ac_sign" value="<?php echo $sign_hash;?>" />
  633.                                 <!-- Optional Fields -->
  634.                                 <input type="hidden" name="ac_success_url" value="<?php echo $form_payment['success_url'];?>" />
  635.                                 <input type="hidden" name="ac_success_url_method" value="POST" />
  636.                                 <input type="hidden" name="ac_fail_url" value="<?php echo $form_payment['cancel_url'];?>" />
  637.                                 <input type="hidden" name="ac_fail_url_method" value="POST" />
  638.                                 <input type="hidden" name="ac_status_url" value="<?php echo $form_payment['ipn_url'];?>" />
  639.                                 <input type="hidden" name="ac_status_url_method" value="POST" />
  640.                                 <input type="hidden" name="ac_comments" value="Comment" />
  641.                                 <input type="hidden" name="operation_id" value="<?php echo $form_deposit['uusersid'];?>">
  642.                                 <input type="submit" name="button" id="button" value="Deposit" class="button" />
  643.                                 <input type="button" name="button" id="button" onclick="window.location='deposit.php'" value="Cancel" class="button" />
  644.                             </form>
  645.  
  646.                     <?php } else if($form_payment['payment_name']=='ether') { ?>
  647.  
  648.                         <form method="post" action="https://www.coinpayments.net/index.php" role="form" id="coform">
  649.                             <input type="hidden" value="_pay" name="cmd">
  650.                             <input type="hidden" value="1" name="reset">
  651.                             <input type="hidden" name="merchant" value="<?php echo $form_payment['merchant_id'];?>">
  652.                             <input type="hidden" name="currency" value="ETH">
  653.                             <input type="hidden" name="amountf" value="<?php echo $form_deposit['amount']; ?>">
  654.                             <input type="hidden" name="item_name" value="Deposit">
  655.                             <input type="hidden" name="item_number" value="<?php echo $form_deposit['deposit_id'];?>">
  656.                             <input type="hidden" name="on1" value="<?php echo $form_deposit['uusersid'];?>">
  657.                             <!-- <input type="hidden" name="allow_currencies" value=""> -->
  658.                             <input type="hidden" name="want_shipping" value="0">
  659.                             <input type=hidden name="success_url" value="<?php echo $form_payment['success_url'];?>">
  660.                             <input type=hidden name="notify_url" value="<?php echo $form_payment['ipn_url'];?>">
  661.                             <input type=hidden name="cancel_url" value="<?php echo $form_payment['cancel_url'];?>">
  662.                             <input type="submit" name="button" id="button" value="Deposit" class="button" />
  663.                             <input type="button" name="button" id="button" onclick="window.location='deposit.php'" value="Cancel" class="button" />
  664.                         </form>
  665.  
  666.                    <?php }
  667.  
  668.                             else if($form_payment['payment_name']=='etherum') {
  669.  
  670.  
  671.                             $url = "https://api.cryptonator.com/api/ticker/".$currency_up."-eth";
  672.                             $json = file_get_contents($url);
  673.                             $data_api = json_decode($json, TRUE);
  674.                             $data_amts=$data_api['ticker']['price'];
  675.                             $data_amt= $data_amts*$form_deposit['amount'];
  676.  
  677.  
  678.                      ?>
  679.  
  680.                             <form action="<?php echo base_url();?>makeadeposit" method="post" target="_self" style="display:block;" >
  681.                             <input type="hidden" value="_pay" name="cmd">
  682.                             <input type="hidden" value="1" name="reset">
  683.                             <input type="hidden" name="planid"  value="<?php echo $form_deposit['planid'];?>"/>
  684.                             <input type="hidden" name="uusersid" value="<?php echo $form_deposit['uusersid'];?>">
  685.                             <input type="hidden" name="merchant" value="<?php echo $form_payment['merchant_id'];?>">
  686.                             <input type="hidden" name="currency" value="ETH">
  687.                             <input type="hidden" name="payid" value="20">
  688.                              <input type="hidden" name="btc_amount" value="<?php echo $data_amt; ?>">
  689.                             <input type="hidden" name="amountf" value="<?php echo $form_deposit['amount']; ?>">
  690.                             <input type="hidden" name="deposit" value="Deposit">
  691.                             <input type="hidden" name="success_url" value="<?php echo $form_payment['success_url'];?>">
  692.                             <input type="hidden" name="cancel_url" value="<?php echo $form_payment['cancel_url'];?>">
  693.                             <br><br>
  694.  
  695.                             <div class="col-xs-12"><br><br>
  696.                          
  697.                     <div class="col-md-6 cmmn">
  698.                         <div class="contact_page_btn">
  699.                             <input  class="button" type="submit" name="submit" id="button" onclick="goBack()" value="Cancel" class="button" />
  700.  
  701.                             </div>
  702.                             </div>
  703.                     <div class="col-md-6 cmmn">
  704.                         <div class="contact_page_btn">
  705.                             <input  class="button" type="submit" name="button" id="button" value="Deposit" class="button" />
  706.                        
  707.                         </div>
  708.                     </div>
  709.                            </div>
  710.                         </form>
  711.                         <!-- Ethereum End -->
  712.  
  713.                     <?php }
  714.  
  715.                            
  716.  
  717.                         // reinvestment process
  718.                         }
  719.                     ?>
  720.                      <!-- <div class="contact_page_btn" style="width:100%">
  721.                           <input value="Cancel" name="submit" type="submit" style="width:96%">
  722.                       </div> -->
  723.                    
  724.                   </div>   
  725.                    </div>
  726.                 </div>
  727.             </div>
  728.         </div>
  729.                 <div class="col-lg-2">
  730.              </div>
  731.                
  732.          </div>    
  733.      </div>
  734.    </section>
  735.                
  736.                
  737.            
  738.   <section class="dmain">
  739.   </section>
  740.  
  741.     <?php
  742.         $this->load->view('user/footer');
  743.     ?>
  744.  
  745. </section>
  746.  
  747.  
  748.     <script src="<?php echo base_url();?>styles/js/jquery-1.12.2.min.js"></script>
  749.  
  750.     <script src="<?php echo base_url();?>styles/js/jquery.meanmenu.js"></script>
  751.     <script src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
  752.     <script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
  753.     <script src="<?php echo base_url();?>styles/js/jquery.counterup.min.js"></script>
  754.     <script src="<?php echo base_url();?>styles/js/jquery.mixitup.min.js"></script>
  755.     <script src="<?php echo base_url();?>styles/js/waypoints.min.js"></script>
  756.     <script src="<?php echo base_url();?>styles/js/instafeed.min.js"></script>
  757.     <script src="<?php echo base_url();?>styles/js/bootstrap.min.js"></script>
  758.  
  759.     <script src="<?php echo base_url();?>styles/js/main.js"></script>
  760.     <script type="text/javascript" src="<?php echo base_url();?>styles/js/owl.carousel.min.js"></script>
  761.     <script type="text/javascript">
  762.  
  763.         $(document).ready(function($) {
  764.             $("#owl-example").owlCarousel({  
  765.                 nav:true,
  766.                 items : 8,
  767.                 itemsCustom : false,
  768.                 itemsDesktop : [1199,8],
  769.                 itemsDesktopSmall : [980,5],
  770.                 itemsTablet: [768,5],
  771.                 itemsTabletSmall: [768,4],
  772.                 itemsMobile : [479,2],
  773.                 singleItem : false,
  774.                 itemsScaleUp : true,
  775.                 navigation : true,
  776.                 navigationText : ["",""],
  777.                 rewindNav : true,
  778.                 scrollPerPage : true,
  779.             });
  780.  
  781.             document.body.addEventListener('click', copy, true);
  782.         function copy(e) {
  783.  
  784.            
  785.           var
  786.             t = e.target,
  787.             c = t.dataset.copytarget,
  788.             inp = (c ? document.querySelector(c) : null);
  789.  
  790.           if (inp && inp.select) {
  791.             inp.select();
  792.             try {
  793.               document.execCommand('copy');
  794.               inp.blur();
  795.             }
  796.             catch (err) {
  797.               swal({
  798.                   title: "<?php echo $this->lang->line('referral_copy_lbl'); ?>",
  799.                   confirmButtonColor: "#f5ab35"
  800.               });
  801.             }
  802.  
  803.           }
  804.  
  805.         }
  806.  
  807.         });
  808.        
  809.     </script>
  810.     <script>
  811.         function goBack() {
  812.             var depositid = $("input[name='depositid']").val();
  813.             console.log(depositid);
  814.             $.ajax({
  815.                 method : 'POST',
  816.                 url   : '<?php echo base_url();?>user/deposit/Cancelprocess',
  817.                 data : {'depositid':depositid},
  818.                 success : function(res)
  819.                 {
  820.                     if(res=='1') {
  821.                         window.history.back();
  822.                     } else {
  823.                         console.log('not cancel');
  824.                     }
  825.                 }
  826.             })
  827.         }
  828.     </script>
  829.  
  830. </body>
  831. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement