Last change
on this file since 9276 was
9276,
checked in by mistic100, 13 years ago
|
[extensions] PHP Optimisateur
- fix many path bugs
- debug some plugins
- add ratio detection for ConvertPan
|
File size:
1.6 KB
|
Line | |
---|
1 | <?php |
---|
2 | switch ($PLUGIN_ACTION) { |
---|
3 | // Affichage simple de la configuration |
---|
4 | case 'read_config': |
---|
5 | load_plugin_lang('front2back_support'); |
---|
6 | $PAGE_CONTENT[0] .= ' |
---|
7 | <table> |
---|
8 | <tr> |
---|
9 | <td>'.l10n('front2back_support.NAMEverso').' :</td> |
---|
10 | <td>'.$plugin_config['NAMEverso'].'</td> |
---|
11 | </tr> |
---|
12 | <tr> |
---|
13 | <td>'.l10n('front2back_support.MOVEverso').' :</td> |
---|
14 | <td>'.bool_to_string($plugin_config['MOVEverso']).'</td> |
---|
15 | </tr> |
---|
16 | </table>'; |
---|
17 | break; |
---|
18 | |
---|
19 | // Actions avant enregistrement |
---|
20 | case 'save_config': |
---|
21 | $_POST['Plugins']['front2back_support']['NAMEverso'] = delete_special_car($_POST['Plugins']['front2back_support']['NAMEverso']); |
---|
22 | break; |
---|
23 | |
---|
24 | // Formulaire d'édition |
---|
25 | case 'edit_config': |
---|
26 | load_plugin_lang('front2back_support'); |
---|
27 | $PAGE_CONTENT[0] .= ' |
---|
28 | <table> |
---|
29 | <tr> |
---|
30 | <td>'.l10n('front2back_support.NAMEverso').' :</td> |
---|
31 | <td><input type="text" name="Plugins[front2back_support][NAMEverso]" value="'.$plugin_config['NAMEverso'].'" size="6"/></td> |
---|
32 | </tr> |
---|
33 | <tr> |
---|
34 | <td>'.l10n('front2back_support.MOVEverso').' :</td> |
---|
35 | <td> |
---|
36 | <input type="radio" id="front2back_support-move1" name="Plugins[front2back_support][MOVEverso]" value="true" '.(($plugin_config['MOVEverso'])?'checked="checked"':'').'/> |
---|
37 | <label for="front2back_support-move1">'.l10n('yes').'</label> |
---|
38 | <input type="radio" id="front2back_support-move2" name="Plugins[front2back_support][MOVEverso]" value="false" '.((!$plugin_config['MOVEverso'])?'checked="checked"':'').'/> |
---|
39 | <label for="front2back_support-move2">'.l10n('no').'</label> |
---|
40 | </td> |
---|
41 | </tr> |
---|
42 | </table>'; |
---|
43 | break; |
---|
44 | } |
---|
45 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.