Last change
on this file since 32321 was
6439,
checked in by Eric, 14 years ago
|
[NBM_Subscriber]
First release coded 1.0.0:
- Admin panel added
- Adding language files: FR and EN are OK, other are partially done
|
-
Property svn:eol-style set to
LF
|
File size:
1.5 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | global $lang; |
---|
4 | |
---|
5 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | // | Check Access and exit when user status is not ok | |
---|
8 | // +-----------------------------------------------------------------------+ |
---|
9 | check_status(ACCESS_ADMINISTRATOR); |
---|
10 | |
---|
11 | if (!defined('NBMS_PATH')) define('NBMS_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
12 | |
---|
13 | load_language('plugin.lang', NBMS_PATH); |
---|
14 | |
---|
15 | |
---|
16 | // +-----------------------------------------------------------------------+ |
---|
17 | // | Getting plugin version | |
---|
18 | // +-----------------------------------------------------------------------+ |
---|
19 | $plugin = NBMSInfos(NBMS_PATH); |
---|
20 | $version = $plugin['version']; |
---|
21 | $name = $plugin['name']; |
---|
22 | |
---|
23 | |
---|
24 | // +-----------------------------------------------------------------------+ |
---|
25 | // | templates init | |
---|
26 | // +-----------------------------------------------------------------------+ |
---|
27 | $template->assign( |
---|
28 | array( |
---|
29 | 'NBMS_NAME' => $name, |
---|
30 | 'NBMS_VERSION' => $version, |
---|
31 | ) |
---|
32 | ); |
---|
33 | |
---|
34 | // +-----------------------------------------------------------------------+ |
---|
35 | // | templates display | |
---|
36 | // +-----------------------------------------------------------------------+ |
---|
37 | $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/NBMS_admin.tpl'); |
---|
38 | $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); |
---|
39 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.