Cannot connect to invoices.lan\:80 - (12637320)
Connection error
Could not open URL http://invoices.lan\/index.php?module=invoices&view=templates/template&invoice=9&action=view&location=pdf you've specified.
No response from server
Fetching: http://invoices.lan\/index.php?module=invoices&view=templates/template&invoice=9&action=view&location=pdf Cannot connect to invoices.lan\:80 - (12637320) Cannot open [url=http://invoices.lan\/index.php?module=invoices&view=templates/template&invoice=9&action=view&location=pdf]http://invoices.lan\/index.php?module=invoices&view=templates/template&invoice=9&action=view&location=pdf
// Work around REQUEST_URI bug under W2K/IIS/CGI/PHP
if (!isset($_SERVER['REQUEST_URI']) and isset($_SERVER['SCRIPT_NAME'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
if (isset($_SERVER['QUERY_STRING']) and !empty($_SERVER['QUERY_STRING']))
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
$url = str_replace("\/", "/", $url);
$this->url = $url;
function urlPDF($invoiceID)
{
global $http_auth;
$script = "/index.php?module=invoices&view=templates/template&invoice=$invoiceID&action=view&location=pdf";
$port = "";
$dir = dirname($_SERVER['PHP_SELF']);
//set the port of http(s) section
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') {
$_SERVER['FULL_URL'] = "https://";
//http://simpleinvoices.org/forum/topic-457.html
//below code no longer required - please test if your using a non standard port
/*
if($_SERVER['SERVER_PORT']!="443") {
$port .= "://" . $_SERVER['SERVER_PORT'];
}
*/
} else {
$_SERVER['FULL_URL'] = "http://";
//http://simpleinvoices.org/forum/topic-457.html
//below code no longer required - please test if your using a non standard port
/*
if($_SERVER['SERVER_PORT']!="80") {
$port = ":" . $_SERVER['SERVER_PORT'];
}
*/
}
//merge it all togehter
if (isset($_SERVER['HTTP_HOST'])) {
$_SERVER['FULL_URL'] .= $http_auth.$_SERVER['HTTP_HOST'].$dir.$script;
} else {
$_SERVER['FULL_URL'] .= $http_auth.$_SERVER['HTTP_HOST'].$dir.$script;
}
return $_SERVER['FULL_URL'];
}1 to 3 of 3