Changeset 302 for trunk/import/index.php


Ignore:
Timestamp:
Dec 29, 2009, 12:58:13 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Tabulka týmů doplněna o položy URL web stránek, identifikaci vůdce týmu a času vytvoření týmu.
  • Opraveno: Vstupování do týmů ze stránky nastavení překladatele.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/import/index.php

    r226 r302  
    11<?php
    22
    3 include('../includes/global.php');
    4 include('../includes/dbc.php');
    5 include('import_lua.php');
    6 include('import_sql_mangos.php');
    7 include('import_dbc.php');
    8 include('update_version.php');
     3include_once('../includes/global.php');
     4include_once('../includes/dbc.php');
     5include_once('import_lua.php');
     6include_once('import_sql_mangos.php');
     7include_once('import_dbc.php');
     8include_once('update_version.php');
    99
    1010ShowPage();
     
    1414  echo('Nemáte oprávnění');
    1515  ShowFooter();
     16  die();
    1617}
    1718
     
    4142        foreach($tables as $table)
    4243        {
    43                   echo('<a href="?source=sql_mangos&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>');   
    44                   if ($table == $tables[0]) echo(' <strong>Pracuje</strong>');
    45                   echo ('<br />');
    46                 }
    47                 echo ('<br />'); echo ('<br />');
     44      echo('<a href="?source=sql_mangos&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>');
     45      if ($table == $tables[0]) echo(' <strong>Pracuje</strong>');
     46      echo ('<br />');
     47    }
     48    echo ('<br />'); echo ('<br />');
    4849        ImportSQLMangos($Config['Web']['GameVersion'], $tables[0]);
    49                 if (isset($tables[1]))
    50                 {
     50    if (isset($tables[1]))
     51    {
    5152          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    5253          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&amp;group='.$tables[1]).'\'", 3000)</script>');
    53                 } else {
     54    } else {
    5455          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    5556          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>');
    56             }
    57           } else {
     57      }
     58    } else {
    5859        foreach($tables as $table)
    5960        {
    60                   echo('<a href="?source=sql_mangos&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>');   
    61                   if ($table < $_GET['group']) echo (' <strong>Hotovo</strong>');
    62                   if ($table == $_GET['group']) echo (' <strong>Pracuje</strong>');
    63                   echo ('<br />');
    64                 }
    65                 echo ('<br />'); echo ('<br />');
     61      echo('<a href="?source=sql_mangos&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>');
     62      if ($table < $_GET['group']) echo (' <strong>Hotovo</strong>');
     63      if ($table == $_GET['group']) echo (' <strong>Pracuje</strong>');
     64      echo ('<br />');
     65    }
     66    echo ('<br />'); echo ('<br />');
    6667        ImportSQLMangos($Config['Web']['GameVersion'], $_GET['group']);
    67                 if (isset($tables[array_search($_GET['group'],$tables)+1]))
    68                 {
     68    if (isset($tables[array_search($_GET['group'],$tables)+1]))
     69    {
    6970          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    7071          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&amp;group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>');
    71                 } else {
     72    } else {
    7273          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    7374          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>');
    74             }
    75           }
     75      }
     76    }
    7677      break;
    7778    case 'dbc':
     
    8788        foreach($tables as $table)
    8889        {
    89                   echo('<a href="?source=dbc&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 
    90                   if ($table == $tables[0]) echo(' <strong>Pracuje</strong>');
    91                   echo ('<br />');
    92                 }
    93                 echo ('<br />'); echo ('<br />');
     90      echo('<a href="?source=dbc&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 
     91      if ($table == $tables[0]) echo(' <strong>Pracuje</strong>');
     92      echo ('<br />');
     93    }
     94    echo ('<br />'); echo ('<br />');
    9495        ImportDBC($Config['Web']['GameVersion'], $tables[0]);
    95                 if (isset($tables[1]))
    96                 {
     96    if (isset($tables[1]))
     97    {
    9798          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    9899          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=dbc&amp;group='.$tables[1]).'\'", 3000)</script>');
    99                 } else {
     100    } else {
    100101          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    101102          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>');
    102             }
    103           } else {
     103      }
     104    } else {
    104105        foreach($tables as $table)
    105106        {
    106                   echo('<a href="?source=dbc&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 
    107                   if ($table < $_GET['group']) echo (' <strong>Hotovo</strong>');
    108                   if ($table == $_GET['group']) echo (' <strong>Pracuje</strong>');
    109                   echo ('<br />');
    110                 }
    111                 echo ('<br />'); echo ('<br />');
     107      echo('<a href="?source=dbc&amp;group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 
     108      if ($table < $_GET['group']) echo (' <strong>Hotovo</strong>');
     109      if ($table == $_GET['group']) echo (' <strong>Pracuje</strong>');
     110      echo ('<br />');
     111    }
     112    echo ('<br />'); echo ('<br />');
    112113        ImportDBC($Config['Web']['GameVersion'], $_GET['group']);
    113                 if (isset($tables[array_search($_GET['group'],$tables)+1]))
    114                 {
     114    if (isset($tables[array_search($_GET['group'],$tables)+1]))
     115    {
    115116          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    116117          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=dbc&amp;group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>');
    117                 } else {
     118    } else {
    118119          echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'.
    119120          'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>');
    120             }
    121           }
     121      }
     122    }
    122123      break;
    123124    case 'update_version':
Note: See TracChangeset for help on using the changeset viewer.