예제 #1
0
파일: connect.php 프로젝트: WedgeCoop/IS4C
function testremote()
{
    $intConnected = pinghost($_SESSION["mServer"]);
    if ($intConnected == 1) {
        uploadtoServer();
    } else {
        $_SESSION["standalone"] = 1;
    }
    return ($_SESSION["standalone"] + 1) % 2;
}
예제 #2
0
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;
}