uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
member
/
scripts
/
..
/
report
/
..
/
test.php
/
/
<?php session_start(); include('../connection.php'); include '../function_lib.php'; if($_POST){ $amt=$_POST['amt']; $from=$_POST['from']; $to=$_POST['to']; echo $r=converter($amt,$from,$to); //echo $res=converter($_POST['amt'],$_POST['from'],$_POST['to']); //echo $r; } function converter($amt,$from,$to){ $res=file_get_contents('http://www.google.com/ig/calculator?hl=en&q='.$amt.$from.'=?'.$to); $data=explode('"',$res); if($data[1]=='' || $data[3]==''){ return "Some error occured error! Sorry"; }else{ return $data[1]." = ".$data[3]; } } $country_currency=array( "AED"=>"UAE Dirham", "AMD"=>"Armenian Dram", "ANG"=>"Netherlands Antillean Guilder", "ARS"=>"Argentine Peso", "AUD"=>"Australian Dollar", "BGN"=>"Bulgarian Lev", "BHD"=>"Bahraini Dinar", "BND"=>"Brunei Dollar", "BOB"=>"Boliviano", "BRL"=>"Brazilian Real", "BWP"=>"Pula", "CAD"=>"Canadian Dollar", "CHF"=>"Swiss Franc", "CLP"=>"Chilean Peso", "CNY"=>"Yuan Renminbi", "COP"=>"Colombian Peso", "CRC"=>"Costa Rican Colon", "CZK"=>"Czech Koruna", "DKK"=>"Danish Krone", "DOP"=>"Dominican Peso", "DZD"=>"Algerian Dinar", "EGP"=>"Egyptian Pound", "EUR"=>"Euro", "FJD"=>"Fiji Dollar", "GBP"=>"Pound Sterling", "HKD"=>"Hong Kong Dollar", "HNL"=>"Lempira", "HRK"=>"Croatian Kuna", "HUF"=>"Forint", "IDR"=>"Rupiah", "ILS"=>"New Israeli Sheqel", "INR"=>"Indian Rupee", "IQD"=>"Iraqi Dinar", "IRR"=>"Iranian Rial", "JMD"=>"Jamaican Dollar", "JOD"=>"Jordanian Dinar", "JPY"=>"Yen", "KES"=>"Kenyan Shilling", "KPW"=>"North Korean Won", "KRW"=>" South Korean Won", "KWD"=>"Kuwaiti Dinar", "KYD"=>"Cayman Islands Dollar", "KZT"=>"Tenge", "LBP"=>"Lebanese Pound", "LKR"=>"Sri Lanka Rupee", "LTL"=>"Lithuanian Litas", "LVL"=>"Latvian Lats", "MAD"=>"Moroccan Dirham", "MDL"=>"Moldovan Leu", "MKD"=>"Macedonian denari Denar", "MNT"=>"Tugrik", "MOP"=>"Pataca", "MRO"=>"Ouguiya", "MUR"=>"Mauritius Rupee", "MVR"=>"Rufiyaa", "MWK"=>"Kwacha", "MXN"=>"Mexican Peso", "MXV"=>"Mexican Unidad de Inversion (UDI)", "MYR"=>"Malaysian Ringgit", "MZN"=>"Mozambique Metical", "NAD"=>"Namibia Dollar", "NGN"=>"Naira", "NIO"=>"Cordoba Oro", "NOK"=>"Norwegian Krone", "NPR"=>"Nepalese Rupee", "NZD"=>"New Zealand Dollar", "OMR"=>"Rial Omani", "PAB"=>"Balboa", "PEN"=>"Nuevo Sol", "PGK"=>"Kina", "PHP"=>"Philippine Peso", "PKR"=>"Pakistan Rupee", "PLN"=>"Zloty", "PYG"=>"Guarani", "QAR"=>"Qatari Rial", "RON"=>"New Romanian Leu", "RSD"=>"Serbian Dinar", "RUB"=>"Russian Ruble", "RWF"=>"Rwanda Franc", "SAR"=>"Saudi Riyal", "SBD"=>"Solomon Islands Dollar", "SCR"=>"Seychelles Rupee", "SDG"=>"Sudanese Pound", "SEK"=>"Swedish Krona", "SGD"=>"Singapore Dollar", "SHP"=>"Saint Helena Pound", "SLL"=>"Leone", "SOS"=>"Somali Shilling", "SRD"=>"Surinam Dollar", "SSP"=>"South Sudanese Pound", "STD"=>"Dobra", "SVC"=>"El Salvador Colon", "SYP"=>"Syrian Pound", "SZL"=>"Lilangeni", "THB"=>"Baht", "TJS"=>"Somoni", "TMT"=>"Turkmenistan New Manat", "TND"=>"Tunisian Dinar", "TOP"=>"Pa'anga", "TRY"=>"Turkish Lira", "TTD"=>"Trinidad and Tobago Dollar", "TWD"=>"New Taiwan Dollar", "TZS"=>"Tanzanian Shilling", "UAH"=>"Hryvnia", "UGX"=>"Uganda Shilling", "USD"=>"US Dollar", "UYI"=>"Uruguay Peso en Unidades Indexadas (URUIURUI)", "UYU"=>"Peso Uruguayo", "UZS"=>"Uzbekistan Sum", "VEF"=>"Bolivar", "VND"=>"Dong", "VUV"=>"Vatu", "WST"=>"Tala", "XAF"=>"CFA Franc BEAC", "XCD"=>"East Caribbean Dollar", "XDR"=>"SDR (Special Drawing Right)", "XFU"=>"UIC-Franc", "XOF"=>"CFA Franc BCEAO", "XPD"=>"Palladium", "XPF"=>"CFP Franc", "XPT"=>"Platinum", "XSU"=>"Sucre", "XTS"=>"Codes specifically reserved for testing purposes", "XUA"=>"ADB Unit of Account", "XXX"=>"The codes assigned for transactions where no currency is involved", "YER"=>"Yemeni Rial", "ZAR"=>"Rand", "ZMK"=>"Zambian Kwacha", "ZWL"=>"Zimbabwe Dollar"); function currency($from_Currency,$to_Currency,$amount) { $amount = urlencode($amount); $from_Currency = urlencode($from_Currency); $to_Currency = urlencode($to_Currency); $url = "http://www.google.com/ig/calculator?hl=en&q=$amount$from_Currency=?$to_Currency"; $ch = curl_init(); $timeout = 0; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $rawdata = curl_exec($ch); curl_close($ch); $data = explode('"', $rawdata); $data = explode(' ', $data['3']); $var = $data['0']; print_r($var); return round($var,2); } function calcCurrency($value=0, $fromCurrency='USD', $toCurrency='EUR', $round=true) { $timestamp = time(); $fromCurrency = preg_replace('[^A-Z]', '', strtoupper(trim($fromCurrency))); $toCurrency = preg_replace('[^A-Z]', '', strtoupper(trim($toCurrency))); $round = (bool) $round; $wrongJSON = file_get_contents("http://www.google.com/ig/calculator?hl=en&q=1$fromCurrency=?$toCurrency"); $search = array('lhs', 'rhs', 'error', 'icc'); $replace = array('"lhs"', '"rhs"', '"error"', '"icc"'); $json = str_replace($search, $replace, $wrongJSON); $jsonData = json_decode($json, true); if ('' !== $jsonData['error']) throw new Exception('FEHLER: '.$jsonData['error']); $rhs = explode(' ', $jsonData['rhs'], 2); $calcValue = floatval(0.00); $value = floatval($value); $ratio = floatval($rhs[0]); // G�ltigkeitspr�fungen if ($value < 0) throw new Exception('Umzurechnender Wert darf nicht negativ sein.'); // Plausibilit�tspr�fung der eingestellten W�hrung und Festlegung if ($toCurrency == $fromCurrency) { // Ursprungsw�hrung = Zielw�hrung | Es erfolgt keine Berechnung $calcValue = $value; $ratio = 1; } else { $calcValue = floatval($value * $ratio); } // Array mit R�ckgabewerten erzeugen und zur�ck geben return array( 'timestamp' => $timestamp, 'datetime_iso' => date('Y-m-d H:i:s', $timestamp), 'datetime_de' => date('d.m.Y H:i:s', $timestamp), 'value' => $value, 'from' => $fromCurrency, 'to' => $toCurrency, 'ratio' => round($ratio, 6), 'result' => (true===$round) ? round($calcValue, 2) : $calcValue ); } ?> <form method="post"> <label>amount</label> <input id="amt" type="text" name="amt" value="1" maxlength="4" /> <label>From</label> <select name="from"> <?php foreach ($country_currency as $key => $value){?> <option value="<?php echo $key?>"><?php echo $value?></option> <?php }?> </select> <label >To</label> <select name="to"> <?php foreach ($country_currency as $key => $value){?> <option value="<?php echo $key?>"><?php echo $value?></option> <?php }?> </select> <input type="submit" > <div id="res"></div> </form>
/home2/wtmwscom/public_html/member/scripts/../report/../test.php