0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
cotacao
/
[
Home
]
File: index.php
<?php $url = "https://economia.awesomeapi.com.br/all"; $data = file_get_contents($url); $arrData = json_decode($data, true); ?> <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" type="text/css" href="style.css?version=230"> <!-- Bootstrap CSS --> <meta http-equiv="refresh" content="10800"; url="index.php"> </head> <body> <div class="table-responsive"> <table class="table-striped"> <tbody> <tr> <td class="buydollar"><?php echo 'Compra:' . ' ' . $arrData['USD']['high'];?></td> <td class="selldollar"><?php echo 'Venda:' . ' ' . $arrData['USD']['low'];?></td> <td></td> </tr> <tr> <td class="buygbp"><?php echo 'Compra:' . ' ' . $arrData['GBP']['high'];?></td> <td class="sellgbp"><?php echo 'Venda:' . ' ' . $arrData['GBP']['low'];?></td> </tr> <tr> <td class="buyars"><?php echo 'Compra:' . ' ' . $arrData['ARS']['high'];?></td> <td class="sellars"><?php echo 'Venda:' . ' ' . $arrData['ARS']['low'];?></td> </tr> <tr> <td class="buyeur"><?php echo 'Compra:' . ' ' . $arrData['EUR']['high'];?></td> <td class="selleur"><?php echo 'Venda:' . ' ' . $arrData['EUR']['low'];?></td> </tr> <tr> <td class="buybtc"><?php echo 'Compra:' . ' ' . $arrData['BTC']['high'];?></td> <td class="sellbtc"><?php echo 'Venda:' . ' ' . $arrData['BTC']['low'];?></td> </tr> </tbody> </table> </div> </body> </html>