Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:5421:    </if>    </emit>    </if>   </emit>   </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;?orig-url=&page.url:url;&amp;orig-file=&page.virtfile:url;'/></eval></if><else><eval>&modvar.site.404-message:none;</eval></else>", 0, 0, 0 );    }    };       defvar("ZNoSuchFile", NoSuchFileOverride() );    -  defvar("404-message", #"<html> +  defvar("404-message", #"<!DOCTYPE html> + <html>    <head>    <title>404 - Page Not Found</title>    <style> -  .msg { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 12px; -  line-height: 160% } -  .url { font-family: georgia, times, serif; -  font-size: 18px; -  padding-top: 6px; -  padding-bottom: 20px } -  .info { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 10px; -  color: #999999 } +  body { +  background: #f2f1eb; +  color: #000; +  margin: 0 0 49px; +  padding: 30px 30px 0; +  font-family: Verdana, Helvetica, Arial, sans-serif; +  font-size: 12px; +  line-height: 160%; +  } +  html { position: relative; min-height: 100%; } +  a { color: #2331d1; } +  .number { float: left; margin-right: 30px; } +  .header { display: block; margin: 34px 0 30px; max-width: 100%; height: auto; } +  .main { float: left; width: 387px; max-width: 100%; } +  .url { display: block; font-family: Georgia, Times, serif; font-size: 18px; font-weight: normal; margin: 6px 0 20px; } +  .separator { color: #ffbe00; } +  .footer { position: absolute; bottom: 0; height: 49px; } +  .footer img { vertical-align: middle; margin-right: 3px; } +  .info { font-size: 10px; color: #999; }    </style>    </head> - <body bgcolor='#f2f1eb' vlink='#2331d1' alink='#f6f6ff' -  leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' -  style='margin: 0; padding: 0'> -  - <table border='0' cellspacing='0' cellpadding='0' height='99%'> -  <colgroup> -  <col span='3' /> -  <col width='356' /> -  <col width='0*' /> -  </colgroup> -  <tr> -  <td><img src='/internal-roxen-unit' height='30' /></td> -  </tr><tr> -  <td></td> -  <td><img src='/internal-roxen-404' /></td> -  <td><img src='/internal-roxen-unit' width='30' /></td> -  <td valign='bottom'><img src='/internal-roxen-page-not-found-2' /></td> -  <td></td> -  </tr><tr> -  <td><img src='/internal-roxen-unit' height='30' /></td> -  </tr><tr> -  <td colspan='3'></td> -  <td colspan='2'> -  <div class='msg'>Unable to retrieve</div> -  <div class='url'>&page.virtfile;</div> -  </td> -  </tr><tr> -  <td colspan='3'></td> -  <td width='356'> -  <div class='msg'> -  If you feel this is a configuration error, please contact +  <body> +  <img src='/internal-roxen-404' class='number' width='142' height='57'/> +  <div class='main'> +  <img src='/internal-roxen-page-not-found-2' class='header' width='356' height='23'/> +  <p>Unable to retrieve <b class='url'>&page.virtfile;</b></p> +  <p>If you feel this is a configuration error, please contact    the administrators of this server or the author of the -  <if referrer=''> -  <a href='&client.referrer;'>referring page</a>. -  </if><else> -  referring page. -  </else> -  </div> -  </td> -  <td>&nbsp;</td> -  </tr><tr valign='bottom' height='100%'> -  <td colspan='3'></td> -  <td> -  <img src='/internal-roxen-unit' height='20' /> -  <table border='0' cellspacing='0' cellpadding='0'> -  <tr> -  <td><img src='/internal-roxen-roxen-mini.gif' /></td> -  <td class='info'> -  &nbsp;&nbsp;<b>&roxen.product-name;</b> <font color='#ffbe00'>|</font> +  <if referrer=''><a href='&client.referrer;'>referring page</a>.</if> +  <else>referring page.</else> +  </p> +  <div class='footer'> +  <img src='/internal-roxen-roxen-mini.gif' width='19' height='15'/> +  <span class='info'> +  <strong>&roxen.product-name;</strong> <span class='separator'>|</span>    version &roxen.dist-version; -  </td> -  </tr> -  </table> -  <img src='/internal-roxen-unit' height='15' /> -  </td> -  <td></td> -  </tr> - </table> -  +  </span> +  </div> +  </div> +  <br clear='all'/>    </body> - </html>", + </html> + ",    DLOCALE(58, "No such file message"),    TYPE_TEXT_FIELD|VAR_PUBLIC,    DLOCALE(59, "What to return when there is no resource or file "    "available at a certain location."));          class AuthFailedOverride    {    // compatibility with old config-files.    inherit Variable.Variable;
Roxen.git/server/base_server/configuration.pike:5543:    </if>    </emit>    </if>   </emit>   </nooutput><if variable='var.errfile'><eval><insert file='&var.errfile;?orig-url=&page.url:url;&amp;orig-file=&page.virtfile:url;'/></eval></if><else><eval>&modvar.site.401-message:none;</eval></else>", 0, 0, 0 );    }    };       defvar("ZAuthFailed", AuthFailedOverride() );    -  defvar("401-message", #"<html> +  defvar("401-message", #"<!DOCTYPE html> + <html>    <head>    <title>401 - Authentication Failed</title>    <style> -  .msg { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 12px; -  line-height: 160% } -  .url { font-family: georgia, times, serif; -  font-size: 18px; -  padding-top: 6px; -  padding-bottom: 20px } -  .info { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 10px; -  color: #999999 } +  body { +  background: #f2f1eb; +  color: #000; +  margin: 0 0 49px; +  padding: 30px 30px 0; +  font-family: Verdana, Helvetica, Arial, sans-serif; +  font-size: 12px; +  line-height: 160%; +  } +  html { position: relative; min-height: 100%; } +  a { color: #2331d1; } +  .number { float: left; margin-right: 30px; } +  .header { display: block; margin: 34px 0 30px; max-width: 100%; height: auto; } +  .main { float: left; width: 387px; max-width: 100%; } +  .url { display: block; font-family: Georgia, Times, serif; font-size: 18px; font-weight: normal; margin: 6px 0 20px; } +  .separator { color: #ffbe00; } +  .footer { position: absolute; bottom: 0; height: 49px; } +  .footer img { vertical-align: middle; margin-right: 3px; } +  .info { font-size: 10px; color: #999; }    </style>    </head> - <body bgcolor='#f2f1eb' vlink='#2331d1' alink='#f6f6ff' -  leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' -  style='margin: 0; padding: 0'> -  - <table border='0' cellspacing='0' cellpadding='0' height='99%'> -  <colgroup> -  <col span='3' /> -  <col width='356' /> -  <col width='0*' /> -  </colgroup> -  <tr> -  <td><img src='/internal-roxen-unit' height='30' /></td> -  </tr><tr> -  <td></td> -  <td><img src='/internal-roxen-401' /></td> -  <td><img src='/internal-roxen-unit' width='30' /></td> -  <td valign='bottom'><img src='/internal-roxen-authentication-failed' /></td> -  <td></td> -  </tr><tr> -  <td><img src='/internal-roxen-unit' height='30' /></td> -  </tr><tr> -  <td colspan='3'></td> -  <td colspan='2'> -  <div class='msg'>Unable to retrieve</div> -  <div class='url'>&page.virtfile;</div> -  </td> -  </tr><tr> -  <td colspan='3'></td> -  <td width='356'> -  <div class='msg'> -  If you feel this is a configuration error, please contact +  <body> +  <img src='/internal-roxen-401' class='number' width='142' height='57'/> +  <div class='main'> +  <img src='/internal-roxen-authentication-failed' class='header' width='387' height='23'/> +  <p>Unable to retrieve <b class='url'>&page.virtfile;</b></p> +  <p>If you feel this is a configuration error, please contact    the administrators of this server or the author of the -  <if referrer=''> -  <a href='&client.referrer;'>referring page</a>. -  </if><else> -  referring page. -  </else> -  </div> -  </td> -  <td>&nbsp;</td> -  </tr><tr valign='bottom' height='100%'> -  <td colspan='3'></td> -  <td> -  <img src='/internal-roxen-unit' height='20' /> -  <table border='0' cellspacing='0' cellpadding='0'> -  <tr> -  <td><img src='/internal-roxen-roxen-mini.gif' /></td> -  <td class='info'> -  &nbsp;&nbsp;<b>&roxen.product-name;</b> <font color='#ffbe00'>|</font> +  <if referrer=''><a href='&client.referrer;'>referring page</a>.</if> +  <else>referring page.</else> +  </p> +  <div class='footer'> +  <img src='/internal-roxen-roxen-mini.gif' width='19' height='15'/> +  <span class='info'> +  <strong>&roxen.product-name;</strong> <span class='separator'>|</span>    version &roxen.dist-version; -  </td> -  </tr> -  </table> -  <img src='/internal-roxen-unit' height='15' /> -  </td> -  <td></td> -  </tr> - </table> -  +  </span> +  </div> +  </div> +  <br clear='all'/>    </body> - </html>", + </html> + ",    DLOCALE(413, "Authentication failed message"),    TYPE_TEXT_FIELD|VAR_PUBLIC,    DLOCALE(420, "What to return when an authentication attempt failed."));       if (!retrieve ("EnabledModules", this)["config_filesystem#0"]) {    // Do not use a handler queue timeout of the administration    // interface. You most probably don't want to get a 503 in your    // face when you're trying to reconfigure an overloaded server... -  defvar("503-message", #"<html> +  defvar("503-message", #"<!DOCTYPE html> + <html>    <head>    <title>503 - Server Too Busy</title>    <style> -  .header { font-family: arial; -  font-size: 20px; -  line-height: 160% } -  .msg { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 12px; -  line-height: 160% } -  .url { font-family: georgia, times, serif; -  font-size: 18px; -  padding-top: 6px; -  padding-bottom: 20px } -  .info { font-family: verdana, helvetica, arial, sans-serif; -  font-size: 10px; -  color: #999999 } +  body { +  background: #f2f1eb; +  color: #000; +  margin: 0 0 49px; +  padding: 30px 30px 0; +  font-family: Verdana, Helvetica, Arial, sans-serif; +  font-size: 12px; +  line-height: 160%; +  } +  html { position: relative; min-height: 100%; } +  .header { font-size: 20px } +  .main { width: 387px; max-width: 100%; } +  .url { display: block; font-family: Georgia, Times, serif; font-size: 18px; font-weight: normal; margin: 6px 0 20px; } +  .separator { color: #ffbe00; } +  .footer { position: absolute; bottom: 0; height: 49px; } +  .info { font-size: 10px; color: #999; }    </style>    </head> - <body bgcolor='#f2f1eb' vlink='#2331d1' alink='#f6f6ff' -  leftmargin='50' rightmargin='0' topmargin='50' bottommargin='0' -  style='margin: 0; padding: 0'> -  - <table border='0' cellspacing='0' cellpadding='0' height='99%'> -  <colgroup> -  <col span='3' /> -  <col width='356' /> -  <col width='0*' /> -  </colgroup> -  <tr><td height='50'></td></tr> -  <tr> -  <td width='100'></td> -  <td> +  <body> +  <div class='main'>    <div class='header'>503 &mdash; Server Too Busy</div> -  </td> -  </tr> -  <tr> -  <td></td> -  <td> -  <div class='msg'>Unable to retrieve</div> -  <div class='url'>&page.virtfile;</div> -  </td> -  </tr> -  <tr> -  <td></td> -  <td> -  <div class='msg'> -  The server is currently too busy to serve your request. Please try again in a few moments. -  </div> -  </td> -  <td>&nbsp;</td> -  </tr> -  <tr valign='bottom' height='100%'> -  <td></td> -  <td> -  <table border='0' cellspacing='0' cellpadding='0'> -  <tr> -  <td class='info'> -  &nbsp;&nbsp;<b>&roxen.product-name;</b> <font color='#ffbe00'>|</font> +  <p>Unable to retrieve <b class='url'>&page.virtfile;</b></p> +  <p>The server is currently too busy to serve your request. +  Please try again in a few moments. +  </p> +  <div class='footer'> +  <span class='info'> +  <strong>&roxen.product-name;</strong> <span class='separator'>|</span>    version &roxen.dist-version; -  </td> -  </tr> -  </table> -  </td> -  <td></td> -  </tr> - </table> -  +  </span> +  </div> +  </div> +  <br clear='all'/>    </body> - </html>", + </html> + ",    DLOCALE(1048, "Server too busy message"),    TYPE_TEXT_FIELD|VAR_PUBLIC,    DLOCALE(1049, "What to return if the server is too busy. See also "    "\"Handler queue timeout\"."));       defvar("handler_queue_timeout", 30,    DLOCALE(1050, "Handler queue timeout"),    TYPE_INT,    DLOCALE(1051, #"Requests that have been waiting this many seconds on   the handler queue will not be processed. Instead, a 503 error code and the