-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
48 lines (45 loc) · 1.92 KB
/
Copy pathconfig.php
File metadata and controls
48 lines (45 loc) · 1.92 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php if(!defined('PLX_ROOT')) exit;
# Control du token du formulaire
plxToken::validateFormToken($_POST);
if(!empty($_POST)) {
$plxPlugin->setParam('folder', trim(ltrim($_POST['folder'], '/')), 'string');
$plxPlugin->setParam('static', $_POST['static'], 'numeric');
$plxPlugin->setParam('extraPlugins', $_POST['extraPlugins'], 'cdata');
$plxPlugin->setParam('height', $_POST['height'], 'string');
$plxPlugin->saveParams();
header('Location: parametres_plugin.php?p='.get_class($plxPlugin));
exit;
}
?>
<style>
form.inline-form label {
width: 300px ;
}
</style>
<form class="inline-form" id="form_<?php echo get_class($plxPlugin); ?>" action="parametres_plugin.php?p=<?php echo get_class($plxPlugin); ?>" method="post">
<fieldset>
<p>
<label for="id_folder"><?php echo $plxPlugin->lang('L_FOLDER') ?> :</label>
<?php plxUtils::printInput('folder',$plxPlugin->getParam('folder'),'text','40-255') ?>
<a class="hint"><span><?php echo L_HELP_SLASH_END ?></span></a> ex: data/medias/
</p>
<p>
<label for="id_static"><?php echo $plxPlugin->lang('L_STATIC') ?> :</label>
<?php plxUtils::printSelect('static',array('1'=>L_YES,'0'=>L_NO), $plxPlugin->getParam('static'));?>
</p>
<p>
<label for="id_height"><?php echo $plxPlugin->lang('L_EDITOR_HEIGHT') ?> :</label>
<?php plxUtils::printInput('height',$plxPlugin->getParam('height'),'text','7-7') ?>
</p>
<p>
<label for="id_extraPlugins">extraPlugins :</label>
<?php plxUtils::printInput('extraPlugins',$plxPlugin->getParam('extraPlugins'),'text','40-255') ?>
<a class="hint"><span><?php $plxPlugin->lang('L_COMMA') ?></span></a>
<a href="http://ckeditor.com/addons/plugins/all" title="extraPlugins">http://ckeditor.com/addons/plugins/all</a>
</p>
<p class="in-action-bar">
<?php echo plxToken::getTokenPostMethod() ?>
<input type="submit" name="submit" value="<?php $plxPlugin->lang('L_SAVE') ?>" />
</p>
</fieldset>
</form>