Last change
on this file since 16885 was
3699,
checked in by repie38, 15 years ago
|
create hotblocker extension for repie38
|
File size:
787 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | $me = get_plugin_data($plugin_id); |
---|
4 | $me->list_path_of_real_cat(); |
---|
5 | $me->init('./galleries/'); |
---|
6 | global $template; |
---|
7 | |
---|
8 | $template->set_filenames( array('plugin_admin_content' => dirname(__FILE__).'/hb_admin.tpl') ); |
---|
9 | $template->assign( 'HB_VERSION' , HB_VERSION ); |
---|
10 | |
---|
11 | if ( isset($_POST['submit']) ) |
---|
12 | { |
---|
13 | if ((isset($_POST['HB_active']))&&($_POST['HB_active']="on")) |
---|
14 | { |
---|
15 | $template->assign('HB_ACTIVE','checked'); |
---|
16 | $me->hotblock_dir('./galleries/',0); |
---|
17 | } |
---|
18 | else |
---|
19 | { |
---|
20 | $me->hotfree_dir('./galleries/',0); |
---|
21 | } |
---|
22 | } |
---|
23 | else |
---|
24 | { |
---|
25 | if ($me->etat == "on") { |
---|
26 | $template->assign('HB_ACTIVE','checked'); |
---|
27 | } |
---|
28 | } |
---|
29 | load_language('plugin.lang', HB_PATH); |
---|
30 | $template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content'); |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.