mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-19 17:28:23 +03:00
fix
This commit is contained in:
parent
f79b249f19
commit
168a1443d1
|
@ -493,7 +493,7 @@ class ModuleUser extends Module {
|
|||
if ($this->oUserCurrent) {
|
||||
return;
|
||||
}
|
||||
if (isset($_COOKIE['key']) and $sKey=(string)$_COOKIE['key']) {
|
||||
if (isset($_COOKIE['key']) and is_string($_COOKIE['key']) and $sKey=$_COOKIE['key']) {
|
||||
if ($oUser=$this->GetUserBySessionKey($sKey)) {
|
||||
$this->Authorization($oUser);
|
||||
} else {
|
||||
|
|
|
@ -68,7 +68,7 @@ if ($hDirInclude = opendir($sDirInclude)) {
|
|||
$sFileIncludePathFull=$sDirInclude.$sFileInclude;
|
||||
if ($sFileInclude !='.' and $sFileInclude !='..' and is_file($sFileIncludePathFull)) {
|
||||
$aPathInfo=pathinfo($sFileIncludePathFull);
|
||||
if (strtolower($aPathInfo['extension'])=='php') {
|
||||
if (isset($aPathInfo['extension']) and strtolower($aPathInfo['extension'])=='php') {
|
||||
require_once($sDirInclude.$sFileInclude);
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ if ($hDirInclude = opendir($sDirInclude)) {
|
|||
$sFileIncludePathFull=$sDirInclude.$sFileInclude;
|
||||
if ($sFileInclude !='.' and $sFileInclude !='..' and is_file($sFileIncludePathFull)) {
|
||||
$aPathInfo=pathinfo($sFileIncludePathFull);
|
||||
if (strtolower($aPathInfo['extension'])=='php') {
|
||||
if (isset($aPathInfo['extension']) and strtolower($aPathInfo['extension'])=='php') {
|
||||
require_once($sDirInclude.$sFileInclude);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -530,7 +530,7 @@ return array(
|
|||
'user_menu_profile_friends' => 'Друзья',
|
||||
'user_menu_profile_stream' => 'Активность',
|
||||
'user_menu_profile_notes' => 'Заметки',
|
||||
'user_menu_profile_favourites' => 'Избраннное',
|
||||
'user_menu_profile_favourites' => 'Избранное',
|
||||
'user_menu_profile_favourites_topics' => 'Избранные топики',
|
||||
'user_menu_profile_favourites_comments' => 'Избранные комментарии',
|
||||
'user_menu_profile_tags' => 'Метки',
|
||||
|
|
Loading…
Reference in a new issue