source: extensions/NBM_Subscriber/admin/NBMS_admin.php @ 16060

Last change on this file since 16060 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
RevLine 
[6436]1<?php
2
[6439]3global $lang;
[6436]4
5if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
6// +-----------------------------------------------------------------------+
7// | Check Access and exit when user status is not ok                      |
8// +-----------------------------------------------------------------------+
9check_status(ACCESS_ADMINISTRATOR);
10
11if (!defined('NBMS_PATH')) define('NBMS_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
12
13load_language('plugin.lang', NBMS_PATH);
14
15
16// +-----------------------------------------------------------------------+
17// |                      Getting plugin version                           |
18// +-----------------------------------------------------------------------+
19$plugin =  NBMSInfos(NBMS_PATH);
20$version = $plugin['version'];
[6439]21$name = $plugin['name'];
[6436]22
23
24// +-----------------------------------------------------------------------+
[6439]25// |                           templates init                              |
[6436]26// +-----------------------------------------------------------------------+
27  $template->assign(
28    array(
[6439]29    'NBMS_NAME'     =>  $name,
30    'NBMS_VERSION'  =>  $version,
[6436]31    )
32  );
33
34// +-----------------------------------------------------------------------+
35// |                           templates display                           |
36// +-----------------------------------------------------------------------+
[6439]37  $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/NBMS_admin.tpl');
[6436]38  $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
39?>
Note: See TracBrowser for help on using the repository browser.