1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of activityReport, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_CONTEXT_ADMIN')){return;} |
---|
14 | |
---|
15 | if (!$core->activityReport instanceof activityReport){return;} |
---|
16 | |
---|
17 | dcPage::check('admin'); |
---|
18 | |
---|
19 | require_once dirname(__FILE__).'/inc/lib.activity.report.index.php'; |
---|
20 | |
---|
21 | $tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'blog_settings'; |
---|
22 | |
---|
23 | ?> |
---|
24 | <html> |
---|
25 | <head> |
---|
26 | <title><?php echo __('Activity report'); ?></title> |
---|
27 | <?php |
---|
28 | echo |
---|
29 | dcPage::jsLoad('js/_posts_list.js'). |
---|
30 | dcPage::jsToolBar(). |
---|
31 | dcPage::jsPageTabs($tab); |
---|
32 | ?> |
---|
33 | </head> |
---|
34 | <body> |
---|
35 | <h2><?php |
---|
36 | echo html::escapeHTML($core->blog->name). |
---|
37 | ' › '.__('Activity report'); |
---|
38 | ?></h2> |
---|
39 | |
---|
40 | <?php |
---|
41 | activityReportLib::settingTab($core,__('Settings')); |
---|
42 | activityReportLib::logTab($core,__('Logs')); |
---|
43 | |
---|
44 | if ($core->auth->isSuperAdmin()) |
---|
45 | { |
---|
46 | activityReportLib::settingTab($core,__('Super settings'),true); |
---|
47 | activityReportLib::logTab($core,__('Super logs'),true); |
---|
48 | } |
---|
49 | |
---|
50 | ?> |
---|
51 | |
---|
52 | <hr class="clear"/> |
---|
53 | <p class="right"> |
---|
54 | activityReport - |
---|
55 | <?php echo $core->plugins->moduleInfo('activityReport','version'); ?> |
---|
56 | <img alt="activityReport" src="index.php?pf=activityReport/icon.png" /> |
---|
57 | </p> |
---|
58 | </body> |
---|
59 | </html> |
---|