forked from ZwiiCMS-Team/ZwiiCMS
syntaxte getUser
This commit is contained in:
parent
2384367a68
commit
1e2f6b9a6b
@ -1827,8 +1827,8 @@ class core extends common {
|
|||||||
*/
|
*/
|
||||||
foreach($this->getData(['user']) as $userId => $userIds){
|
foreach($this->getData(['user']) as $userId => $userIds){
|
||||||
$t = explode('/',$this->getData(['user', $userId, 'accessUrl']));
|
$t = explode('/',$this->getData(['user', $userId, 'accessUrl']));
|
||||||
if ( $this->getuser('id') &&
|
if ( $this->getUser('id') &&
|
||||||
$userId !== $this->getuser('id') &&
|
$userId !== $this->getUser('id') &&
|
||||||
$this->getData(['user', $userId,'accessUrl']) === $this->getUrl() &&
|
$this->getData(['user', $userId,'accessUrl']) === $this->getUrl() &&
|
||||||
array_intersect($t,self::$accessList) &&
|
array_intersect($t,self::$accessList) &&
|
||||||
array_intersect($t,self::$accessExclude) !== false &&
|
array_intersect($t,self::$accessExclude) !== false &&
|
||||||
@ -1841,8 +1841,8 @@ class core extends common {
|
|||||||
}
|
}
|
||||||
// Accès concurrent stocke la page visitée
|
// Accès concurrent stocke la page visitée
|
||||||
if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) {
|
if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')) {
|
||||||
$this->setData(['user',$this->getuser('id'),'accessUrl',$this->getUrl()]);
|
$this->setData(['user',$this->getUser('id'),'accessUrl',$this->getUrl()]);
|
||||||
$this->setData(['user',$this->getuser('id'),'accessTimer',time()]);
|
$this->setData(['user',$this->getUser('id'),'accessTimer',time()]);
|
||||||
}
|
}
|
||||||
// Breadcrumb
|
// Breadcrumb
|
||||||
$title = $this->getData(['page', $this->getUrl(0), 'title']);
|
$title = $this->getData(['page', $this->getUrl(0), 'title']);
|
||||||
|
Loading…
Reference in New Issue
Block a user