Ejemplo n.º 1
0
/**
 * Do an HTTP request to test clean URLs availability
 *
 * @return string
 */
function inst_http_request_clean_urls()
{
    $url = getXCartURL();
    $url_request = $url . '/check/for/clean/urls.html';
    $result = inst_http_request($url_request, true);
    return in_array($result, array(200, 301, 302));
}
Ejemplo n.º 2
0
/**
 * Do an HTTP request to the install.php
 *
 * @param string $action_str
 *
 * @return string
 */
function inst_http_request_install($action_str, $url = null)
{
    if (is_null($url)) {
        $url = getLiteCommerceURL();
    }
    $url_request = $url . '/install.php?target=install' . ($action_str ? '&' . $action_str : '');
    return inst_http_request($url_request);
}