<?php
(@include ('../dt_page/lic.php')) or die("<script>alert(\"You not have a license to use this script on this domain, Please contact www.primadesain.com to purchase a license.\");"."window.location = './index.php'</script>");
//$lic=$license;if(!$lic){echo "<script>alert(\"You not have a license to use this script on this domain, Please contact www.primadesain.com to purchase a license.\");"."window.location = './index.php'</script>";}$svr=$_SERVER['SERVER_NAME'];$c=curl_init();curl_setopt($c,CURLOPT_URL,"http://www.primadesain.com/verifylicenses.php");curl_setopt($c,CURLOPT_TIMEOUT,30);curl_setopt($c,CURLOPT_POST,1);curl_setopt($c,CURLOPT_RETURNTRANSFER,1);$postfields='svr='.$svr.'&lic='.$lic;curl_setopt($c,CURLOPT_POSTFIELDS,$postfields);$result=curl_exec($c);if($result=="fail"){echo "<script>alert(\"You not have a license to use this script on this domain, Please contact www.primadesain.com to purchase a license.\");"."window.location = './index.php'</script>";die();}
if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)){
echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";
echo "<meta http-equiv=\"refresh\" content=\"2; url=../index.php\">";
exit();} 
?>
<?php
if (empty($_SESSION["valid_admin"])){
echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";
echo "<meta http-equiv=\"refresh\" content=\"2; url=../../index.php\">";
exit();}
?>
<?php
	/* 
	############################[  <about> ] #######################
		S Name   ::       Inv-X Primadesain
		Update   ::       2013 � Primadesain.Com
		Author   ::       Agus Susanto S.kom
		Website  ::		  http://primadesain.com
		Contact  ::		  <primapc57@gmail.com> // +62 85228657360
	
	Primadesain melayani pembuatan website MLM dan Investasi
	( dengan sistem binary, trinary atau matrix dan matahari )
	juga menerima pembuatan website Iklan Baris, Website Profile,
	Reseller, Hyip, dll.
	############################[ </about> ] #######################
	*/
?>
<script type="text/javascript">
<!--
function confirmation2(noid) {
	var answer = confirm("Yakin mau menghapus username default?")
	if (answer){
		//alert("Bye bye!")
		window.location = "?go=configuration&page=delete2&no=" + noid;
		
	}
	
}
//-->
</script>
<script type="text/javascript">
<!--
function confirmation2(noid) {
	var answer = confirm("Ubah Sistem Pendaftaran?")
	if (answer){
		//alert("Bye bye!")
		window.location = "?go=configuration&page=delete3&no=" + noid;
		
	}
	
}
//-->
</script>
<h2><img src="images/icon-48-article.png" width="48" height="48" align="absmiddle"> Konfigurasi Payment </h2>

<div align="center">
 <div class="form_style" style="width:70%" align="center">
<?
if(isset($_POST['submit'])){
$no = $_POST['no'];
$db->update("configuration", "bank='".mysql_real_escape_string($_POST['bank'])."', bank1='".mysql_real_escape_string($_POST['bank1'])."', bank2='".mysql_real_escape_string($_POST['bank2'])."', bank3='".mysql_real_escape_string($_POST['bank3'])."', bank4='".mysql_real_escape_string($_POST['bank4'])."', bank5='".mysql_real_escape_string($_POST['bank5'])."', bank6='".mysql_real_escape_string($_POST['bank6'])."', rekbank='".mysql_real_escape_string($_POST['rekbank'])."', paygateway='".mysql_real_escape_string($_POST['paygateway'])."', btcne='".mysql_real_escape_string($_POST['btcne'])."', Usdt_api_key='".mysql_real_escape_string($_POST['Usdt_api_key'])."', bitcoin_address='".mysql_real_escape_string($_POST['bitcoin_address'])."', api_secret='".mysql_real_escape_string($_POST['api_secret'])."', blockio='".mysql_real_escape_string($_POST['blockio'])."', privatekey='".mysql_real_escape_string($_POST['privatekey'])."', publickey='".mysql_real_escape_string($_POST['publickey'])."'", "id='$no'");

 $f = fopen('../member/config.php', 'w') or die("can't open file");
    fwrite($f, '<?php
$gateway = array();
$gateway["Usdt_api_key"] = "'.$_POST['Usdt_api_key'].'";
$gateway["Usdt_address"] = "'.$_POST['Usdt_address'].'";
$gateway["secret"] = "'.$_POST['api_secret'].'";
$gateway["Usdt_confirmations"] = "2";
?>');
    fclose($f);

mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['paypal'])."' WHERE id='16'") or die(mysql_error());
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['paypalid'])."' WHERE id='17'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['perfect'])."' WHERE id='35'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['perfectacc'])."' WHERE id='36'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['perfectname'])."' WHERE id='37'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['perfectpass'])."' WHERE id='38'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['bitpay'])."' WHERE id='39'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['bitpayapi'])."' WHERE id='40'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['bitpayspeed'])."' WHERE id='41'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['mailnotif'])."' WHERE id='2'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['namesender'])."' WHERE id='4'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['mailsender'])."' WHERE id='5'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['subjectpay'])."' WHERE id='11'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['isipay'])."' WHERE id='12'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['subjectpayx'])."' WHERE id='13'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['isipayx'])."' WHERE id='14'") or die(mysql_error());
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['skrill'])."' WHERE id='29'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['skrillid'])."' WHERE id='30'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['skrillss'])."' WHERE id='31'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['enable_payza'])."' WHERE id='18'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['payzaid'])."' WHERE id='19'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['payza_sandbox'])."' WHERE id='20'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['enable_egopay'])."' WHERE id='32'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['egopay_store_id'])."' WHERE id='33'") or die(mysql_error());	
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['egopay_store_pass'])."' WHERE id='34'") or die(mysql_error());
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['enable_stripe'])."' WHERE id='42'") or die(mysql_error());
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['stripe_secret'])."' WHERE id='43'") or die(mysql_error());
mysql_query("UPDATE udb_options SET options_value='".mysql_real_escape_string($_POST['stripe_publishable'])."' WHERE id='44'") or die(mysql_error());		
			 header("location: ?go=configpayment&result=success");
	exit;
	} else {
?>

 <?php
$results = $_GET['result'];
if($results == "success") { 
echo "<div class='alert-box successs'><span>Sukses : </span>Konfigurasi Web Berhasil disimpan!</div>";
}
?>
<?php
$results = $_GET['result'];
if($results == "success_dell") { 
echo "<div class='alert-box successs'><span>Sukses : </span>Username default berhasil dihapus!</div>";
}
?>
<div align="center"><strong><a href="?go=configuration&sess=web"><button class="submitkecil" type="button">Konfigurasi Web</button></a>&nbsp;<a href="?go=configuration&sess=admin"><button class="submitkecil" type="button">Konfigurasi Admin</button></a>&nbsp;<a href="?go=configuration&sess=system"><button class="submitkecil" type="button">Konfigurasi System</button></a>&nbsp;<a href="?go=configpayment"><button class="submitkecil" type="button">Konfigurasi Payment</button></a></strong></div><p>&nbsp;</p>
<form id="form2" name="form2" method="POST" action="">

  <table width="90%" align="center" cellpadding="4" cellspacing="1">
  
  <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Payment</strong></div></td>
    </tr>
    <?
	  $rekbank = $db->config("rekbank");
	  if($rekbank == 1) {
		?>
	<tr> 
      <td align="right">Rekening Bank :</td>
      <td colspan="5"><input type="radio" name="rekbank" value="1" id="RadioGroup122_0ra" checked="checked" onMouseover="ddrivetip('Aktifkan Rekening Bank')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="rekbank" value="0" id="RadioGroup122_1ra" onMouseover="ddrivetip('Nonaktifkan Rekening Bank')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Rekening Bank :</td>
      <td colspan="5"><input type="radio" name="rekbank" value="1" id="RadioGroup122_0ra" onMouseover="ddrivetip('Aktifkan Rekening Bank')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="rekbank" value="0" id="RadioGroup122_1ra" checked="checked" onMouseover="ddrivetip('Nonaktifkan Rekening Bank')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
    <?
	  $paygateway = $db->config("paygateway");
	  if($paygateway == 1) {
		?>
	<tr> 
      <td align="right">Payment Gateway :</td>
      <td colspan="5"><input type="radio" name="paygateway" value="1" id="RadioGroup122_0ra" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Gateway')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="paygateway" value="0" id="RadioGroup122_1ra" onMouseover="ddrivetip('Nonaktifkan Payment Gateway')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Gateway :</td>
      <td colspan="5"><input type="radio" name="paygateway" value="1" id="RadioGroup122_0ra" onMouseover="ddrivetip('Aktifkan Payment Gateway')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="paygateway" value="0" id="RadioGroup122_1ra" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Gateway')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
  <?
	  $btcne = $db->config("btcne");
	  if($btcne == 1) {
		?>
	<tr> 
      <td align="right">BTC Pay :</td>
      <td colspan="5"><input type="radio" name="btcne" value="1" id="RadioGroup122_0rab" checked="checked" />
         Aktif
          <input type="radio" name="btcne" value="0" id="RadioGroup122_1rab" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">BTC Pay :</td>
      <td colspan="5"><input type="radio" name="btcne" value="1" id="RadioGroup122_0rab" />
         Aktif
          <input type="radio" name="btcne" value="0" id="RadioGroup122_1rab" checked="checked"/>
        Nonaktif</td>
    </tr>
	<?
	}
	?>
    
    
   <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>GOURL IO</strong></div></td>
    </tr>
    
    <tr> 
      <td align="right" >Public Key :<br /></td>
      <td colspan="5"><input name="publickey" type="text" id="publickey" value="<?= $db->config("publickey"); ?>" size="60" /></td>
    </tr>
  
  <tr> 
      <td align="right" >Private Key :<br /></td>
      <td colspan="5"><input name="privatekey" type="text" id="privatekey" value="<?= $db->config("privatekey"); ?>" size="60" /></td>
    </tr>
    
    
  
  
    
    
    
<tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Rekening Bank</strong></div></td>
    </tr>
   
    <tr> 
      <td align="right" >Data Bank 1 :<br /></td>
      <td colspan="5"><input name="bank" type="text" id="bank" value="<?= $db->config("bank"); ?>" size="60" /></td>
    </tr>
    <tr> 
      <td align="right" >Data Bank 2 :<br /></td>
      <td colspan="5"><input name="bank1" type="text" id="bank1" value="<?= $db->config("bank1"); ?>" size="60" /></td>
    </tr>
    <tr> 
      <td align="right" >Data Bank 3 :<br /></td>
      <td colspan="5"><input name="bank2" type="text" id="bank2" value="<?= $db->config("bank2"); ?>" size="60" /></td>
    </tr>
	 <tr> 
      <td align="right" >Data Bank 4 :<br /></td>
      <td colspan="5"><input name="bank3" type="text" id="bank3" value="<?= $db->config("bank3"); ?>" size="60" /></td>
    </tr>
    <tr> 
      <td align="right" >Data Bank 5 :<br /></td>
      <td colspan="5"><input name="bank4" type="text" id="bank4" value="<?= $db->config("bank4"); ?>" size="60" /></td>
    </tr>
    <tr> 
      <td align="right" >Data Bank 6 :<br /></td>
      <td colspan="5"><input name="bank5" type="text" id="bank5" value="<?= $db->config("bank5"); ?>" size="60" /></td>
    </tr>
    <tr> 
      <td align="right" >Data Bank 7 :<br /></td>
      <td colspan="5"><input name="bank6" type="text" id="bank6" value="<?= $db->config("bank6"); ?>" size="60" /></td>
    </tr>
     <tr> 
      <td align="right" >Banner :<br /></td>
      <td colspan="5"><a href="./index.php?go=bannerrek" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;' type="button">Setting Banner Rekening</button></a></td>
    </tr>
   <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Paypal</strong></div></td>
    </tr>

	<?
	  $enable_paypal = $db->configs("enable_paypal");
	  if($enable_paypal == "on") {
		?>
	<tr> 
      <td align="right">Payment Paypal :</td>
      <td colspan="5"><input type="radio" name="paypal" value="on" id="RadioGroup122_0a" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Paypal')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="paypal" value="off" id="RadioGroup122_1a" onMouseover="ddrivetip('Nonaktifkan Payment Paypal')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Paypal :</td>
      <td colspan="5"><input type="radio" name="paypal" value="on" id="RadioGroup122_0a" onMouseover="ddrivetip('Aktifkan Payment Paypal')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="paypal" value="off" id="RadioGroup122_1a" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Paypal')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	 <tr>
      <td align="right">Paypal ID  : </td>
      <td colspan="5"><div align="left">
        <input name="paypalid" type="text" id="paypalid" value="<?php echo $db->configs("paypal_id"); ?>" size="40" onMouseover="ddrivetip('Please enter valid PayPal Email or Merchant ID')"; onMouseout="hideddrivetip()"/>
        <a href="https://www.paypal.com/webapps/customerprofile/summary.view" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;' type="button">Merchant ID</button></a></div></td>
    </tr>
	<tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Perfect Money</strong></div></td>
    </tr>

	<?
	  $enable_perfect = $db->configs("enable_perfect");
	  if($enable_perfect == "on") {
		?>
	<tr> 
      <td align="right">Payment Perfect Money :</td>
      <td colspan="5"><input type="radio" name="perfect" value="on" id="RadioGroup122_0s" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Perfect Money')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="perfect" value="off" id="RadioGroup122_1s" onMouseover="ddrivetip('Nonaktifkan Payment Perfect Money')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Perfect Money :</td>
      <td colspan="5"><input type="radio" name="perfect" value="on" id="RadioGroup122_0s" onMouseover="ddrivetip('Aktifkan Payment Perfect Money')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="perfect" value="off" id="RadioGroup122_1s" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Perfect Money')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	 <tr>
      <td align="right">Perfect Money Account : </td>
      <td colspan="5"><div align="left">
        <input name="perfectacc" type="text" id="perfectacc" value="<?php echo $db->configs("perfect_account_id"); ?>" size="40" onMouseover="ddrivetip('The merchant's PerfectMoney account to which the payment is to be made')"; onMouseout="hideddrivetip()"/>
      </div></td>
    </tr>
    <tr>
      <td align="right">Perfect Money Account Name : </td>
      <td colspan="5"><div align="left">
        <input name="perfectname" type="text" id="perfectname" value="<?php echo $db->configs("perfect_payee_name"); ?>" size="40" onMouseover="ddrivetip('The name the merchant wishes to have displayed as the Payee on the PerfectMoney payment form')"; onMouseout="hideddrivetip()"/>
      </div></td>
    </tr>
     <tr>
      <td align="right">Perfect Money Account Passphrase : </td>
      <td colspan="5"><div align="left">
        <input name="perfectpass" type="text" id="perfectpass" value="<?php echo $db->configs("perfect_passphrase"); ?>" size="40" onMouseover="ddrivetip('Please enter valid Alternate Passphrase')"; onMouseout="hideddrivetip()"/> <a href="https://perfectmoney.is/settings.html" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;'  type="button">Get Parameter</button></a>
      </div></td>
    </tr>
       <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Usdt / Bitpay</strong></div></td>
    </tr>

	<?
	  $enable_bitpay = $db->configs("enable_bitpay");
	  if($enable_bitpay == "on") {
		?>
	<tr> 
      <td align="right">Payment Bitpay :</td>
      <td colspan="5"><input type="radio" name="bitpay" value="on" id="RadioGroup122_0d" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Bitpay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="bitpay" value="off" id="RadioGroup122_1d" onMouseover="ddrivetip('Nonaktifkan Payment Bitpay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Bitpay :</td>
      <td colspan="5"><input type="radio" name="bitpay" value="on" id="RadioGroup122_0d" onMouseover="ddrivetip('Aktifkan Payment Bitpay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="bitpay" value="off" id="RadioGroup122_1d" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Bitpay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	 <tr>
      <td align="right">API Key  : </td>
      <td colspan="5"><div align="left">
        <input name="bitpayapi" type="text" id="bitpayapi" value="<?php echo $db->configs("bitpay_key"); ?>" size="40" onMouseover="ddrivetip('Please enter valid API Key')"; onMouseout="hideddrivetip()"/>
         <input name="bitpayspeed" type="hidden" id="bitpayspeed" value="medium"/>
        <a href="https://bitpay.com/api-keys" target="_blank"><button type="button" class='mmm_blue' style='padding:2px 6px;font-size:11px;' >Get Parameter</button></a></div></td>
    </tr>
    
    
    
     <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Skrill / Moneybookers</strong></div></td>
    </tr>

	<?
	  $enable_skrill = $db->configs("enable_skrill");
	  if($enable_skrill == "on") {
		?>
	<tr> 
      <td align="right">Payment Skrill / Moneybookers :</td>
      <td colspan="5"><input type="radio" name="skrill" value="on" id="RadioGroup122_0f" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Skrill / Moneybookers')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="skrill" value="off" id="RadioGroup122_1f" onMouseover="ddrivetip('Nonaktifkan Payment Skrill / Moneybookers')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Skrill / Moneybookers :</td>
      <td colspan="5"><input type="radio" name="skrill" value="on" id="RadioGroup122_0f" onMouseover="ddrivetip('Aktifkan Payment Skrill / Moneybookers')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="skrill" value="off" id="RadioGroup122_1f" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Skrill / Moneybookers')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	
	 <tr>
      <td align="right">Skrill ID  : </td>
      <td colspan="5"><div align="left">
        <input name="skrillid" type="text" id="skrillid" value="<?php echo $db->configs("skrill_id"); ?>" size="40" onMouseover="ddrivetip('Please enter valid Skrill email')"; onMouseout="hideddrivetip()"/></div></td>
    </tr>
     <tr>
      <td align="right">Secret Word  : </td>
      <td colspan="5"><div align="left">
        <input name="skrillss" type="text" id="skrillss" value="<?php echo $db->configs("skrill_secret_word"); ?>" size="40" onMouseover="ddrivetip('Please enter valid Skrill Secret Word. You must set it on merchant tools page')"; onMouseout="hideddrivetip()"/>
         
        <a href="https://www.moneybookers.com/app/profile.pl?view=merchant_tools" target="_blank"><button type="button" class='mmm_blue' style='padding:2px 6px;font-size:11px;' >Merchant Tools</button></a></div></td>
    </tr>
    
    
    
    
    
    
    
    
    
    
    
    <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Payza / AlertPay Settings</strong></div></td>
    </tr>

	<?
	  $enable_payza = $db->configs("enable_payza");
	  if($enable_payza == "on") {
		?>
	<tr> 
      <td align="right">Payment Payza / AlertPay :</td>
      <td colspan="5"><input type="radio" name="enable_payza" value="on" id="RadioGroup122_0sp" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Payza / AlertPay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_payza" value="off" id="RadioGroup122_1sp" onMouseover="ddrivetip('Nonaktifkan Payment Payza / AlertPay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Payza / AlertPay :</td>
      <td colspan="5"><input type="radio" name="enable_payza" value="on" id="RadioGroup122_0sp" onMouseover="ddrivetip('Aktifkan Payment Payza / AlertPay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_payza" value="off" id="RadioGroup122_1sp" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Payza / AlertPay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	 <tr>
      <td align="right">Payza ID : </td>
      <td colspan="5"><div align="left">
        <input name="payzaid" type="text" id="payzaid" value="<?php echo $db->configs("payza_id"); ?>" size="40" onMouseover="ddrivetip('Please enter valid Payza e-mail')"; onMouseout="hideddrivetip()"/><a href="https://secure.payza.com/ManageIPN.aspx" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;'  type="button">Payza IPN Setup</button></a><br />
IMPORTANT! Set IPN Status as Enabled on </div></td>
    </tr>
    <?
	  $payza_sandbox = $db->configs("payza_sandbox");
	  if($payza_sandbox == "on") {
		?>
	<tr> 
      <td align="right">Sandbox mode :</td>
      <td colspan="5"><input type="radio" name="payza_sandbox" value="on" id="RadioGroup122_0sp" checked="checked" onMouseover="ddrivetip('Please tick checkbox if you would like to test Payza service.')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="payza_sandbox" value="off" id="RadioGroup122_1sp" onMouseover="ddrivetip('Please tick checkbox if you would like to test Payza service.')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Sandbox mode :</td>
      <td colspan="5"><input type="radio" name="payza_sandbox" value="on" id="RadioGroup122_0sp" onMouseover="ddrivetip('Please tick checkbox if you would like to test Payza service.')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="payza_sandbox" value="off" id="RadioGroup122_1sp" checked="checked" onMouseover="ddrivetip('Please tick checkbox if you would like to test Payza service.')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
    
    
    
	
    
        <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>EgoPay</strong></div></td>
    </tr>

	<?
	  $enable_egopay = $db->configs("enable_egopay");
	  if($enable_egopay == "on") {
		?>
	<tr> 
      <td align="right">Payment EgoPay :</td>
      <td colspan="5"><input type="radio" name="enable_egopay" value="on" id="RadioGroup122_0sp" checked="checked" onMouseover="ddrivetip('Aktifkan Payment EgoPay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_egopay" value="off" id="RadioGroup122_1sp" onMouseover="ddrivetip('Nonaktifkan Payment EgoPay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment EgoPay :</td>
      <td colspan="5"><input type="radio" name="enable_egopay" value="on" id="RadioGroup122_0sp" onMouseover="ddrivetip('Aktifkan Payment EgoPay')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_egopay" value="off" id="RadioGroup122_1sp" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment EgoPay')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
	
    
	 <tr>
      <td align="right">EgoPay Store ID : </td>
      <td colspan="5"><div align="left">
        <input name="egopay_store_id" type="text" id="egopay_store_id" value="<?php echo $db->configs("egopay_store_id"); ?>" size="40" onMouseover="ddrivetip('Please enter valid EgoPay Store ID.')"; onMouseout="hideddrivetip()"/></div></td>
    </tr>
    
     <tr>
      <td align="right">EgoPay Store Pass : </td>
      <td colspan="5"><div align="left">
        <input name="egopay_store_pass" type="password" id="egopay_store_pass" value="<?php echo $db->configs("egopay_store_pass"); ?>" size="40" onMouseover="ddrivetip('Please enter EgoPay Store Password.')"; onMouseout="hideddrivetip()"/><a href="https://www.egopay.com/store/list" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;'  type="button">Get Parameter</button></a><br />IMPORTANT! Register your store and set http://<?php echo $domain;?>/payment/ipn.php?method=egopay as CallBack URL.
</div></td>
    </tr>
    
    
    
    
     <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Stripe</strong></div></td>
    </tr>
    
    
    <?
	  $enable_stripe = $db->configs("enable_stripe");
	  if($enable_stripe == "on") {
		?>
	<tr> 
      <td align="right">Payment Stripe :</td>
      <td colspan="5"><input type="radio" name="enable_stripe" value="on" id="RadioGroup122_0sp" checked="checked" onMouseover="ddrivetip('Aktifkan Payment Stripe')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_stripe" value="off" id="RadioGroup122_1sp" onMouseover="ddrivetip('Nonaktifkan Payment Stripe')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	} else {
	?>
	<tr> 
      <td align="right">Payment Stripe :</td>
      <td colspan="5"><input type="radio" name="enable_stripe" value="on" id="RadioGroup122_0sp" onMouseover="ddrivetip('Aktifkan Payment Stripe')"; onMouseout="hideddrivetip()" />
         Aktif
          <input type="radio" name="enable_stripe" value="off" id="RadioGroup122_1sp" checked="checked" onMouseover="ddrivetip('Nonaktifkan Payment Stripe')"; onMouseout="hideddrivetip()" />
        Nonaktif</td>
    </tr>
	<?
	}
	?>
    
    
     <tr>
      <td align="right">Stripe Secret Key : </td>
      <td colspan="5"><div align="left">
        <input name="stripe_secret" type="text" id="stripe_secret" value="<?php echo $db->configs("stripe_secret"); ?>" size="40" onMouseover="ddrivetip('Please enter valid stripe_secret.')"; onMouseout="hideddrivetip()"/></div></td>
    </tr>
    
     <tr>
      <td align="right">Publishable Key : </td>
      <td colspan="5"><div align="left">
        <input name="stripe_publishable" type="text" id="egopay_store_pass" value="<?php echo $db->configs("stripe_publishable"); ?>" size="40" onMouseover="ddrivetip('Please enter Publishable Key.')"; onMouseout="hideddrivetip()"/><a href="https://manage.stripe.com/account/apikeys" target="_blank"><button class='mmm_blue' style='padding:2px 6px;font-size:11px;'  type="button">Get Parameter</button></a>
</div></td>
    </tr>
    
    
    
    
	
    
    
     <tr class="tbl_header"> 
      <td colspan="6" bgcolor="#DDDDE1"><div align="center"><strong>Notification</strong></div></td>
    </tr>

	
	
	
    
	 <tr>
      <td align="right">E-mail notifikasi : </td>
      <td colspan="5"><div align="left">
        <input name="mailnotif" type="text" id="mailnotif" value="<?php echo $db->configs("owner_email"); ?>" size="40" onMouseover="ddrivetip('Please enter e-mail address. All alerts about completed/failed payments are sent to this e-mail address')"; onMouseout="hideddrivetip()"/>
        </div></td>
    </tr>
    <tr>
      <td align="right">Nama Pengirim : </td>
      <td colspan="5"><div align="left">
        <input name="namesender" type="text" id="namesender" value="<?php echo $db->configs("mail_from_name"); ?>" size="40" onMouseover="ddrivetip('Please enter sender name. All messages to payment are sent using this name')"; onMouseout="hideddrivetip()"/>
        
        </div></td>
    </tr>
     <tr>
      <td align="right">Email Pengirim : </td>
      <td colspan="5"><div align="left">
        <input name="mailsender" type="text" id="mailsender" value="<?php echo $db->configs("mail_from_email"); ?>" size="40" onMouseover="ddrivetip('Please enter email address. All messages to payment are sent using this email')"; onMouseout="hideddrivetip()"/>
        </div></td>
    </tr>
     <tr>
      <td align="right">Subject Email Sukses Payment : </td>
      <td colspan="5"><div align="left">
        <input name="subjectpay" type="text" id="subjectpay" value="<?php echo $db->configs("success_email_subject"); ?>" size="40" onMouseover="ddrivetip('All payment receive thanksgiving e-mail message')"; onMouseout="hideddrivetip()"/>
        </div></td>
    </tr>
     <tr>
      <td align="right">Isi Email Sukses Payment : </td>
      <td colspan="5"><div align="left">
        <textarea name="isipay" cols="40" rows="4" id="isipay" onmouseover="ddrivetip('All payment receive thanksgiving e-mail message')" onmouseout="hideddrivetip()" ;=";"><?php echo $db->configs("success_email_body"); ?></textarea>
        </div></td>
    </tr>
    <tr>
      <td align="right">Subject Email Failed Payment : </td>
      <td colspan="5"><div align="left">
        <input name="subjectpayx" type="text" id="subjectpayx" value="<?php echo $db->configs("failed_email_subject"); ?>" size="40" onMouseover="ddrivetip('All payment receive failed e-mail message')"; onMouseout="hideddrivetip()"/>
        </div></td>
    </tr>
     <tr>
      <td align="right">Isi Email Failed Payment : </td>
      <td colspan="5"><div align="left">
        <textarea name="isipayx" cols="40" rows="4" id="isipayx" onmouseover="ddrivetip('All payment receive failed e-mail message')" onmouseout="hideddrivetip()" ;=";"><?php echo $db->configs("failed_email_body"); ?></textarea>
        </div></td>
    </tr>
	<tr> 
      <td colspan="6" bgcolor="#DDDDE1">&nbsp;</td>
    </tr>
	<tr> 
      <td colspan="6" >&nbsp;</td>
    </tr>
	<tr> 
      <td colspan="6" >
      <input name="no" type="hidden" id="no" value="1" size="10" />
      <input type="submit"  name="submit" value="SAVE" class="button">
        
        <input type="submit" name="cancel" id="cancel" value="CANCEL" onClick="javascript:history.go(-1)" class="button">
       </td>
    </tr>
	<tr> 
      <td colspan="6" >&nbsp;</td>
    </tr>
  </table>
  </form>
  
  
<p>&nbsp;</p>
<?php } ?>
