Changeset 524 for trunk/Modules/News/NewsPage.php
- Timestamp:
- Apr 20, 2013, 8:51:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/NewsPage.php
r523 r524 38 38 { 39 39 case 'view': 40 if(!$this->System-> Modules['User']->CheckPermission('News', 'Display', 'Item')) $Output .= 'Nemáte oprávnění';40 if(!$this->System->User->CheckPermission('News', 'Display', 'Item')) $Output .= 'Nemáte oprávnění'; 41 41 else 42 42 { … … 49 49 else $Author = $Row['Name']; 50 50 $Output .= '<div class="Panel"><div class="Title">'.$Row['Title'].' ('.HumanDate($Row['Date']).', '.$Author.')'; 51 if($this->System-> Modules['User']->User['Id'] == $Row['User'])51 if($this->System->User->User['Id'] == $Row['User']) 52 52 { 53 53 $Output .= '<div class="Action">'; … … 79 79 while($DbRow = $DbResult->fetch_array()) 80 80 { 81 if($this->System-> Modules['User']->CheckPermission('News', 'Insert', 'Group', $DbRow['Id']))81 if($this->System->User->CheckPermission('News', 'Insert', 'Group', $DbRow['Id'])) 82 82 { 83 83 if($DbRow['Id'] == $Category) $Selected = ' selected="1"'; else $Selected = ''; … … 98 98 case 'add2': 99 99 $RemoteAddr = GetRemoteAddress(); 100 if($this->System-> Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category))100 if($this->System->User->CheckPermission('News', 'Insert', 'Group', $Category)) 101 101 { 102 102 // Process uploaded file … … 121 121 $this->Database->insert('News', array('Category' => $Category, 'Title' => $_POST['title'], 122 122 'Content' => $_POST['content'], 'Date' => 'NOW()', 'IP' => $RemoteAddr, 123 'Enclosure' => $Enclosures, 'Author' => $this->System-> Modules['User']->User['Name'], 'User' => $this->System->Modules['User']->User['Id'], 'Link' => $_POST['link']));123 'Enclosure' => $Enclosures, 'Author' => $this->System->User->User['Name'], 'User' => $this->System->User->User['Id'], 'Link' => $_POST['link'])); 124 124 $Output .= 'Aktualita přidána!<br />Pokud budete chtít vaši aktualitu smazat, klikněte na odkaz Smazat v seznamu všech aktualit v kategorii.<br /><br />'; 125 125 $Output .= '<a href="?category='.$_POST['category'].'">Zpět na seznam aktualit</a>'; … … 130 130 $DbResult = $this->Database->query('SELECT * FROM News WHERE Id='.$_GET['id']); 131 131 $Row = $DbResult->fetch_array(); 132 if($this->System-> Modules['User']->User['Id'] == $Row['User'])132 if($this->System->User->User['Id'] == $Row['User']) 133 133 { 134 134 $Row['Content'] = str_replace('<br />', '', $Row['Content']); … … 151 151 { 152 152 $Row = $DbResult->fetch_array(); 153 if($this->System-> Modules['User']->User['Id'] == $Row['User'])153 if($this->System->User->User['Id'] == $Row['User']) 154 154 { 155 155 $_POST['content'] = str_replace("\n", '<br />', $_POST['content']);
Note:
See TracChangeset
for help on using the changeset viewer.