Dotclear

source: plugins/activityReport/index.php @ 1457

Revision 1457, 1.5 KB checked in by JcDenis, 14 years ago (diff)

activityReport 0.2:

  • First lab release
Line 
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
13if (!defined('DC_CONTEXT_ADMIN')){return;}
14
15if (!$core->activityReport instanceof activityReport){return;}
16
17dcPage::check('admin');
18
19require_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 
28echo 
29dcPage::jsLoad('js/_posts_list.js').
30dcPage::jsToolBar().
31dcPage::jsPageTabs($tab);
32?>
33 </head>
34<body>
35<h2><?php 
36 echo html::escapeHTML($core->blog->name).
37 ' &rsaquo; '.__('Activity report');
38?></h2>
39
40<?php
41activityReportLib::settingTab($core,__('Settings'));
42activityReportLib::logTab($core,__('Logs'));
43
44if ($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">
54activityReport -
55<?php echo $core->plugins->moduleInfo('activityReport','version'); ?>&nbsp;
56<img alt="activityReport" src="index.php?pf=activityReport/icon.png" />
57</p>
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.

Sites map