# If format-html is explicity requested, forward to the UI.
RewriteCond %{QUERY_STRING} "format=html"
- RewriteRule ^([^/]+).php ui/$1.html [R,END]
- # Same but .php suffix is missing.
- RewriteCond %{QUERY_STRING} "format=html"
- RewriteRule ^([^/]+) ui/$1.html [R,END]
+ RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
# If no format parameter is there then forward anything
# but /reverse and /lookup to the UI.
RewriteCond %{QUERY_STRING} "!format="
RewriteCond %{REQUEST_URI} "!/lookup"
RewriteCond %{REQUEST_URI} "!/reverse"
- RewriteRule ^([^/]+).php ui/$1.html [R,END]
- # Same but .php suffix is missing.
- RewriteCond %{QUERY_STRING} "!format="
- RewriteCond %{REQUEST_URI} "!/lookup"
- RewriteCond %{REQUEST_URI} "!/reverse"
- RewriteRule ^([^/]+) ui/$1.html [R,END]
+ RewriteRule ^([^/]+)(.php)? ui/$1.html [R,END]
</Directory>
```
{
if (empty($this->aName)) {
$this->bNameNeedsAddress = $bNeedsAddress;
+ } elseif ($bSearchable && count($this->aName) >= 2) {
+ $this->bNameNeedsAddress = false;
} else {
$this->bNameNeedsAddress &= $bNeedsAddress;
}
if (CONST_Log_DB) {
$aEndTime = explode('.', $fEndTime);
- if (!$aEndTime[1]) {
+ if (!isset($aEndTime[1])) {
$aEndTime[1] = '0';
}
$sEndTime = date('Y-m-d H:i:s', $aEndTime[0]).'.'.$aEndTime[1];