Changeset 515 for trunk/Modules


Ignore:
Timestamp:
Apr 8, 2013, 11:15:52 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Načítání oprávnění anonymního uživatele. Dříve byl uživatel identifikován předvoleným číslem, nyní je použita hodnota NULL.
Location:
trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/NewsPage.php

    r512 r515  
    9999        if($this->System->Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category))
    100100        {
    101           //print_r($_FILES);
    102101          // Process uploaded file
    103102          $EnclosureFileNames = array('enclosure1', 'enclosure2', 'enclosure3');
     
    156155            $this->Database->update('News', 'Id='.$_POST['id'], array('Title' => $_POST['title'], 'Content' => $_POST['content']));
    157156            $Output .= 'Aktualita uložena!<br />';
    158       $Output .= '<a href="index.php?category='.$Category.'">Zpět na seznam aktualit</a>';
     157            $Output .= '<a href="index.php?category='.$Category.'">Zpět na seznam aktualit</a>';
    159158          } else $Output .= 'Nelze měnit cizí aktualitu!<br />';
    160159        } else $Output .= 'ID nenalezeno!';
  • trunk/Modules/Portal/Portal.php

    r512 r515  
    2626    global $Config;
    2727   
    28     $this->Database->select_db($Config['Database']['Database']);
    29 
    3028    $Output2 = '';
    3129
     
    307305    }
    308306
    309     $this->Database->select_db($Config['Database']['Database']);
    310 
    311307    $DbResult = $this->Database->query('SELECT * FROM `HyperlinkGroup`');
    312308    while($DbRow = $DbResult->fetch_assoc())
Note: See TracChangeset for help on using the changeset viewer.