Changeset 302 for trunk/import/index.php
- Timestamp:
- Dec 29, 2009, 12:58:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/index.php
r226 r302 1 1 <?php 2 2 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');3 include_once('../includes/global.php'); 4 include_once('../includes/dbc.php'); 5 include_once('import_lua.php'); 6 include_once('import_sql_mangos.php'); 7 include_once('import_dbc.php'); 8 include_once('update_version.php'); 9 9 10 10 ShowPage(); … … 14 14 echo('Nemáte oprávnění'); 15 15 ShowFooter(); 16 die(); 16 17 } 17 18 … … 41 42 foreach($tables as $table) 42 43 { 43 echo('<a href="?source=sql_mangos&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 44 45 46 47 44 echo('<a href="?source=sql_mangos&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 45 if ($table == $tables[0]) echo(' <strong>Pracuje</strong>'); 46 echo ('<br />'); 47 } 48 echo ('<br />'); echo ('<br />'); 48 49 ImportSQLMangos($Config['Web']['GameVersion'], $tables[0]); 49 50 50 if (isset($tables[1])) 51 { 51 52 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 52 53 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[1]).'\'", 3000)</script>'); 53 54 } else { 54 55 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 55 56 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 56 57 57 } 58 } else { 58 59 foreach($tables as $table) 59 60 { 60 echo('<a href="?source=sql_mangos&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 61 62 63 64 65 61 echo('<a href="?source=sql_mangos&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 />'); 66 67 ImportSQLMangos($Config['Web']['GameVersion'], $_GET['group']); 67 68 68 if (isset($tables[array_search($_GET['group'],$tables)+1])) 69 { 69 70 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 70 71 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>'); 71 72 } else { 72 73 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 73 74 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 74 75 75 } 76 } 76 77 break; 77 78 case 'dbc': … … 87 88 foreach($tables as $table) 88 89 { 89 echo('<a href="?source=dbc&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 90 91 92 93 90 echo('<a href="?source=dbc&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 91 if ($table == $tables[0]) echo(' <strong>Pracuje</strong>'); 92 echo ('<br />'); 93 } 94 echo ('<br />'); echo ('<br />'); 94 95 ImportDBC($Config['Web']['GameVersion'], $tables[0]); 95 96 96 if (isset($tables[1])) 97 { 97 98 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 98 99 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=dbc&group='.$tables[1]).'\'", 3000)</script>'); 99 100 } else { 100 101 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 101 102 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 102 103 103 } 104 } else { 104 105 foreach($tables as $table) 105 106 { 106 echo('<a href="?source=dbc&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 107 108 109 110 111 107 echo('<a href="?source=dbc&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 />'); 112 113 ImportDBC($Config['Web']['GameVersion'], $_GET['group']); 113 114 114 if (isset($tables[array_search($_GET['group'],$tables)+1])) 115 { 115 116 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 116 117 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=dbc&group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>'); 117 118 } else { 118 119 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 119 120 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 120 121 121 } 122 } 122 123 break; 123 124 case 'update_version':
Note:
See TracChangeset
for help on using the changeset viewer.