SetFlagFile("./pgs/country.csv"); $Reflector->SetPIDFile($Service['PIDFile']); $Reflector->SetXMLFile($Service['XMLFile']); $Reflector->LoadXML(); if ($CallingHome['Active']) { $CallHomeNow = false; if (!file_exists("/tmp/callinghome.php")) { $Hash = CreateCode(16); $LastSync = 0; $Ressource = @fopen("/tmp/callinghome.php","w"); if ($Ressource) { @fwrite($Ressource, "'); @fclose($Ressource); @exec("chmod 777 /tmp/callinghome.php"); $CallHomeNow = true; } } else { include("/tmp/callinghome.php"); if ($LastSync < (time() - $CallingHome['PushDelay'])) { $Ressource = @fopen("/tmp/callinghome.php","w"); if ($Ressource) { @fwrite($Ressource, "'); @fclose($Ressource); } $CallHomeNow = true; } } if ($CallHomeNow || isset($_GET['callhome'])) { $Reflector->SetCallingHome($CallingHome['Active'], $CallingHome['MyDashBoardURL'], $Hash, $CallingHome['ServerURL'], $CallingHome['Country'], $CallingHome['Comment']); $Reflector->PushCallingHome(); } } ?>