function get_mainsite_url()
{
    $HTTP_SERVER = get_http_server();
    $url = str_replace('admin/', '', $HTTP_SERVER);
    return $url;
}
function get_mainsite_url()
{
    $HTTP_SERVER = get_http_server();
    $url = str_replace(Tools::getadminfolder() . '/', '', $HTTP_SERVER);
    return $url;
}