Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 445 → Rev 446

/trunk/TODO
52,6 → 52,7
- XML import: If output (errors) is too long, show them in a page rather than an alert() box
 
SMALL THINGS
- Should plugins be able to change the "Content-Security-Policy" header (i.e. to include external JavaScripts frameworks)
- Copyright notice:
* Currently, we have "2019", "2020" and "2019-2020". Change them all to "2019 - 2020"
* Copyright <BY> Daniel Marschall ("by" is missing)
/trunk/plugins/adminPages/120_registration/OIDplusPageAdminRegistration.class.php
102,11 → 102,20
}
if ($id === 'oidplus:srvreg_status') {
$handled = true;
$out['title'] = _L('Registration live status');
$out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
 
if (!OIDplus::authUtils()::isAdminLoggedIn()) {
$out['icon'] = 'img/error_big.png';
$out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login')).'</p>';
return;
}
 
$query = self::QUERY_LIVESTATUS_V1;
 
$payload = array(
"query" => $query, // we must repeat the query because we want to sign it
"lang" => OIDplus::getCurrentLang(),
"system_id" => OIDplus::getSystemId(false)
);
 
134,8 → 143,6
 
$json = @json_decode($res, true);
 
$out['title'] = _L('Registration live status');
 
if (!$json) {
$out['icon'] = 'img/error_big.png';
$out['text'] = _L('JSON reply from ViaThinkSoft decoding error: %1',$res);