The script of the BTC cryptocurrency converter


    $summ = !empty($_POST['summ'])?$_POST['summ']:NULL;
    $content = !empty($_POST['content'])?$_POST['content']:NULL;
    $currency = !empty($_POST['currency'])?$_POST['currency']:NULL;

// we output the paired text.

        case 'btc': 
        echo '<p>'. $summ .' USD corresponds to '. $summ * 0.00014 .' BTC</p>'; 
        case 'dollar': 
        echo '<p>'. $summ .' The dollar corresponds to '. $summ * $content .' руб</p>'; 
        case 'pound': 
        echo '<p>'. $summ .' The pound corresponds to '. $summ * 27.60 .' руб</p>'; 
        echo  'Enter the amount';


//where will we parse the information from
 $content = file_get_contents('');

// We determine the position of the line to which everything needs to be cut off
 $pos = strpos($content, '<div class="value">');

//We cut off everything that goes to the position we need
 $content = substr($content, $pos);

// In exactly the same way, we find the position of the final line
 $pos = strpos($content, '<div class="change">');

// We cut off the required number of characters from zero
 $content = substr($content, 0, $pos);

//if there is a text in the text that we don't need, we cut it out
 $content = str_replace('<div class="value"><div class="flag alt" style="background-position:-560px -64px"></div>','', $content);

 $content = str_replace('BTC','', $content);
  $content = str_replace('</div>','', $content);
  $content = str_replace(' ','', $content);

// we output the paired text.
//echo $content;


<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<select size="1" name="currency">
<option value="btc">btc</option>
<option value="dollar">dollar</option>
<option value="pound">pound</option>
<input type="hidden" name="content" size="20" value="<?php echo $content;?>" />
<input type="text" name="summ" size="20" value="<?php echo (int)$summ;?>" />
<input type="submit" name="ok" />

Check Also

XAXINO V3.0 - Software Casino Platform (Nulled)

XAXINO V3.0 – Software Casino Platform (Nulled)

XAXINO V3.0 – Software Casino Platform (Nulled) Highlighted Features 20+ payment gateways and 250+ currency …

Leave a Reply

Your email address will not be published. Required fields are marked *