Changeset 842


Ignore:
Timestamp:
Jan 12, 2016, 10:55:07 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Admin section transformed to application module.
Location:
trunk
Files:
2 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Import/Manage.php

    r817 r842  
    7777      if($Group['LuaFileName'] != '') $Output .= $Group['LuaFileName'].'.lua ';
    7878      $Output .= '</td>'.
    79         '<td><a title="Změny po posledním importu u vybrané překladové skupiny" href="../log.php?group='.$Group['Id'].'&amp;type=11">'.HumanDate($Group['LastImport']).'</a></td>'.
     79        '<td><a title="Změny po posledním importu u vybrané překladové skupiny" href="../log/?group='.$Group['Id'].'&amp;type=11">'.HumanDate($Group['LastImport']).'</a></td>'.
    8080        '<td><a href="'.$this->System->Link('/client-version/?action=item&amp;id='.
    8181        GetVersionWOWId($Group['LastVersion'])).'">'.GetVersionWOW($Group['LastVersion']).'</a></td>'.
  • trunk/Modules/Log/Log.php

    r838 r842  
    2020  function DoStart()
    2121  {
    22     $this->System->RegisterPage('log.php', 'PageLog');
     22    $this->System->RegisterPage('log', 'PageLog');
    2323    $this->System->ModuleManager->Modules['Error']->OnError[] = array($this, 'DoAddItem');
    2424    $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Logs'),
     
    9191      (
    9292        'Title' => $LogType['Name'].' ('.$Line['UserName'].', '.$Line['IP'].')',
    93         'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'),
     93        'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log/'),
    9494        'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].
    9595          ', '.$Line['IP'].', '.HumanDate($Line['Date']).')',
     
    141141    {
    142142      $Output = '<strong>Filtr:</strong>';
    143         $Item = '<a href="log.php?type=" title="Bez filtrování">Všechny</a>';
     143        $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování">Všechny</a>';
    144144      if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>';
    145145      $Output .= ' '.$Item;
     
    147147      while($LogType = $DbResult->fetch_assoc())
    148148      {
    149         $Item = '<a href="log.php?type='.$LogType['Id'].'" style="color:'.$LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a>';
     149        $Item = '<a href="'.$this->System->Link('/log/?type='.$LogType['Id']).'" style="color:'.
     150          $LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a>';
    150151        if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>';
    151152        $Output .= ' '.$Item;
     
    201202      if($this->System->User->Licence(LICENCE_ADMIN))
    202203      {
    203         $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log.php?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.
    204           '<a href="'.$this->System->Link('/log.php?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';
     204        $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.
     205          '<a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';
    205206      }
    206207    } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
  • trunk/Modules/Translation/Translation.php

    r838 r842  
    3535      'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS));
    3636    $this->System->RegisterMenuItem(array(
    37         'Title' => T('Completion status'),
    38         'Hint' => 'Stav dokončení překládů',
    39         'Link' => $this->System->Link('/progress/'),
    40         'Permission' => LICENCE_ANONYMOUS,
    41         'Icon' => '',
     37      'Title' => T('Completion status'),
     38      'Hint' => 'Stav dokončení překládů',
     39      'Link' => $this->System->Link('/progress/'),
     40      'Permission' => LICENCE_ANONYMOUS,
     41      'Icon' => '',
    4242    ), 1);
     43    $this->System->RegisterMenuItem(array(
     44      'Title' => T('Data source'),
     45      'Hint' => 'Informace o překladových skupinách',
     46      'Link' => $this->System->Link('/TranslationList.php?action=grouplist'),
     47      'Permission' => LICENCE_ANONYMOUS,
     48      'Icon' => '',
     49    ));
    4350    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
    4451    {
  • trunk/Modules/Translation/TranslationList.php

    r837 r842  
    359359      $Output .= '</td>';
    360360      if($this->System->User->Licence(LICENCE_ADMIN))
    361         $Output .= '<td><a title="Změny po posledním importu u vybrané překladové skupiny" href="log.php?group='.
    362           $Group['Id'].'&amp;type=11">'.HumanDate($Group['LastImport']).'</a></td>';
     361        $Output .= '<td><a title="Změny po posledním importu u vybrané překladové skupiny" href="'.$this->System->Link('/log/?group='.
     362          $Group['Id'].'&amp;type=11').'">'.HumanDate($Group['LastImport']).'</a></td>';
    363363        else $Output .= '<td>'.HumanDate($Group['LastImport']).'</td>';
    364364      $Output .= '<td><a href="'.$this->System->Link('/client-version/?action=item&amp;id='.
     
    370370    }
    371371    $Output .= '</table>'.
    372         '<br /><a title="'.T('Changelog of changes after import').'" href="log.php?type=11">'.T('Changelog of text modification during import').'</a><br/>';
     372        '<br /><a title="'.T('Changelog of changes after import').'" href="'.$this->System->Link('/log/?type=11').'">'.T('Changelog of text modification during import').'</a><br/>';
    373373    if($this->System->User->Licence(LICENCE_ADMIN)) $Output .= '<a href="?action=groupadd">'.T('Add translation group').'</a>';
    374374    return($Output);
  • trunk/includes/Version.php

    r841 r842  
    66// and system will need database update.
    77
    8 $Revision = 841; // Subversion revision
     8$Revision = 842; // Subversion revision
    99$DatabaseRevision = 811; // Database structure revision
    1010$ReleaseTime = '2016-01-12';
  • trunk/includes/global.php

    r838 r842  
    3333include_once(dirname(__FILE__).'/../Modules/Forum/Forum.php');
    3434include_once(dirname(__FILE__).'/../Modules/Redirection/Redirection.php');
     35include_once(dirname(__FILE__).'/../Modules/Admin/Admin.php');
    3536
    3637
  • trunk/includes/system.php

    r841 r842  
    7575      ),
    7676      array(
    77         'Title' => T('Data source'),
    78         'Hint' => 'Informace o překladových skupinách',
    79         'Link' => $this->Link('/TranslationList.php?action=grouplist'),
    80         'Permission' => LICENCE_ANONYMOUS,
    81         'Icon' => '',
    82       ),
    83       array(
    8477        'Title' => T('Presentation'),
    8578        'Hint' => 'Prezentace a motivace překladu',
     
    9386        'Link' => 'http://embed.mibbit.com/?server=game.zdechov.net%3A6667&amp;channel=%23wowpreklad&amp;forcePrompt=true&amp;charset=utf-8',
    9487        'Permission' => LICENCE_ANONYMOUS,
    95         'Icon' => '',
    96       ),
    97       array(
    98         'Title' => T('Administration'),
    99         'Hint' => 'Volby pro správu',
    100         'Link' => $this->Link('/admin/'),
    101         'Permission' => LICENCE_ADMIN,
    10288        'Icon' => '',
    10389      ),
     
    162148    $this->ModuleManager->RegisterModule(new ModuleForum($this));
    163149    $this->ModuleManager->RegisterModule(new ModuleRedirection($this));
     150    $this->ModuleManager->RegisterModule(new ModuleAdmin($this));
    164151    $this->ModuleManager->FileName = dirname(__FILE__).'/../Config/ModulesConfig.php';
    165152    // TODO: Allow control from web which modules should be installed
Note: See TracChangeset for help on using the changeset viewer.