-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
executable file
·40 lines (34 loc) · 1.16 KB
/
config.php
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
34
35
36
37
38
39
40
<?php
/**
* Plugin blogroll
*
* @package PLX
* @version 1.2
* @date 12/03/2013
* @author i M@N
* @based on Rockyhorror Blogroll 0.5
**/
if(!defined('PLX_ROOT')) exit;
# Control du token du formulaire
plxToken::validateFormToken($_POST);
if(!empty($_POST)) {
$plxPlugin->setParam('blogroll', $_POST['blogroll'], 'cdata');
$plxPlugin->setParam('pub_title', $_POST['pub_title'], 'cdata');
$plxPlugin->saveParams();
header('Location: parametres_plugin.php?p=Blogroll');
exit;
}
?>
<h2><?php $plxPlugin->lang('L_TITLE') ?></h2>
<p><?php $plxPlugin->lang('L_CONFIG_DESCRIPTION') ?></p>
<form action="parametres_plugin.php?p=Blogroll" method="post">
<fieldset class="withlabel">
<p><?php echo $plxPlugin->getLang('L_CONFIG_ROOT_PATH') ?></p>
<?php plxUtils::printInput('blogroll', $plxPlugin->getParam('blogroll'), 'text'); ?>
<p><?php echo $plxPlugin->getLang('L_CONFIG_PUB_TITLE') ?></p>
<?php plxUtils::printInput('pub_title', $plxPlugin->getParam('pub_title'), 'text'); ?>
</fieldset>
<br />
<?php echo plxToken::getTokenPostMethod() ?>
<input type="submit" name="submit" value="<?php echo $plxPlugin->getLang('L_CONFIG_SAVE') ?>" />
</form>