Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php header("Content-Type: text/html; charset=utf-8"); //$main_url="https://www.gelbes..
Decoded Output download
<?php
header("Content-Type: text/html; charset=utf-8");
//$main_url="https://www.gelbeseiten.de/kfz-werkstaetten/67655-kaiserslautern";
//$dom = new DOMDocument;
// http://s719743871.online.de/lverwaltung/GMT/masterGodModeTrader.php
# Use the Curl extension to query Google and get back a page of results
//for($iii=0;$iii<=15;$iii++)
//{
//header ('Content-type: text/html; charset=utf-8');
/* $host="localhost";
$username="dbo769951652";
$password="1247asfjasfjQWRU";
$databasename="db769951652";
$connectarse = new mysqli($host, $username, $password, $databasename);
if(isset($_REQUEST["anzahl"]))
$anzahl=trim($_REQUEST["anzahl"]);
if(isset($_REQUEST["webseite"]))
$webseite=trim($_REQUEST["webseite"]);
if(isset($_REQUEST["kategorie"]))
$kategorie=trim($_REQUEST["kategorie"]);
if(isset($_REQUEST["umkreis"]))
$umkreis=trim($_REQUEST["umkreis"]);
//echo $umkreis; die();
foreach($_REQUEST as $req_key=>$req_value){
echo $req_key." ".$req_value."<br>";
}
//die();
$anzahl_eintraege=$anzahl;
//echo anzahl;echo $webseite;echo $kategorie."<br>";
$anzahl_seiten=$anzahl_eintraege%15;
if($anzahl_seiten==0 && $anzahl_eintraege>15)
{
$anzahl_seiten=$anzahl_eintraege/15;
}
elseif($anzahl_eintraege>=1 && $anzahl_eintraege<=15)
{
$anzahl_seiten=0;
}
else
{
$rest_seiten=$anzahl_eintraege-$anzahl_seiten;
$anzahl_seiten=$rest_seiten/15;
}
$str_kategorie=$kategorie;
function utf8encodeArray($array)
{
foreach($array as $key => $value)
{
if(is_array($value))
{
$array[$key] = utf8encodeArray($value);
}
elseif(!mb_detect_encoding($value, 'UTF-8', true))
{
$array[$key] = utf8_encode($value);
}
}
}
function utf8_string_array_encode(&$array){
$func = function(&$value,&$key){
if(is_string($value)){
$value = utf8_encode($value);
}
if(is_string($key)){
$key = utf8_encode($key);
}
if(is_array($value)){
utf8_string_array_encode($value);
}
};
array_walk($array,$func);
return $array;
}
*/
$url="https://www.godmode-trader.de/";
//echo $url."<br>";
//die();
//echo $iii."<br>";
//echo $url."<br>";
$ch = curl_init();
//$timeout = 30;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,30);
curl_setopt($ch, CURLOPT_TIMEOUT,60);
$html = curl_exec($ch);
curl_close($ch);
$dom = new DOMDocument();
@$dom->loadHTML($html);
$yyy=0;
foreach($dom->getElementsByTagName('div') as $link) {
# Show the <a href>
//$var_attribute_prop=$link->getAttribute("itemprop");
$var_attribute_class = $link->getAttribute("class");
//$var_attribute_href = $link->getElementsByTagName("a");
if($var_attribute_prop==="name")
{
$str_name=$link->nodeValue;//, PHP_EOL;
$complettAdresse.=$str_name;
//$str_name)."<br>";
}
if($var_attribute_class==="c-market-overview")
{
$cntPlus=0;
$cntMinus=0;
function findMinus($numberString) {
if (strstr($numberString, '-')) {
return 0;
} else {
return 1;
}
}
$li = $link->getElementsByTagName("li");
foreach($li as $key=>$value)
{
//echo $key."<br>";
if($key==0) {
$span = $link->getElementsByTagName("span");
//echo $span->nodeValue;
foreach($span as $span_key=>$span_value){
//dax
if($span_key===0){
$dax_name=$span_value->nodeValue;
//echo $dax_name." ";
}
elseif($span_key===1){
$dax_value=$span_value->nodeValue;
//echo $dax_value." ";
}
elseif($span_key===2){
$dax_persent=$span_value->nodeValue;
//$dax_persent=(float)$dax_persent;
//echo $dax_persent."<br>";
if(findMinus($dax_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//es50
elseif($span_key===3){
$es50_name=$span_value->nodeValue;
// echo $es50_name." ";
}
elseif($span_key===4){
$es50_value=$span_value->nodeValue;
//echo $es50_value." ";
}
elseif($span_key===5){
$es50_persent=$span_value->nodeValue;
//echo $es50_persent."<br>";
if(findMinus($es50_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
// dow jones
elseif($span_key===6){
$dow_name=$span_value->nodeValue;
// echo $dow_name." ";
}
elseif($span_key===7){
$dow_value=$span_value->nodeValue;
// echo $dow_value." ";
}
elseif($span_key===8){
$dow_persent=$span_value->nodeValue;
// echo $dow_persent."<br>";
if(findMinus($dow_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
// nasdaq
elseif($span_key===9){
$nasdaq_name=$span_value->nodeValue;
//echo $nasdaq_name." ";
}
elseif($span_key===10){
$nasdaq_value=$span_value->nodeValue;
// echo $nasdaq_value." ";
}
elseif($span_key===11){
$nasdaq_persent=$span_value->nodeValue;
// echo $nasdaq_persent."<br>";
if(findMinus($nasdaq_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//Gold
elseif($span_key===12){
$gold_name=$span_value->nodeValue;
// echo $gold_name." ";
}
elseif($span_key===13){
$gold_value=$span_value->nodeValue;
//echo $gold_value." ";
}
elseif($span_key===14){
$gold_persent=$span_value->nodeValue;
//echo $gold_persent."<br>";
if(findMinus($gold_persent)==1)
$cntMinus++;
else
$cntPlus++;
}
//eurUsd
elseif($span_key===15){
$eurUsd_name=$span_value->nodeValue;
//echo $eurUsd_name." ";
}
elseif($span_key===16){
$eurUsd_value=$span_value->nodeValue;
//echo $eurUsd_value." ";
}
elseif($span_key===17){
$eurUsd_persent=$span_value->nodeValue;
//echo $eurUsd_persent."<br>";
if(findMinus($eurUsd_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//brent grud oil
elseif($span_key===18){
$brent_name=$span_value->nodeValue;
//echo $brent_name." ";
}
elseif($span_key===19){
$brent_value=$span_value->nodeValue;
//echo $brent_value." ";
}
elseif($span_key===20){
$brent_persent=$span_value->nodeValue;
//echo $brent_persent."<br>";
if(findMinus($brent_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//s&p
elseif($span_key===21){
$sp_name=$span_value->nodeValue;
//echo $sp_name." ";
}
elseif($span_key===22){
$sp_value=$span_value->nodeValue;
//echo $sp_value." ";
}
elseif($span_key===23){
$sp_persent=$span_value->nodeValue;
// echo $sp_persent."<br>";
if(findMinus($sp_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//bundFuture
elseif($span_key===24){
$bundFuture_name=$span_value->nodeValue;
//echo $bundFuture_name." ";
}
elseif($span_key===25){
$bundFuture_value=$span_value->nodeValue;
//echo $bundFuture_value." ";
}
elseif($span_key===26){
$bundFuture_persent=$span_value->nodeValue;
//echo $bundFuture_persent."<br>";
if(findMinus($bundFuture_persent)==0)
$cntPlus++;
else
$cntMinus++;
}
//mdax
elseif($span_key===27){
$mdax_name=$span_value->nodeValue;
//echo $mdax_name." ";
}
elseif($span_key===28){
$mdax_value=$span_value->nodeValue;
//echo $mdax_value." ";
}
elseif($span_key===29){
$mdax_persent=$span_value->nodeValue;
// echo $mdax_persent."<br>";
if(findMinus($mdax_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
}
} else {
//echo $key."<br>";
}
}
//echo "<br><span style='color:green'><h1>".$cntPlus."</h1></span> <span style='color:red'><h1>".$cntMinus."</h1></span>";
}
/*
0 DAX
1 11.321,00
2 2,23 %
3 ES50
4 2.954,00
5 0,94 %
6 DJIA
7 24.688,00
8 0,91 %
9 NDQ
10 9.510,50
11 1,03 %
12 Gold
13 1.728,81
14 -0,38 %
15 EUR/USD
16 1,09026
17 0,06 %
18 Brent Crude l
19 35,16400
20 -0,49 %
21 S&P 500
22 2.984,50
23 0,92 %
24 Euro-Bund Future
25 173,101
26 0,02 %
27 MDAX
28 24.976,00
29 1,57 %
30 Watchlist Einstellungen
*/
$yyy++;
}
//$connectarse->close();
?>
Did this file decode correctly?
Original Code
<?php
header("Content-Type: text/html; charset=utf-8");
//$main_url="https://www.gelbeseiten.de/kfz-werkstaetten/67655-kaiserslautern";
//$dom = new DOMDocument;
// http://s719743871.online.de/lverwaltung/GMT/masterGodModeTrader.php
# Use the Curl extension to query Google and get back a page of results
//for($iii=0;$iii<=15;$iii++)
//{
//header ('Content-type: text/html; charset=utf-8');
/* $host="localhost";
$username="dbo769951652";
$password="1247asfjasfjQWRU";
$databasename="db769951652";
$connectarse = new mysqli($host, $username, $password, $databasename);
if(isset($_REQUEST["anzahl"]))
$anzahl=trim($_REQUEST["anzahl"]);
if(isset($_REQUEST["webseite"]))
$webseite=trim($_REQUEST["webseite"]);
if(isset($_REQUEST["kategorie"]))
$kategorie=trim($_REQUEST["kategorie"]);
if(isset($_REQUEST["umkreis"]))
$umkreis=trim($_REQUEST["umkreis"]);
//echo $umkreis; die();
foreach($_REQUEST as $req_key=>$req_value){
echo $req_key." ".$req_value."<br>";
}
//die();
$anzahl_eintraege=$anzahl;
//echo anzahl;echo $webseite;echo $kategorie."<br>";
$anzahl_seiten=$anzahl_eintraege%15;
if($anzahl_seiten==0 && $anzahl_eintraege>15)
{
$anzahl_seiten=$anzahl_eintraege/15;
}
elseif($anzahl_eintraege>=1 && $anzahl_eintraege<=15)
{
$anzahl_seiten=0;
}
else
{
$rest_seiten=$anzahl_eintraege-$anzahl_seiten;
$anzahl_seiten=$rest_seiten/15;
}
$str_kategorie=$kategorie;
function utf8encodeArray($array)
{
foreach($array as $key => $value)
{
if(is_array($value))
{
$array[$key] = utf8encodeArray($value);
}
elseif(!mb_detect_encoding($value, 'UTF-8', true))
{
$array[$key] = utf8_encode($value);
}
}
}
function utf8_string_array_encode(&$array){
$func = function(&$value,&$key){
if(is_string($value)){
$value = utf8_encode($value);
}
if(is_string($key)){
$key = utf8_encode($key);
}
if(is_array($value)){
utf8_string_array_encode($value);
}
};
array_walk($array,$func);
return $array;
}
*/
$url="https://www.godmode-trader.de/";
//echo $url."<br>";
//die();
//echo $iii."<br>";
//echo $url."<br>";
$ch = curl_init();
//$timeout = 30;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,30);
curl_setopt($ch, CURLOPT_TIMEOUT,60);
$html = curl_exec($ch);
curl_close($ch);
$dom = new DOMDocument();
@$dom->loadHTML($html);
$yyy=0;
foreach($dom->getElementsByTagName('div') as $link) {
# Show the <a href>
//$var_attribute_prop=$link->getAttribute("itemprop");
$var_attribute_class = $link->getAttribute("class");
//$var_attribute_href = $link->getElementsByTagName("a");
if($var_attribute_prop==="name")
{
$str_name=$link->nodeValue;//, PHP_EOL;
$complettAdresse.=$str_name;
//$str_name)."<br>";
}
if($var_attribute_class==="c-market-overview")
{
$cntPlus=0;
$cntMinus=0;
function findMinus($numberString) {
if (strstr($numberString, '-')) {
return 0;
} else {
return 1;
}
}
$li = $link->getElementsByTagName("li");
foreach($li as $key=>$value)
{
//echo $key."<br>";
if($key==0) {
$span = $link->getElementsByTagName("span");
//echo $span->nodeValue;
foreach($span as $span_key=>$span_value){
//dax
if($span_key===0){
$dax_name=$span_value->nodeValue;
//echo $dax_name." ";
}
elseif($span_key===1){
$dax_value=$span_value->nodeValue;
//echo $dax_value." ";
}
elseif($span_key===2){
$dax_persent=$span_value->nodeValue;
//$dax_persent=(float)$dax_persent;
//echo $dax_persent."<br>";
if(findMinus($dax_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//es50
elseif($span_key===3){
$es50_name=$span_value->nodeValue;
// echo $es50_name." ";
}
elseif($span_key===4){
$es50_value=$span_value->nodeValue;
//echo $es50_value." ";
}
elseif($span_key===5){
$es50_persent=$span_value->nodeValue;
//echo $es50_persent."<br>";
if(findMinus($es50_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
// dow jones
elseif($span_key===6){
$dow_name=$span_value->nodeValue;
// echo $dow_name." ";
}
elseif($span_key===7){
$dow_value=$span_value->nodeValue;
// echo $dow_value." ";
}
elseif($span_key===8){
$dow_persent=$span_value->nodeValue;
// echo $dow_persent."<br>";
if(findMinus($dow_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
// nasdaq
elseif($span_key===9){
$nasdaq_name=$span_value->nodeValue;
//echo $nasdaq_name." ";
}
elseif($span_key===10){
$nasdaq_value=$span_value->nodeValue;
// echo $nasdaq_value." ";
}
elseif($span_key===11){
$nasdaq_persent=$span_value->nodeValue;
// echo $nasdaq_persent."<br>";
if(findMinus($nasdaq_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//Gold
elseif($span_key===12){
$gold_name=$span_value->nodeValue;
// echo $gold_name." ";
}
elseif($span_key===13){
$gold_value=$span_value->nodeValue;
//echo $gold_value." ";
}
elseif($span_key===14){
$gold_persent=$span_value->nodeValue;
//echo $gold_persent."<br>";
if(findMinus($gold_persent)==1)
$cntMinus++;
else
$cntPlus++;
}
//eurUsd
elseif($span_key===15){
$eurUsd_name=$span_value->nodeValue;
//echo $eurUsd_name." ";
}
elseif($span_key===16){
$eurUsd_value=$span_value->nodeValue;
//echo $eurUsd_value." ";
}
elseif($span_key===17){
$eurUsd_persent=$span_value->nodeValue;
//echo $eurUsd_persent."<br>";
if(findMinus($eurUsd_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//brent grud oil
elseif($span_key===18){
$brent_name=$span_value->nodeValue;
//echo $brent_name." ";
}
elseif($span_key===19){
$brent_value=$span_value->nodeValue;
//echo $brent_value." ";
}
elseif($span_key===20){
$brent_persent=$span_value->nodeValue;
//echo $brent_persent."<br>";
if(findMinus($brent_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//s&p
elseif($span_key===21){
$sp_name=$span_value->nodeValue;
//echo $sp_name." ";
}
elseif($span_key===22){
$sp_value=$span_value->nodeValue;
//echo $sp_value." ";
}
elseif($span_key===23){
$sp_persent=$span_value->nodeValue;
// echo $sp_persent."<br>";
if(findMinus($sp_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
//bundFuture
elseif($span_key===24){
$bundFuture_name=$span_value->nodeValue;
//echo $bundFuture_name." ";
}
elseif($span_key===25){
$bundFuture_value=$span_value->nodeValue;
//echo $bundFuture_value." ";
}
elseif($span_key===26){
$bundFuture_persent=$span_value->nodeValue;
//echo $bundFuture_persent."<br>";
if(findMinus($bundFuture_persent)==0)
$cntPlus++;
else
$cntMinus++;
}
//mdax
elseif($span_key===27){
$mdax_name=$span_value->nodeValue;
//echo $mdax_name." ";
}
elseif($span_key===28){
$mdax_value=$span_value->nodeValue;
//echo $mdax_value." ";
}
elseif($span_key===29){
$mdax_persent=$span_value->nodeValue;
// echo $mdax_persent."<br>";
if(findMinus($mdax_persent)==1)
$cntPlus++;
else
$cntMinus++;
}
}
} else {
//echo $key."<br>";
}
}
//echo "<br><span style='color:green'><h1>".$cntPlus."</h1></span> <span style='color:red'><h1>".$cntMinus."</h1></span>";
}
/*
0 DAX
1 11.321,00
2 2,23 %
3 ES50
4 2.954,00
5 0,94 %
6 DJIA
7 24.688,00
8 0,91 %
9 NDQ
10 9.510,50
11 1,03 %
12 Gold
13 1.728,81
14 -0,38 %
15 EUR/USD
16 1,09026
17 0,06 %
18 Brent Crude l
19 35,16400
20 -0,49 %
21 S&P 500
22 2.984,50
23 0,92 %
24 Euro-Bund Future
25 173,101
26 0,02 %
27 MDAX
28 24.976,00
29 1,57 %
30 Watchlist Einstellungen
*/
$yyy++;
}
//$connectarse->close();
?>
Function Calls
header | 1 |
Stats
MD5 | 4536ebf302c5057b7bcf8d4b5d89f73e |
Eval Count | 0 |
Decode Time | 120 ms |