~ubuntu-branches/ubuntu/wily/pluxml/wily

« back to all changes in this revision

Viewing changes to core/admin/parametres_base.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2015-07-22 14:22:20 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150722142220-m5tzuyfq6klb44vs
Tags: 5.4-1
* New upstream release.
* debian/dirs: update to new layout (data/images/ replaced by data/medias).
* debian/postinst:
   + migrate images from data/images/ to data/medias/.
   + update main configuration file (version has changed, and a parameter
     was added).
   + use `command -v` instead of `test` to check for lighty-enable-mod
     existence, to avoid using a fully qualified path.
* debian/postrm:
   + use `command -v` instead of `test` to check for lighty-disable-mod, ucf
     and ucfr existence, to avoid using a fully qualified path.
* debian/rules: remove some JavaScript minimizing rules (that file is no
  longer part of PluXml).
* debian/control:
   + no longer depend on slimit (no more JavaScript minimizing).
   + use a line per build dependency and order them alphabetically.
   + update Standards-Version to 3.9.6 (no change needed).
* debian/copyright: remove everything about respond.js which is no longer
  part of PluXml.
* debian/links: update to new layout (data/images replaced by data/medias).
* debian/NEWS: added, to document the migration to 5.4 layout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
/**
4
 
 * Edition des paramètres de base
5
 
 *
6
 
 * @package PLX
7
 
 * @author      Florent MONTHEL, Stephane F
8
 
 **/
9
 
 
10
 
include(dirname(__FILE__).'/prepend.php');
11
 
include(PLX_CORE.'lib/class.plx.timezones.php');
12
 
 
13
 
# Control du token du formulaire
14
 
plxToken::validateFormToken($_POST);
15
 
 
16
 
# Control de l'accès à la page en fonction du profil de l'utilisateur connecté
17
 
$plxAdmin->checkProfil(PROFIL_ADMIN);
18
 
 
19
 
# On édite la configuration
20
 
if(!empty($_POST)) {
21
 
        $plxAdmin->editConfiguration($plxAdmin->aConf,$_POST);
22
 
        header('Location: parametres_base.php');
23
 
        exit;
24
 
}
25
 
 
26
 
# On inclut le header
27
 
include(dirname(__FILE__).'/top.php');
28
 
?>
29
 
 
30
 
<h2><?php echo L_CONFIG_BASE_CONFIG_TITLE ?></h2>
31
 
 
32
 
<?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseTop')) # Hook Plugins ?>
33
 
 
34
 
<form action="parametres_base.php" method="post" id="form_settings">
35
 
        <fieldset class="config">
36
 
                <p class="field"><label for="id_title"><?php echo L_CONFIG_BASE_SITE_TITLE ?>&nbsp;:</label></p>
37
 
                <?php plxUtils::printInput('title', plxUtils::strCheck($plxAdmin->aConf['title'])); ?>
38
 
                <p class="field"><label for="id_description"><?php echo L_CONFIG_BASE_SITE_SLOGAN ?>&nbsp;:</label></p>
39
 
                <?php plxUtils::printInput('description', plxUtils::strCheck($plxAdmin->aConf['description'])); ?>
40
 
                <p class="field"><label for="id_meta_description"><?php echo L_CONFIG_META_DESCRIPTION ?>&nbsp;:</label></p>
41
 
                <?php plxUtils::printInput('meta_description', plxUtils::strCheck($plxAdmin->aConf['meta_description'])); ?>
42
 
                <p class="field"><label for="id_meta_keywords"><?php echo L_CONFIG_META_KEYWORDS ?>&nbsp;:</label></p>
43
 
                <?php plxUtils::printInput('meta_keywords', plxUtils::strCheck($plxAdmin->aConf['meta_keywords'])); ?>
44
 
                <p class="field"><label for="id_default_lang"><?php echo L_CONFIG_BASE_DEFAULT_LANG ?>&nbsp;:</label></p>
45
 
                <?php plxUtils::printSelect('default_lang', plxUtils::getLangs(), $plxAdmin->aConf['default_lang']) ?>
46
 
                <p class="field"><label for="id_timezone"><?php echo L_CONFIG_BASE_TIMEZONE ?>&nbsp;:</label></p>
47
 
                <?php plxUtils::printSelect('timezone', plxTimezones::timezones(), $plxAdmin->aConf['timezone']); ?>
48
 
                <p class="field"><label for="id_allow_com"><?php echo L_CONFIG_BASE_ALLOW_COMMENTS ?>&nbsp;:</label></p>
49
 
                <?php plxUtils::printSelect('allow_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['allow_com']); ?>
50
 
                <p class="field"><label for="id_mod_com"><?php echo L_CONFIG_BASE_MODERATE_COMMENTS ?>&nbsp;:</label></p>
51
 
                <?php plxUtils::printSelect('mod_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_com']); ?>
52
 
                <p class="field"><label for="id_mod_art"><?php echo L_CONFIG_BASE_MODERATE_ARTICLES ?>&nbsp;:</label></p>
53
 
                <?php plxUtils::printSelect('mod_art',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_art']); ?>
54
 
        </fieldset>
55
 
        <?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBase')) # Hook Plugins ?>
56
 
        <p class="center">
57
 
                <?php echo plxToken::getTokenPostMethod() ?>
58
 
                <input class="button update" type="submit" value="<?php echo L_CONFIG_BASE_UPDATE ?>" />
59
 
        </p>
60
 
</form>
61
 
 
62
 
<?php
63
 
# Hook Plugins
64
 
eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseFoot'));
65
 
# On inclut le footer
66
 
include(dirname(__FILE__).'/foot.php');
 
1
<?php
 
2
 
 
3
/**
 
4
 * Edition des paramètres de base
 
5
 *
 
6
 * @package PLX
 
7
 * @author      Florent MONTHEL, Stephane F
 
8
 **/
 
9
 
 
10
include(dirname(__FILE__).'/prepend.php');
 
11
include(PLX_CORE.'lib/class.plx.timezones.php');
 
12
 
 
13
# Control du token du formulaire
 
14
plxToken::validateFormToken($_POST);
 
15
 
 
16
# Control de l'accès à la page en fonction du profil de l'utilisateur connecté
 
17
$plxAdmin->checkProfil(PROFIL_ADMIN);
 
18
 
 
19
# On édite la configuration
 
20
if(!empty($_POST)) {
 
21
        $plxAdmin->editConfiguration($plxAdmin->aConf,$_POST);
 
22
        header('Location: parametres_base.php');
 
23
        exit;
 
24
}
 
25
 
 
26
# On inclut le header
 
27
include(dirname(__FILE__).'/top.php');
 
28
?>
 
29
 
 
30
<form action="parametres_base.php" method="post" id="form_settings">
 
31
 
 
32
        <div class="inline-form action-bar">
 
33
                <h2><?php echo L_CONFIG_BASE_CONFIG_TITLE ?></h2>
 
34
                <p>&nbsp;</p>
 
35
                <input type="submit" value="<?php echo L_CONFIG_BASE_UPDATE ?>" />
 
36
        </div>
 
37
 
 
38
        <?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseTop')) # Hook Plugins ?>
 
39
 
 
40
        <fieldset class="config">
 
41
                <div class="grid">
 
42
                        <div class="col sml-12 med-5 label-centered">
 
43
                                <label for="id_title"><?php echo L_CONFIG_BASE_SITE_TITLE ?>&nbsp;:</label>
 
44
                        </div>
 
45
                        <div class="col sml-12 med-7">
 
46
                                <?php plxUtils::printInput('title', plxUtils::strCheck($plxAdmin->aConf['title'])); ?>
 
47
                        </div>
 
48
                </div>
 
49
                <div class="grid">
 
50
                        <div class="col sml-12 med-5 label-centered">
 
51
                                <label for="id_description"><?php echo L_CONFIG_BASE_SITE_SLOGAN ?>&nbsp;:</label>
 
52
                        </div>
 
53
                        <div class="col sml-12 med-7">
 
54
                                <?php plxUtils::printInput('description', plxUtils::strCheck($plxAdmin->aConf['description'])); ?>
 
55
                        </div>
 
56
                </div>
 
57
                <div class="grid">
 
58
                        <div class="col sml-12 med-5 label-centered">
 
59
                                <label for="id_meta_description"><?php echo L_CONFIG_META_DESCRIPTION ?>&nbsp;:</label>
 
60
                        </div>
 
61
                        <div class="col sml-12 med-7">
 
62
                                <?php plxUtils::printInput('meta_description', plxUtils::strCheck($plxAdmin->aConf['meta_description'])); ?>
 
63
                        </div>
 
64
                </div>
 
65
                <div class="grid">
 
66
                        <div class="col sml-12 med-5 label-centered">
 
67
                                <label for="id_meta_keywords"><?php echo L_CONFIG_META_KEYWORDS ?>&nbsp;:</label>
 
68
                        </div>
 
69
                        <div class="col sml-12 med-7">
 
70
                                <?php plxUtils::printInput('meta_keywords', plxUtils::strCheck($plxAdmin->aConf['meta_keywords'])); ?>
 
71
                        </div>
 
72
                </div>
 
73
                <div class="grid">
 
74
                        <div class="col sml-12 med-5 label-centered">
 
75
                                <label for="id_default_lang"><?php echo L_CONFIG_BASE_DEFAULT_LANG ?>&nbsp;:</label>
 
76
                        </div>
 
77
                        <div class="col sml-12 med-7">
 
78
                                <?php plxUtils::printSelect('default_lang', plxUtils::getLangs(), $plxAdmin->aConf['default_lang']) ?>
 
79
                        </div>
 
80
                </div>
 
81
                <div class="grid">
 
82
                        <div class="col sml-12 med-5 label-centered">
 
83
                                <label for="id_timezone"><?php echo L_CONFIG_BASE_TIMEZONE ?>&nbsp;:</label>
 
84
                        </div>
 
85
                        <div class="col sml-12 med-7">
 
86
                                <?php plxUtils::printSelect('timezone', plxTimezones::timezones(), $plxAdmin->aConf['timezone']); ?>
 
87
                        </div>
 
88
                </div>
 
89
                <div class="grid">
 
90
                        <div class="col sml-12 med-5 label-centered">
 
91
                                <label for="id_allow_com"><?php echo L_CONFIG_BASE_ALLOW_COMMENTS ?>&nbsp;:</label>
 
92
                        </div>
 
93
                        <div class="col sml-12 med-7">
 
94
                                <?php plxUtils::printSelect('allow_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['allow_com']); ?>
 
95
                        </div>
 
96
                </div>
 
97
                <div class="grid">
 
98
                        <div class="col sml-12 med-5 label-centered">
 
99
                                <label for="id_mod_com"><?php echo L_CONFIG_BASE_MODERATE_COMMENTS ?>&nbsp;:</label>
 
100
                        </div>
 
101
                        <div class="col sml-12 med-7">
 
102
                                <?php plxUtils::printSelect('mod_com',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_com']); ?>
 
103
                        </div>
 
104
                </div>
 
105
                <div class="grid">
 
106
                        <div class="col sml-12 med-5 label-centered">
 
107
                                <label for="id_mod_art"><?php echo L_CONFIG_BASE_MODERATE_ARTICLES ?>&nbsp;:</label>
 
108
                        </div>
 
109
                        <div class="col sml-12 med-7">
 
110
                                <?php plxUtils::printSelect('mod_art',array('1'=>L_YES,'0'=>L_NO), $plxAdmin->aConf['mod_art']); ?>
 
111
                        </div>
 
112
                </div>
 
113
        </fieldset>
 
114
        <?php eval($plxAdmin->plxPlugins->callHook('AdminSettingsBase')) # Hook Plugins ?>
 
115
        <?php echo plxToken::getTokenPostMethod() ?>
 
116
 
 
117
</form>
 
118
 
 
119
<?php
 
120
# Hook Plugins
 
121
eval($plxAdmin->plxPlugins->callHook('AdminSettingsBaseFoot'));
 
122
# On inclut le footer
 
123
include(dirname(__FILE__).'/foot.php');
67
124
?>
 
 
b'\\ No newline at end of file'