Last change
on this file since 11093 was
11093,
checked in by cljosse, 13 years ago
|
[extensions] set_plugins fix bugs on activate
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | //================================================================================================= |
---|
3 | global $conf ; |
---|
4 | $nb="10"; |
---|
5 | if (isset($conf['set_plugins'])) |
---|
6 | $set_plugins_parametres = unserialize($conf['set_plugins']); |
---|
7 | |
---|
8 | if(isset($set_plugins_parametres) && isset($set_plugins_parametres['nb'])) |
---|
9 | $nb=$set_plugins_parametres['nb']; |
---|
10 | $liste=array(); |
---|
11 | if(isset($set_plugins_parametres['list'])) |
---|
12 | $liste=$set_plugins_parametres['list']; |
---|
13 | |
---|
14 | if(isset($set_plugins_parametres['state'])) |
---|
15 | $state =$set_plugins_parametres['state']; |
---|
16 | |
---|
17 | $state=isset($state)?$state:"active"; |
---|
18 | |
---|
19 | $set=isset($_POST['set'])?$_POST['set']:"true"; |
---|
20 | |
---|
21 | |
---|
22 | $template->assign( array( |
---|
23 | 'nb' => isset($_POST['nb'])?$_POST['nb']:$nb, |
---|
24 | 'state' => $state , |
---|
25 | 'set' => $set, |
---|
26 | 'liste' => $liste, |
---|
27 | 'cl_plugins' => $cl_set_plugins_plugin , |
---|
28 | 'cl_version' => $cl_set_plugins_plugin['version'] , |
---|
29 | 'name' => $cl_set_plugins_plugin['name'] , |
---|
30 | 'Version_pwg' => PHPWG_VERSION |
---|
31 | ) |
---|
32 | ); |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.