예제 #1
0
function goOrDie($prompt)
{
    $ans = readline("{$prompt} [q] > ");
    if (strpos($ans, "q") === 0) {
        dieHere("Quitting", 0);
    } elseif ($ans === FALSE) {
        dieHere("on ^D", 0);
    } else {
        //echo "Go.\n";
        1;
    }
}
예제 #2
0
        // Insert the records for this Individual, Household or Organization.
        $resultString = insertToIS4C();
        if ($resultString != "OK") {
            //$dbConn->close();
            //$dbConn2->close();
            dieHere("{$resultString}");
        }
        //$insertCount++;
    }
    // update existing members.
    if (True || $is4cOp1 == "update") {
        $resultString = updateIS4C();
        if ($resultString != "OK") {
            //$dbConn->close();
            //$dbConn2->close();
            dieHere("{$resultString}");
        }
        //$updateCount++;
    }
    /*
    else {
        //$dbConn->close();
        //$dbConn2->close();
        dieHere("Unknown is4cOp1 >${is4cOp1}< CardNo >$custdata[CardNo]<\n");
    }
    */
    // The last Civi row.
}
if ($debug == 1) {
    echo "Reported on {$inCount} rows.\n";
}