Changeset 817 for trunk/admin/index.php


Ignore:
Timestamp:
Feb 23, 2015, 12:03:22 AM (9 years ago)
Author:
chronos
Message:
  • Fixed: Regeneration of team level images from admin page.
  • Added: Show link to client version from import table and translation list table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r816 r817  
    1010{
    1111  global $System, $Config;
    12 
    1312
    1413  $Output = '<h3>Volby pro správu</h3>';
     
    189188}
    190189
    191 function DbcStructure() {
     190function DbcStructure()
     191{
    192192  global $System,$TranslationTree;
     193
    193194  $Output = '';
    194195  if (array_key_exists('GameVersion', $_GET)) {
     
    250251          $Output .= '</table>';
    251252  } else {
    252 
    253253    $DbResult = $System->Database->query('SELECT * FROM `ClientVersion`');
    254254    while($Version = $DbResult->fetch_assoc())
    255255    {
    256256       $Output .= '<a href="'.$System->Link('/admin/?action=dbcstructure&amp;GameVersion='.$Version['Version']).'">'.$Version['Version'].'</a> ';
    257 
    258257    }
    259258    $Output .= '<br /><br />';
     
    263262      if ($Group['DBCFileName'] <> '')
    264263        $Output .=   '<a href="'.$System->Link('/admin/?action=dbcstructure&amp;id='.$Group['Id']).'">'.$Group['DBCFileName'].'</a><br/>';
    265 
    266     }
    267   }
    268 
    269 
     264    }
     265  }
    270266  return($Output);
    271267}
    272268
    273 function ShowLocale()
    274 {
    275   global $LocaleManager, $System;
    276 
    277   $LocaleManager->UpdateAll(dirname(dirname(__FILE__)));
    278   $Output = 'Překlad rozhraní přegenerován';
    279   $Output .= '<table class="BaseTable"><tr><th>Originál</th><th>Překlad</th></tr>';
    280   foreach($LocaleManager->CurrentLocale->Texts->Data as $Index => $Item)
    281     $Output .= '<tr><td>'.$Index.'</td><td>'.$Item.'</td></tr>';
    282   $Output .= '</table>';
    283   $Output .= 'Překladové soubory zaktualizovány';
    284   return($Output);
    285 }
     269  function ShowLocale()
     270  {
     271    global $LocaleManager, $System;
     272
     273    $LocaleManager->UpdateAll(dirname(dirname(__FILE__)));
     274    $Output = 'Překlad rozhraní přegenerován';
     275    $Output .= '<table class="BaseTable"><tr><th>Originál</th><th>Překlad</th></tr>';
     276    foreach($LocaleManager->CurrentLocale->Texts->Data as $Index => $Item)
     277      $Output .= '<tr><td>'.$Index.'</td><td>'.$Item.'</td></tr>';
     278    $Output .= '</table>';
     279    $Output .= 'Překladové soubory zaktualizovány';
     280    return($Output);
     281  }
    286282
    287283  function Show()
     
    293289      if(array_key_exists('action', $_GET))
    294290      {
    295         if($_GET['action'] == 'img_level') $Output .= $this->ImgLevelShow();
     291        if($_GET['action'] == 'img_level') $Output .= ImgLevelShow();
    296292        else if($_GET['action'] == 'error') $Output .= $this->TestError(12, 'test');
    297293        else if($_GET['action'] == 'exception') $Output .= $this->TestException(12, 'test');
Note: See TracChangeset for help on using the changeset viewer.