|
|
@ -339,6 +339,16 @@ class Page |
|
|
|
|
|
|
|
|
|
|
|
$this->status = new \GtkLabel; |
|
|
|
$this->status = new \GtkLabel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->status->connect( |
|
|
|
|
|
|
|
'activate-link', |
|
|
|
|
|
|
|
function ($label, $href) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->open( |
|
|
|
|
|
|
|
$href |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->footer->add( |
|
|
|
$this->footer->add( |
|
|
|
$this->status |
|
|
|
$this->status |
|
|
|
); |
|
|
|
); |
|
|
@ -591,20 +601,33 @@ class Page |
|
|
|
$this->status->set_markup( |
|
|
|
$this->status->set_markup( |
|
|
|
str_replace( // Custom macros mask from config.json |
|
|
|
str_replace( // Custom macros mask from config.json |
|
|
|
[ |
|
|
|
[ |
|
|
|
'{NAVIGATION_ADDRESS}', |
|
|
|
|
|
|
|
'{TIME_C}', |
|
|
|
'{TIME_C}', |
|
|
|
|
|
|
|
'{REQUEST_BASE}', |
|
|
|
|
|
|
|
'{REQUEST_BASE_URL}', |
|
|
|
'{RESPONSE_CODE}', |
|
|
|
'{RESPONSE_CODE}', |
|
|
|
'{RESPONSE_META}', |
|
|
|
'{RESPONSE_META}', |
|
|
|
'{RESPONSE_LENGTH}', |
|
|
|
'{RESPONSE_LENGTH}', |
|
|
|
'{RESPONSE_SECONDS}' |
|
|
|
'{RESPONSE_SECONDS}' |
|
|
|
], |
|
|
|
], |
|
|
|
[ |
|
|
|
[ |
|
|
|
urlencode( |
|
|
|
|
|
|
|
$url |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
date( |
|
|
|
date( |
|
|
|
'c' |
|
|
|
'c' |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
$origin->getHost(), |
|
|
|
|
|
|
|
sprintf( |
|
|
|
|
|
|
|
'<a href="%s">%s</a>', |
|
|
|
|
|
|
|
$origin->get( |
|
|
|
|
|
|
|
true, // scheme |
|
|
|
|
|
|
|
true, // user |
|
|
|
|
|
|
|
true, // pass |
|
|
|
|
|
|
|
true, // host |
|
|
|
|
|
|
|
true, // port |
|
|
|
|
|
|
|
false, // path |
|
|
|
|
|
|
|
false, // query |
|
|
|
|
|
|
|
false // fragment |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
$origin->getHost() |
|
|
|
|
|
|
|
), |
|
|
|
$response->getCode(), |
|
|
|
$response->getCode(), |
|
|
|
($code ? sprintf('%d:', $code) : '') |
|
|
|
($code ? sprintf('%d:', $code) : '') |
|
|
|
. |
|
|
|
. |
|
|
|