1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-19 17:28:23 +03:00
This commit is contained in:
Mzhelskiy Maxim 2012-06-23 05:46:31 +04:00
parent f79b249f19
commit 168a1443d1
3 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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);
}
}

View file

@ -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' => 'Метки',