Example #1
0
/**
 * Function to handle HTTP-POST-requests.
 * @param Array, $requestData are the requested data
 */
function post(array $requestData)
{
    $requestData['#'] = __buildHashCode($requestData);
    if ($requestData['#']) {
        __delete('PASSWORDS', $requestData);
    }
    $result = __save('PASSWORDS', $requestData, true);
    return 1 == __saved($requestData, $result);
}
Example #2
0
/**
 * Function to handle HTTP-POST-requests.
 * @param Array, $requestData are the requested data
 */
function put(array $requestData, $isPost = false)
{
    $row = __joinAccounts($requestData);
    __save('ADDRESSES', $row, $isPost);
    return get($requestData);
}
Example #3
0
/**
 * Function to handle HTTP-POST-requests.
 * @param Array, $requestData are the requested data
 */
function post(array $requestData)
{
    return __save('DOMAINS', $requestData, true);
}
Example #4
0
/**
 * Function to handle HTTP-POST-requests.
 * @param Array, $requestData are the requested data
 */
function post(array $requestData)
{
    __save('ACCOUNTS', prepareSave($requestData), true);
    return get($requestData);
}