Rev 1116 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 228... | Line 228... | ||
228 | $out['text'] .= ' <th width="50%">'._L('Attribute').'</th>'; |
228 | $out['text'] .= ' <th width="50%">'._L('Attribute').'</th>'; |
229 | $out['text'] .= ' <th width="50%">'._L('Value').'</th>'; |
229 | $out['text'] .= ' <th width="50%">'._L('Value').'</th>'; |
230 | $out['text'] .= ' </tr>'; |
230 | $out['text'] .= ' </tr>'; |
231 | $out['text'] .= ' <tr>'; |
231 | $out['text'] .= ' <tr>'; |
232 | $out['text'] .= ' <td>'._L('Server software').'</td>'; |
232 | $out['text'] .= ' <td>'._L('Server software').'</td>'; |
233 | $out['text'] .= ' <td>'.(isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '<i>'._L('unknown').'</i>').'</td>'; |
233 | $out['text'] .= ' <td>'.($_SERVER['SERVER_SOFTWARE'] ?? '<i>' . _L('unknown') . '</i>').'</td>'; |
234 | $out['text'] .= ' </tr>'; |
234 | $out['text'] .= ' </tr>'; |
235 | $out['text'] .= ' <tr>'; |
235 | $out['text'] .= ' <tr>'; |
236 | $out['text'] .= ' <td>'._L('User account').'</td>'; |
236 | $out['text'] .= ' <td>'._L('User account').'</td>'; |
237 | $current_user = exec('whoami'); |
237 | $current_user = exec('whoami'); |
238 | if ($current_user == '') { |
238 | if ($current_user == '') { |
Line 293... | Line 293... | ||
293 | $out['text'] .= ' </tr>'; |
293 | $out['text'] .= ' </tr>'; |
294 | $out['text'] .= ' <tr>'; |
294 | $out['text'] .= ' <tr>'; |
295 | $out['text'] .= ' <td>'._L('Server time').'</td>'; |
295 | $out['text'] .= ' <td>'._L('Server time').'</td>'; |
296 | $tmp = OIDplus::db()->query('select '.OIDplus::db()->sqlDate().' as tmp'); |
296 | $tmp = OIDplus::db()->query('select '.OIDplus::db()->sqlDate().' as tmp'); |
297 | if ($tmp) $tmp = $tmp->fetch_array(); |
297 | if ($tmp) $tmp = $tmp->fetch_array(); |
298 | $tmp = isset($tmp['tmp']) ? $tmp['tmp'] : _L('n/a'); |
298 | $tmp = $tmp['tmp'] ?? _L('n/a'); |
299 | $out['text'] .= ' <td>'.$tmp.'</td>'; |
299 | $out['text'] .= ' <td>'.$tmp.'</td>'; |
300 | $out['text'] .= ' </tr>'; |
300 | $out['text'] .= ' </tr>'; |
301 | $out['text'] .= '</table>'; |
301 | $out['text'] .= '</table>'; |
302 | $out['text'] .= '</div></div>'; |
302 | $out['text'] .= '</div></div>'; |
303 | 303 |