Rev 1220 | Rev 1266 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1220 | Rev 1228 | ||
---|---|---|---|
Line 248... | Line 248... | ||
248 | $out['text'] .= ' <td>'._L('Web server software').'</td>'; |
248 | $out['text'] .= ' <td>'._L('Web server software').'</td>'; |
249 | $out['text'] .= ' <td>'.($_SERVER['SERVER_SOFTWARE'] ?? '<i>' . _L('unknown') . '</i>').'</td>'; |
249 | $out['text'] .= ' <td>'.($_SERVER['SERVER_SOFTWARE'] ?? '<i>' . _L('unknown') . '</i>').'</td>'; |
250 | $out['text'] .= ' </tr>'; |
250 | $out['text'] .= ' </tr>'; |
251 | $out['text'] .= ' <tr>'; |
251 | $out['text'] .= ' <tr>'; |
252 | $out['text'] .= ' <td>'._L('Web server user account').'</td>'; |
252 | $out['text'] .= ' <td>'._L('Web server user account').'</td>'; |
253 | $current_user = get_own_username(); |
253 | $current_user = get_own_username(); // TODO: should we also show the group? |
254 | $out['text'] .= ' <td>'.($current_user === false ? '<i>'._L('unknown').'</i>' : htmlentities($current_user)).'</td>'; |
254 | $out['text'] .= ' <td>'.($current_user === false ? '<i>'._L('unknown').'</i>' : htmlentities($current_user)).'</td>'; |
255 | $out['text'] .= ' </tr>'; |
255 | $out['text'] .= ' </tr>'; |
256 | 256 | ||
257 | // PHP (at webserver) |
257 | // PHP (at webserver) |
258 | 258 | ||
Line 303... | Line 303... | ||
303 | $out['text'] .= ' <td>'._L('Table name prefix').'</td>'; |
303 | $out['text'] .= ' <td>'._L('Table name prefix').'</td>'; |
304 | $out['text'] .= ' <td>'.(!empty($table_prefix) ? htmlentities($table_prefix) : '<i>'._L('none').'</i>').'</td>'; |
304 | $out['text'] .= ' <td>'.(!empty($table_prefix) ? htmlentities($table_prefix) : '<i>'._L('none').'</i>').'</td>'; |
305 | $out['text'] .= ' </tr>'; |
305 | $out['text'] .= ' </tr>'; |
306 | $out['text'] .= ' <tr>'; |
306 | $out['text'] .= ' <tr>'; |
307 | $out['text'] .= ' <td>'._L('Server time').'</td>'; |
307 | $out['text'] .= ' <td>'._L('Server time').'</td>'; |
- | 308 | // We use "from ###config" because Oracle DB requires a "from" statement. |
|
- | 309 | // Instead of creating two queries (one with "select ..." and one with "select ... from dual"), |
|
- | 310 | // we make this query. It is OK, because the table ###config is never empty and we are only fetching the first row. |
|
308 | $tmp = OIDplus::db()->query('select '.OIDplus::db()->sqlDate().' as tmp'); |
311 | $tmp = OIDplus::db()->query('select '.OIDplus::db()->sqlDate().' as tmp from ###config'); |
309 | if ($tmp) $tmp = $tmp->fetch_array(); |
312 | if ($tmp) $tmp = $tmp->fetch_array(); |
310 | $tmp = $tmp['tmp'] ?? _L('n/a'); |
313 | $tmp = $tmp['tmp'] ?? _L('n/a'); |
311 | $tmp = preg_replace('@\\.\\d{3}$@', '', $tmp); // remove milliseconds of Microsoft SQL Server |
314 | $tmp = preg_replace('@\\.\\d{3}$@', '', $tmp); // remove milliseconds of Microsoft SQL Server |
312 | $out['text'] .= ' <td>'.$tmp.'</td>'; |
315 | $out['text'] .= ' <td>'.$tmp.'</td>'; |
313 | $out['text'] .= ' </tr>'; |
316 | $out['text'] .= ' </tr>'; |