Changeset 589
- Timestamp:
- Nov 18, 2013, 10:32:30 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r587 r589 36 36 else $IP = addslashes($_SERVER['REMOTE_ADDR']); 37 37 38 if( !is_null($this->System->User->Id)) $UserId = $this->System->User->Id;38 if(isset($User) and !is_null($this->System->User->Id)) $UserId = $this->System->User->Id; 39 39 else $UserId = 'NULL'; 40 40 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '. … … 63 63 else $IP = addslashes($_SERVER['REMOTE_ADDR']); 64 64 65 if( !is_null($User->Id)) $UserId = $User->Id;65 if(isset($User) and !is_null($User->Id)) $UserId = $User->Id; 66 66 else $UserId = 'NULL'; 67 67 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP`, `URL` ) '. -
trunk/includes/Version.php
r588 r589 1 1 <?php 2 2 3 $Revision = 58 8; // Subversion revision3 $Revision = 589; // Subversion revision 4 4 $DatabaseRevision = 585; // Database structure revision 5 5 $ReleaseTime = '2013-11-18'; -
trunk/includes/global.php
r586 r589 49 49 } 50 50 } 51 51 52 function ShowPage($Content) 52 53 { … … 60 61 $System->ShowPage(); 61 62 } 62 63 63 64 64 function GetMicrotime() -
trunk/includes/system.php
r584 r589 190 190 array_shift($PathItems); 191 191 return($this->SearchPage($PathItems, $Pages[$PathItem])); 192 } else return($Pages[$PathItem]); 192 } else 193 { 194 if(count($PathItems) == 1) return($Pages[$PathItem]); 195 else return(''); // Unexpected subpages 196 } 193 197 } else return(''); 194 198 } … … 196 200 function PageNotFound() 197 201 { 202 if(isset($this->ModuleManager->Modules['Log'])) 203 $this->ModuleManager->Modules['Log']->WriteLog('Stránka "'. 204 implode('/', $this->PathItems).'" nenalezena', LOG_TYPE_ERROR); 198 205 return(ShowMessage('Stránka "'.implode('/', $this->PathItems).'" nenalezena.', MESSAGE_CRITICAL)); 199 206 } … … 202 209 { 203 210 /* @var $Page Page */ 204 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 211 $ClassName = $this->SearchPage($this->PathItems, $this->Pages); 205 212 if($ClassName != '') 206 213 {
Note:
See TracChangeset
for help on using the changeset viewer.