source: extensions/hotblocker/admin/hb_admin.php @ 3699

Revision 3699, 787 bytes checked in by repie38, 10 years ago (diff)

create hotblocker extension for repie38

Line 
1<?php
2if (!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/');
6global $template;
7
8$template->set_filenames( array('plugin_admin_content' => dirname(__FILE__).'/hb_admin.tpl') );
9$template->assign( 'HB_VERSION' , HB_VERSION );
10
11if ( 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}
23else
24{
25        if ($me->etat == "on") {
26                $template->assign('HB_ACTIVE','checked');
27        }
28}
29load_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.