-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
33 lines (31 loc) · 1.06 KB
/
config.php
File metadata and controls
33 lines (31 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php /**
* Plugin display_error - config page
*
* @package PLX
* @version 1.0
* @date 22/10/23
* @author gc-nomade
* @site https://pluxopolis.net
**/
if(!defined("PLX_ROOT")) exit; ?>
<?php
if(!empty($_POST)) {
$plxPlugin->setParam("active", plxUtils::strCheck($_POST["active"]), "numeric");
$plxPlugin->saveParams();
header("Location: parametres_plugin.php?p=display_error");
exit;
}
$active= $plxPlugin->getParam('active')=='' ? 0 : $plxPlugin->getParam('active');
?>
<style>
h2 *{vertical-align:middle;}
</style>
<h2><img style="width:200px" src="<?php echo PLX_PLUGINS;?>display_error/icon.png"/><?php $plxPlugin->lang("L_TITLE") ?></h2>
<p><?php $plxPlugin->lang("L_DESCRIPTION") ?></p>
<form action="parametres_plugin.php?p=display_error" method="post" >
<p class="alert blue" style="display:flex;gap:0.5em;align-items:center;width:max-content">
<label><?php $plxPlugin->lang("L_ACTIVATE");?> : </label>
<?php plxUtils::printSelect('active',array('1'=>L_YES,'0'=>L_NO),$active); ?>
</p>
<input type="submit" name="submit" value="Enregistrer"/>
</form>