forked from ZwiiCMS-Team/ZwiiCMS
slide secured
This commit is contained in:
parent
a2e1f16a86
commit
c4a4aeb1f3
@ -181,7 +181,10 @@ class slider extends common
|
|||||||
self::$pageList = array_merge([0 => ''], self::$pageList);
|
self::$pageList = array_merge([0 => ''], self::$pageList);
|
||||||
|
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if (
|
||||||
|
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
|
||||||
|
$this->isPost()
|
||||||
|
) {
|
||||||
|
|
||||||
$inputs['legends'] = $this->getInput('legends', null);
|
$inputs['legends'] = $this->getInput('legends', null);
|
||||||
$inputs['uri'] = $this->getInput('sliderHref', null);
|
$inputs['uri'] = $this->getInput('sliderHref', null);
|
||||||
@ -320,8 +323,8 @@ class slider extends common
|
|||||||
$timeout = $this->getInput('sliderThemeDiapoTime', helper::FILTER_INT);
|
$timeout = $this->getInput('sliderThemeDiapoTime', helper::FILTER_INT);
|
||||||
if ($speed >= $timeout) {
|
if ($speed >= $timeout) {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$notification = 'La durée de transition doit inférieure à la durée de l`\'image fixe';
|
$notification = 'La durée de transition doit inférieure à la durée de l`\'image fixe';
|
||||||
$state= false;
|
$state = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$this->setData([
|
$this->setData([
|
||||||
|
Loading…
Reference in New Issue
Block a user