early step to move settings do plugins config page
This commit is contained in:
parent
610e8a2124
commit
438e57e702
27
_config.php
Normal file
27
_config.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @brief activityReport, a plugin for Dotclear 2
|
||||||
|
*
|
||||||
|
* @package Dotclear
|
||||||
|
* @subpackage Plugin
|
||||||
|
*
|
||||||
|
* @author Jean-Christian Denis and contributors
|
||||||
|
*
|
||||||
|
* @copyright Jean-Christian Denis
|
||||||
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('DC_CONTEXT_MODULE')) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!activityReport::hasMailer()) {
|
||||||
|
|
||||||
|
echo '<p class="error">' . __('This server has no mail function, activityReport not send email report.') . '</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
activityReportLib::settingTab($core, __('Settings'));
|
||||||
|
|
||||||
|
if ($core->auth->isSuperAdmin()) {
|
||||||
|
activityReportLib::settingTab($core, __('Super settings'), true);
|
||||||
|
}
|
@ -43,11 +43,9 @@ if (!activityReport::hasMailer()) {
|
|||||||
|
|
||||||
echo '<p class="error">' . __('This server has no mail function, activityReport not send email report.') . '</p>';
|
echo '<p class="error">' . __('This server has no mail function, activityReport not send email report.') . '</p>';
|
||||||
}
|
}
|
||||||
activityReportLib::settingTab($core, __('Settings'));
|
|
||||||
activityReportLib::logTab($core, __('Logs'));
|
activityReportLib::logTab($core, __('Logs'));
|
||||||
|
|
||||||
if ($core->auth->isSuperAdmin()) {
|
if ($core->auth->isSuperAdmin()) {
|
||||||
activityReportLib::settingTab($core, __('Super settings'), true);
|
|
||||||
activityReportLib::logTab($core, __('Super logs'), true);
|
activityReportLib::logTab($core, __('Super logs'), true);
|
||||||
}
|
}
|
||||||
echo '</body></html>';
|
echo '</body></html>';
|
Loading…
Reference in New Issue
Block a user