root/contributed_modules/modules/keylock/page.keylock.php

Revision 8912, 2.3 kB (checked in by Maikel, 2 years ago)

Licencia y Patrocinador

Line 
1 <?php /* $Id: page.bosssecretary.php   $ */
2 // Developed by Maikel Salazar (maikelsalazar at gmail dot com)
3 // Sponsored by TI Soluciones, http://www.solucionesit.com.ve
4 //
5 //This program is free software; you can redistribute it and/or
6 //modify it under the terms of the GNU General Public License
7 //as published by the Free Software Foundation; either version 2
8 //of the License, or (at your option) any later version.
9 //
10 //This program is distributed in the hope that it will be useful,
11 //but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //GNU General Public License for more details.
14
15
16
17
18
19
20
21
22 $dispnum = 'keylock'; //used for switch on config.php
23
24 $title = _("Key Lock");
25
26
27
28 if (isset($_POST["patterns"]))
29 {
30   keylock_set_patterns($_POST["patterns"]);
31   needreload();
32 }
33
34
35
36 $patterns = keylock_get_patterns();
37
38
39
40
41
42 echo "<h2>" . $title. "</h2>";
43
44       $modulename = "keylock";
45       $lock_label = "keylock_lock";
46       $unlock_label = "keylock_unlock";
47       $toggle_label = "keylock_toggle";
48       $setpass_label = "keylock_setpass";
49
50       $fcl = new featurecode($modulename, $lock_label);
51       $fcu = new featurecode($modulename, $unlock_label);
52       $fct = new featurecode($modulename, $toggle_label);
53       $fcs = new featurecode($modulename, $setpass_label);
54
55       $lock = $fcl->getCodeActive();
56       $unlock = $fcu->getCodeActive();
57       $toggle = $fct->getCodeActive();
58       $setpass = $fcs->getCodeActive();
59
60 ?>
61
62 <form method="post" name=keylock action="config.php?display=keylock">
63 <table>
64       <tr>
65         <td colspan="2" align="center"><b>Patterns:</b> <hr /> </td>
66       </tr>
67       <tr>
68         <td colspan="2"><textarea name="patterns"><?php echo $patterns; ?></textarea></td>
69       </tr>
70       <tr>
71         <td colspan="2" align="center"> <input type="submit" name="submit" value="Save" />
72       </tr>
73
74 </table>
75
76 <p><strong>Warning:</strong> You must be very carefully with patterns.</p>
77
78 <br />
79 <br />
80
81 <div style="font-size:80%;">
82 <b><?php echo _("Key Lock Toggle:") . "</b> " . $toggle  . "."; ?> <br />
83 <b><?php echo _("Key Lock:") . "</b> " . $lock  . "."; ?> <br />
84 <b><?php echo _("Key Unlock:") . "</b> " . $unlock  . "."; ?> <br />
85 <b><?php echo _("Key Setpass:") . "</b> " . $setpass  . "."; ?>
86 <p style="font-size:80%;"><?php echo _("You can change all these values in Features Code module") . "."; ?></p>
87 </div>
Note: See TracBrowser for help on using the browser.