function testremote() { $intConnected = pinghost($_SESSION["mServer"]); if ($intConnected == 1) { uploadtoServer(); } else { $_SESSION["standalone"] = 1; } return ($_SESSION["standalone"] + 1) % 2; }
function testremote() { /* if ($_SESSION["remoteDBMS"] == "mysql") { if (file_exists("/pos/is4c/tmp/mysql.sock")) $intConnected = 1; else $intConnected = 0; } else { */ $intConnected = pinghost($_SESSION["mServer"]); // } if ($intConnected == 1) { uploadtoServer(); } else { $_SESSION["standalone"] = 1; } return ($_SESSION["standalone"] + 1) % 2; }