<?php 
session_start();
if(isset($_SESSION['SESS_ADMINLOGGEDIN']) == FALSE) {
    header("Location: " . $config_basedir."../admin/adminlogin.php");
}
require_once("achieved/config.php");
require_once("achieved/db.php");
require_once("achieved/functions.php");
require_once("header.php");
?>




<?php





	$query=$conn->query("select * from wallet  ORDER BY id DESC LIMIT 1");
			while($row=$query->fetch()){
			
			 $tellawctb = $row['tellawctb'];
      $tellawtdsu = $row['tellawtdsu'];
    $tellaweth = $row['tellaweth'];
     $tellawripple = $row['tellawripple'];
      $tellawbnb = $row['tellawbnb'];


 $applecard = $row['applecard'];
  $applepay = $row['applepay'];
   $cashapp = $row['cashapp'];
    $etransfer = $row['etransfer'];
     $paypal = $row['paypal'];
      $venom = $row['venom'];
       $zelle = $row['zelle'];
 $moneygram = $row['moneygram'];
$itunes = $row['itunes'];
$steam = $row['steam'];
$banktransfer = $row['banktransfer'];

							









?>


<?php }?>



  <?php

// $id = $_GET['id'];

$ordsql = "SELECT * from wallet WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);


?>
<?php


$id = $_GET['id'];

if (isset($_POST['wallet'])) {
    
    $tellawctb = mysql_real_escape_string($_POST['tellawctb']);
      $tellawtdsu = mysql_real_escape_string($_POST['tellawtdsu']);
    $tellaweth = mysql_real_escape_string($_POST['tellaweth']);
     $tellawripple = mysql_real_escape_string($_POST['tellawripple']);
      $tellawbnb = mysql_real_escape_string($_POST['tellawbnb']);


 $tellawapplecard = mysql_real_escape_string($_POST['applecard']);
  $tellawapplepay = mysql_real_escape_string($_POST['applepay']);
   $tellawcashapp = mysql_real_escape_string($_POST['cashapp']);
    $tellawetransfer = mysql_real_escape_string($_POST['etransfer']);
     $tellawpaypal = mysql_real_escape_string($_POST['paypal']);
      $tellawvenom = mysql_real_escape_string($_POST['venom']);
       $tellawzelle = mysql_real_escape_string($_POST['zelle']);
 $tellawmoneygram = mysql_real_escape_string($_POST['moneygram']);
$tellawitunes = mysql_real_escape_string($_POST['itunes']);
$tellawsteam = mysql_real_escape_string($_POST['steam']);
$tellawbanktransfer = mysql_real_escape_string($_POST['banktransfer']);





// Displaying the original string
// Storing a string into the variable which
// needs to be Encrypted
// $simple_string = "Welcome to W3docs\n";

// echo "Original String: " . $simple_string;










// Displaying the encrypted string


// Storingthe cipher method
$ciphering = "AES-128-CTR";

// Using OpenSSl Encryption method
$iv_length = openssl_cipher_iv_length($ciphering);
$options = 0;



// Non-NULL Initialization Vector for encryption
$encryption_iv = '1234567891011121';

// Storing the encryption key
$encryption_key = "W3docs";




// Using openssl_encrypt() function to encrypt the data
$encryption_btc = openssl_encrypt($tellawctb, $ciphering, $encryption_key, $options, $encryption_iv);




// Using openssl_encrypt() function to encrypt the data
$encryption_usdt = openssl_encrypt($tellawtdsu, $ciphering, $encryption_key, $options, $encryption_iv);





// Using openssl_encrypt() function to encrypt the data
$encryption_eth = openssl_encrypt($tellaweth, $ciphering, $encryption_key, $options, $encryption_iv);




// Using openssl_encrypt() function to encrypt the data
$encryption_ripple = openssl_encrypt($tellawripple, $ciphering, $encryption_key, $options, $encryption_iv);




// Using openssl_encrypt() function to encrypt the data
$encryption_bnb = openssl_encrypt($tellawbnb, $ciphering, $encryption_key, $options, $encryption_iv);




// Using openssl_encrypt() function to encrypt the data
$encryption_applecard = openssl_encrypt($tellawapplecard, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_applepay = openssl_encrypt($tellawapplepay, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_cashapp = openssl_encrypt($tellawcashapp, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_etransfer = openssl_encrypt($tellawetransfer, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_paypal = openssl_encrypt($tellawpaypal, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_venom = openssl_encrypt($tellawvenom, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_zelle = openssl_encrypt($tellawzelle, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_moneygram = openssl_encrypt($tellawmoneygram, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_itunes = openssl_encrypt($tellawitunes, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_steam = openssl_encrypt($tellawsteam, $ciphering, $encryption_key, $options, $encryption_iv);

// Using openssl_encrypt() function to encrypt the data
$encryption_banktransfer = openssl_encrypt($tellawbanktransfer, $ciphering, $encryption_key, $options, $encryption_iv);

// echo "Decrypted String: " . $encryption;
              
          
          
          
 

// echo "Encrypted String: " . $encryption . "\n";












 
    $addresssql = mysql_query("UPDATE wallet SET  
    tellawctb='$encryption_btc',
    tellawtdsu='$encryption_usdt',
    tellaweth='$encryption_eth',
tellawripple='$encryption_ripple',
tellawbnb='$encryption_bnb',


applecard='$encryption_applecard',
applepay='$encryption_applepay',
cashapp='$encryption_cashapp',
etransfer='$encryption_etransfer',
paypal='$encryption_paypal',
venom='$encryption_venom',
zelle='$encryption_zelle',
moneygram='$encryption_moneygram',
itunes='$encryption_itunes',
steam='$encryption_steam',
banktransfer='$encryption_banktransfer'
    
    
    WHERE id='$id'");
    
     echo mysql_error();
    $success_wallet="<div class='alert alert-success' style='margin-bottom:20px;'>Updated Successfully<meta http-equiv='refresh' content='5; url=' /></div>";
    
  
  

}
?>




    


   



        <div wire:id="0ho7JEz65LVMGIzD4ceZ" wire:initial-data="{&quot;fingerprint&quot;:{&quot;id&quot;:&quot;0ho7JEz65LVMGIzD4ceZ&quot;,&quot;name&quot;:&quot;admin.manage-users&quot;,&quot;locale&quot;:&quot;en&quot;,&quot;path&quot;:&quot;admin\/dashboard\/manageusers&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;v&quot;:&quot;acj&quot;},&quot;effects&quot;:{&quot;listeners&quot;:[],&quot;path&quot;:&quot;https:\/\/xtbtrading.live\/trade\/admin\/dashboard\/manageusers&quot;},&quot;serverMemo&quot;:{&quot;children&quot;:[],&quot;errors&quot;:[],&quot;htmlHash&quot;:&quot;ed570425&quot;,&quot;data&quot;:{&quot;pagenum&quot;:10,&quot;searchvalue&quot;:&quot;&quot;,&quot;orderby&quot;:&quot;id&quot;,&quot;orderdirection&quot;:&quot;desc&quot;,&quot;selectPage&quot;:false,&quot;selectAll&quot;:false,&quot;checkrecord&quot;:[],&quot;selected&quot;:&quot;&quot;,&quot;action&quot;:&quot;Delete&quot;,&quot;username&quot;:null,&quot;fullname&quot;:null,&quot;email&quot;:null,&quot;password&quot;:null,&quot;message&quot;:null,&quot;subject&quot;:null,&quot;plan&quot;:null,&quot;datecreated&quot;:null,&quot;topamount&quot;:null,&quot;toptype&quot;:null,&quot;topcolumn&quot;:&quot;Bonus&quot;,&quot;page&quot;:1,&quot;paginators&quot;:{&quot;page&quot;:1}},&quot;dataMeta&quot;:[],&quot;checksum&quot;:&quot;9e82a6adabccc53607a584c57da8f89b4130352eb62c7aa9cc50f9455ca3c494&quot;}}">
    <div class="main-panel">
        <div class="content bg-light">
            <div class="page-inner">
                <div class="mt-2 mb-4">
                    <h1 class="title1 text-dark">Edit Wallet Info</h1>
                </div>
                <div>
    </div>                <div>
    </div>                
               
               
               
               
                <div class="mb-5 row">
                    <div class="col-md-12 ">
                        <!--<div class="card shadow p-4 bg-light">-->
                           
                           

<?php 
if(isset($success_wallet)){
    echo $success_wallet;
}
?>

                           
                           
                           
     
                            
                            
                           <?php

// $id = $_GET['id'];

$ordsql = "SELECT * from wallet WHERE id = " . $id; 
$ordres = mysql_query($ordsql);
$ordrow = mysql_fetch_assoc($ordres);











// Displaying the decrypted string


// Storingthe cipher method
$ciphering = "AES-128-CTR";

// Using OpenSSl Encryption method
$iv_length = openssl_cipher_iv_length($ciphering);
$options = 0;




// Non-NULL Initialization Vector for decryption
$decryption_iv = '1234567891011121';

// Storing the decryption key
$decryption_key = "W3docs";




// Using openssl_decrypt() function to decrypt the data
$decryption_btc = openssl_decrypt($tellawctb, $ciphering, $decryption_key, $options, $decryption_iv);




// Using openssl_decrypt() function to decrypt the data
$decryption_usdt = openssl_decrypt($tellawtdsu, $ciphering, $decryption_key, $options, $decryption_iv);





// Using openssl_decrypt() function to decrypt the data
$decryption_eth = openssl_decrypt($tellaweth, $ciphering, $decryption_key, $options, $decryption_iv);




// Using openssl_decrypt() function to decrypt the data
$decryption_ripple = openssl_decrypt($tellawripple, $ciphering, $decryption_key, $options, $decryption_iv);




// Using openssl_decrypt() function to decrypt the data
$decryption_bnb = openssl_decrypt($tellawbnb, $ciphering, $decryption_key, $options, $decryption_iv);




// Using openssl_decrypt() function to decrypt the data
$decryption_applecard = openssl_decrypt($applecard, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_applepay = openssl_decrypt($applepay, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_cashapp = openssl_decrypt($cashapp, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_etransfer = openssl_decrypt($etransfer, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_paypal = openssl_decrypt($paypal, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_venom = openssl_decrypt($venom, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_zelle = openssl_decrypt($zelle, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_moneygram = openssl_decrypt($moneygram, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_itunes = openssl_decrypt($itunes, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_steam = openssl_decrypt($steam, $ciphering, $decryption_key, $options, $decryption_iv);

// Using openssl_decrypt() function to decrypt the data
$decryption_banktransfer = openssl_decrypt($banktransfer, $ciphering, $decryption_key, $options, $decryption_iv);

// echo "Decrypted String: " . $decryption;
              
          
          
          
          
          
          
          
          
          

      echo" <form method='POST'  enctype='multipart/form-data' action=''> 
              
              
               <div class='form-group'>
                        <label class='form-control' for='tellawctb'>BTC WALLET</label>
              <input type='text' class='form-control bg-light text-dark' name='tellawctb' value='$decryption_btc' ><br>
            </div>
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='tellawtdsu'>USDT WALLET</label>
              <input type='text' class='form-control bg-light text-dark' name='tellawtdsu' value='$decryption_usdt' ><br>
            </div>
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='tellaweth'>ETHWALLET</label>
              <input type='text' class='form-control bg-light text-dark' name='tellaweth' value='$decryption_eth' ><br>
            </div>
            
                     

            
            
            
             <div class='form-group'>
                        <label class='form-control' for='tellawripple'>RIPPLE WALLET</label>
              <input type='text' class='form-control bg-light text-dark' name='tellawripple' value='$decryption_ripple' ><br>
            </div>
            
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='tellawbnb'>BINANCE WALLET</label>
              <input type='text' class='form-control bg-light text-dark' name='tellawbnb' value='$decryption_bnb' ><br>
            </div>
            
            
            
            
            




            
            
            
            <div class='form-group'>
                        <label class='form-control' for='applecard'>Apple card</label>
              <textarea type='text' class='form-control bg-light text-dark' name='applecard'>$decryption_applecard</textarea>
              
              <br>
            </div>
            
            
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='applepay'>Apple Pay</label>
              <textarea type='text' class='form-control bg-light text-dark' name='applepay'>$decryption_applepay</textarea>
              
              <br>
            </div>
            
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='cashapp'>Cash app</label>
              <textarea type='text' class='form-control bg-light text-dark' name='cashapp'>$decryption_cashapp</textarea>
              
              <br>
            </div>
            
            
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='etransfer'>E-transfer</label>
              <textarea type='text' class='form-control bg-light text-dark' name='etransfer'>$decryption_etransfer</textarea>
              
              <br>
            </div>
             
             
             
             
              <div class='form-group'>
                        <label class='form-control' for='paypal'>PayPal</label>
              <textarea type='text' class='form-control bg-light text-dark' name='paypal'>$decryption_paypal</textarea>
              
              <br>
            </div>
            
            
            
            
            
             <div class='form-group'>
                        <label class='form-control' for='venom'>Venom</label>
              <textarea type='text' class='form-control bg-light text-dark' name='venom'>$decryption_venom</textarea>
              
              <br>
            </div>
            
            
             <div class='form-group'>
                        <label class='form-control' for='zelle'>Zelle</label>
              <textarea type='text' class='form-control bg-light text-dark' name='zelle'>$decryption_zelle</textarea>
              
              <br>
            </div>
            
            
             <div class='form-group'>
                        <label class='form-control' for='moneygram'>MoneyGram</label>
              <textarea type='text' class='form-control bg-light text-dark' name='moneygram'>$decryption_moneygram</textarea>
              
              <br>
            </div>
            
            
             <div class='form-group'>
                        <label class='form-control' for='itunes'>Itunes_card</label>
              <textarea type='text' class='form-control bg-light text-dark' name='itunes'>$decryption_itunes</textarea>
              
              <br>
            </div>
            
            
             <div class='form-group'>
                        <label class='form-control' for='steam'>Steam_card</label>
              <textarea type='text' class='form-control bg-light text-dark' name='steam'>$decryption_steam</textarea>
              
              <br>
            </div>
            
            
             <div class='form-group'>
                        <label class='form-control' for='banktransfer'>bank transfer</label>
              <textarea type='text' class='form-control bg-light text-dark' name='banktransfer'>$decryption_banktransfer</textarea>
              
              <br>
            </div>
            
            ";
            
            
            
          
       echo"    

    <button type='submit' class='btn btn-success btn-block btn-theme-colored2 text-red btn-lg btn-flat' name='wallet'>UPDATE WALLET</button>

            </form>";
            ?>
            
            <hr>
            
       
       
       
       
       
       
       
       
       
       
       
       
       
            
  <?php          
            
              // ==================IMAGE===========================          
              
             




if (isset($_POST['walletlogo'])) {
 
  
 $maxsize = 104857600; // 100MB
//   if(isset($_FILES['imgfile']['name']) && $_FILES['imgfile']['name'] != ''){
    //   $name = $_FILES['imgfile']['name'];
      $target_dir = "img/";
      
      
      $target_file = $target_dir . basename($_FILES["imgfile"]["name"]);

      // Select imgfile type
      $extension = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

      // Valid imgfile extensions
      $extensions_arr = array( "jpg","png","jpeg", "gif", "jfif",);

      // Check extension
      if( in_array($extension,$extensions_arr) ){
 
          // Check imgfile size
          if(($_FILES['imgfile']['size'] >= $maxsize) || ($_FILES["imgfile"]["size"] == 0)) {
             $_SESSION['message'] = "File too large. File must be less than 100MB.";
          }
          
          else{
             
            	$sourcepath = $_FILES["imgfile"]["tmp_name"];
	$targetpath = "../img/" . $_FILES["imgfile"]["name"];
	move_uploaded_file($sourcepath,$targetpath);

	$BTCLOGO = "img/".$_FILES['imgfile']['name'];  
  
}
} 













 $maxsize = 104857600; // 100MB
//   if(isset($_FILES['imgfile2']['name']) && $_FILES['imgfile2']['name'] != ''){
    //   $name = $_FILES['imgfile2']['name'];
      $target_dir = "img/";
      
      
      $target_file = $target_dir . basename($_FILES["imgfile2"]["name"]);

      // Select imgfile2 type
      $extension = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

      // Valid imgfile2 extensions
      $extensions_arr = array( "jpg","png","jpeg", "gif", "jfif",);

      // Check extension
      if( in_array($extension,$extensions_arr) ){
 
          // Check imgfile2 size
          if(($_FILES['imgfile2']['size'] >= $maxsize) || ($_FILES["imgfile2"]["size"] == 0)) {
             $_SESSION['message'] = "File too large. File must be less than 100MB.";
          }
          
          else{
             
            	$sourcepath = $_FILES["imgfile2"]["tmp_name"];
	$targetpath = "../img/" . $_FILES["imgfile2"]["name"];
	move_uploaded_file($sourcepath,$targetpath);

	$USDTLOGO = "img/".$_FILES['imgfile2']['name'];  
  
}
} 











 $addresssql = mysql_query("UPDATE settings SET  BTCLOGO='$BTCLOGO', USDTLOGO='$USDTLOGO' WHERE id='$id'");
    
     echo mysql_error();
    $success_walletlogo="<div class='alert alert-success' style='margin-bottom:20px;'>QCODE UPDATED SUCCESSFULLY<meta http-equiv='refresh' content='5; url=' /></div>";
    
  

}








?>
    
    
   <!--<center>-->
   <!-- <legend>CHANGE WALLET QCODE</legend>-->
   <!-- </center>-->
        
          <br>
          
          	<?php
                        if(isset($error4)){
                            echo $error4;
                        }elseif(isset($error2)){
                            echo $error2;
                        }elseif(isset($error)){
                            echo $error;
                        }elseif(isset($success_walletlogo)){
                            echo $success_walletlogo;
                        }
                        ?>   
          
  <!--        <form method="POST"  enctype="multipart/form-data" action=""> -->
  <!--                            <div class='form-group row'>-->
  <!--                                      <label class='form-control' for='Views' class='col-sm-3 text-right control-label col-form-label'> UPLOAD BTC QCODE</label>-->
  <!--                                      <div class='col-sm-9'>-->
  <!--        <input   type="file" class="btn btn-success" name="imgfile" accept="image/*" id="imgfile" data-sigil="file-input" />   -->
  <!--         <img src="../<php echo $ordrow[BTCLOGO] ?>" style="width:45px;height:45px"  />   -->
  <!--            </div>-->
  <!--           </div>-->
             
             
             
  <!--           <hr>-->
             
  <!--             <div class='form-group row'>-->
  <!--                                      <label class='form-control' for='Views' class='col-sm-3 text-right control-label col-form-label'> UPLOAD USDT QCODE</label>-->
  <!--                                      <div class='col-sm-9'>-->
  <!--        <input   type="file" class="btn btn-success" name="imgfile2" accept="image/*" id="imgfile2" data-sigil="file-input" />   -->
  <!--         <img src="../<php echo $ordrow[USDTLOGO] ?>" style="width:45px;height:45px"  />   -->
  <!--            </div>-->
  <!--           </div>-->
             
             
             
             
 
             
             
  <!--<button type="submit" class="btn btn-success btn-block btn-theme-colored2 text-red btn-lg btn-flat" name="walletlogo">CHANGE BTC QCODE</button>-->

  <!--          </form>-->
           
            
            
        </div></div></div>
<!--=====================================-->

</div>

 <?php
require ("footer.php")
?>

