Changeset 76 for trunk/www/Application/View/Page.php
- Timestamp:
- Aug 24, 2009, 8:53:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Page.php
r74 r76 35 35 ' <a href="?Module=Emulator&Action=ItemList">Verze emulátoru</a>'. 36 36 '</span><div class="MenuItem2">'; 37 if($this->System->Modules['User']-> User['Id'] == $this->Config['Web']['UserAnonymousId'])37 if($this->System->Modules['User']->Data['Id'] == $this->Config['Web']['UserAnonymousId']) 38 38 { 39 39 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Module=User&Action=Login">Přihlášení</a>'; 40 40 if($this->Config['Web']['UserRegistrationEnabled']) $Output .= ' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Module=User&Action=Register">Registrace</a>'; 41 } else $Output .= $this->System->Modules['User']-> User['Name'].' <a href="'.$this->Config['Web']['RootFolder'].'/?Module=User&Action=Logout">Odhlásit</a>'.41 } else $Output .= $this->System->Modules['User']->Data['Name'].' <a href="'.$this->Config['Web']['RootFolder'].'/?Module=User&Action=Logout">Odhlásit</a>'. 42 42 ' <a href="'.$this->Config['Web']['RootFolder'].'/?Module=User&Action=Options">Nastavení</a>'; 43 43 $Output .= '</div></div>'; … … 64 64 { 65 65 $Output = '<table class="BasicTable"><tr>'; 66 if($this->System->Modules['User']-> User['Id'] != $this->Config['Web']['UserAnonymousId'])66 if($this->System->Modules['User']->Data['Id'] != $this->Config['Web']['UserAnonymousId']) 67 67 $Output .= '<td class="UserMenu">'.$this->UserMenu().'</td>'; 68 68 $Output .= '<td class="Content">'.$Content.'</td>'; … … 79 79 { 80 80 $Output = '<strong>Uživatelské menu</strong><br />'; 81 if($this->System->Modules['User']-> User['Id'] != $this->Config['Web']['UserAnonymousId'])81 if($this->System->Modules['User']->Data['Id'] != $this->Config['Web']['UserAnonymousId']) 82 82 { 83 83 $Output .= '<div><a href="?Module=Cluster&Action=ItemList">Uzly skupiny</a></div>'; … … 89 89 //$Output .= '<div><a href="?Action=UpdateList&Id='.$Server['Id'].'">Dostupné aktualizace</a></div>'; 90 90 91 if($this->System->Modules[' User']->User['Role'] == USER_ROLE_ADMINISTRATOR)91 if($this->System->Modules['Permission']->CheckPermission('News', 'Add')) 92 92 { 93 93 $Output .= '<div><a href="?Module=News&Action=Add">Přidat aktualitu</a></div>'; … … 107 107 else echo($Output); 108 108 } 109 110 function SystemMessage($Text) 111 { 112 return('<table align="center"><tr><td><div class="SystemMessage"><h3>Systémová zpráva</h3><div>'.$Text.'</div></div</td></tr></table>'); 113 //ShowFooter(); 114 //die(); 115 } 116 117 function AccessDenied() 118 { 119 return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied')))); 120 } 109 121 } 110 122
Note:
See TracChangeset
for help on using the changeset viewer.