Changeset 223 for trunk/import/index.php
- Timestamp:
- Jul 1, 2009, 10:27:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/index.php
r216 r223 30 30 { 31 31 case 'sql_mangos': 32 ImportSQLMangos(); 32 foreach($TranslationTree as $Group) 33 { 34 if(($Group['MangosTable'] != '') and ($Group['TablePrefix'] != '')) 35 { 36 $tables[] = $Group['Id']; 37 } 38 } 39 if(!array_key_exists('group', $_GET)) 40 { 41 foreach($tables as $table) 42 { 43 echo('<a href="?source=sql_mangos&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 44 if ($table == $tables[0]) echo(' <strong>Pracuje</strong>'); 45 echo ('<br />'); 46 } 47 echo ('<br />'); echo ('<br />'); 48 ImportSQLMangos($Config['Web']['GameVersion'], $tables[0]); 49 if (isset($tables[1])) 50 { 51 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 52 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[1]).'\'", 3000)</script>'); 53 } else { 54 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 55 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 56 } 57 } else { 58 foreach($tables as $table) 59 { 60 echo('<a href="?source=sql_mangos&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 />'); 66 ImportSQLMangos($Config['Web']['GameVersion'], $_GET['group']); 67 if (isset($tables[array_search($_GET['group'],$tables)+1])) 68 { 69 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 70 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>'); 71 } else { 72 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 73 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 74 } 75 } 33 76 break; 34 77 case 'dbc': 35 ImportDBC($Config['Web']['GameVersion']); 78 foreach($TranslationTree as $Group) 79 { 80 if(($Group['DBCFileName'] != '') and ($Group['TablePrefix'] != '')) 81 { 82 $tables[] = $Group['Id']; 83 } 84 } 85 if(!array_key_exists('group', $_GET)) 86 { 87 foreach($tables as $table) 88 { 89 echo('<a href="?source=sql_mangos&group='.$table.'">'.$TranslationTree[$table]['Name'].'</a>'); 90 if ($table == $tables[0]) echo(' <strong>Pracuje</strong>'); 91 echo ('<br />'); 92 } 93 echo ('<br />'); echo ('<br />'); 94 ImportDBC($Config['Web']['GameVersion'], $tables[0]); 95 if (isset($tables[1])) 96 { 97 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 98 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[1]).'\'", 3000)</script>'); 99 } else { 100 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 101 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 102 } 103 } else { 104 foreach($tables as $table) 105 { 106 echo('<a href="?source=sql_mangos&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 />'); 112 ImportDBC($Config['Web']['GameVersion'], $_GET['group']); 113 if (isset($tables[array_search($_GET['group'],$tables)+1])) 114 { 115 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 116 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=sql_mangos&group='.$tables[array_search($_GET['group'],$tables)+1]).'\'", 3000)</script>'); 117 } else { 118 echo('<script type="text/javascript" language="JavaScript" charset="utf-8">'. 119 'setTimeout("parent.location.href=\''.htmlspecialchars_decode('?source=update_version').'\'", 3000)</script>'); 120 } 121 } 36 122 break; 37 123 case 'update_version':
Note:
See TracChangeset
for help on using the changeset viewer.