Changeset 302 for trunk/import
- Timestamp:
- Dec 29, 2009, 12:58:13 PM (15 years ago)
- Location:
- trunk/import
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/generatecodeXML.php
r195 r302 5 5 function startElement($parser, $name, $attrs) 6 6 { 7 global $depth,$xml_buffer; 8 for ($i = 0; $i < $depth[$parser]; $i++) { 9 echo " "; 10 } 7 global $depth, $xml_buffer; 8 9 for ($i = 0; $i < $depth[$parser]; $i++) 10 { 11 echo " "; 12 } 11 13 // echo "<BR />$name\n"; 12 14 // print_r( $attrs); … … 20 22 function endElement($parser, $name) 21 23 { 22 global $depth; 23 $depth[$parser]--; 24 global $depth; 25 26 $depth[$parser]--; 24 27 } 25 28 //TODO '.$Config['Web']['GameVersion'].' … … 27 30 28 31 $files = scandir($verze); 29 foreach($files as $file) { 30 $end = substr($file,strlen($file)-3); 31 if ($end == 'xml'){ 32 echo '<br />--'.$file.'<br /><br />'; 33 $file = $verze.'/'.$file; 34 $xml_buffer = array(); //mazání 35 32 foreach($files as $file) 33 { 34 $end = substr($file, strlen($file) - 3); 35 if($end == 'xml') 36 { 37 echo('<br />--'.$file.'<br /><br />'); 38 $file = $verze.'/'.$file; 39 $xml_buffer = array(); //mazání 40 41 $xml_parser = xml_parser_create(); 42 xml_set_element_handler($xml_parser, 'startElement', 'endElement'); 43 if (!($fp = fopen($file, 'r'))) 44 { 45 die('could not open XML input'); 46 } 36 47 37 $xml_parser = xml_parser_create(); 38 xml_set_element_handler($xml_parser, "startElement", "endElement"); 39 if (!($fp = fopen($file, "r"))) { 40 die("could not open XML input"); 41 } 42 43 while ($data = fread($fp, 4096)) { 44 if (!xml_parse($xml_parser, $data, feof($fp))) { 45 die(sprintf("XML error: %s at line %d", 48 while ($data = fread($fp, 4096)) 49 { 50 if (!xml_parse($xml_parser, $data, feof($fp))) 51 { 52 die(sprintf("XML error: %s at line %d", 46 53 xml_error_string(xml_get_error_code($xml_parser)), 47 54 xml_get_current_line_number($xml_parser))); 48 } 49 } 50 xml_parser_free($xml_parser); 51 52 for ($i = 0; $i < count($xml_buffer); $i++) { 53 $line = $xml_buffer[$i]; 54 if (isset($line[1]['TEXT'])) { 55 $name = $line[1]['NAME']; 55 } 56 } 57 xml_parser_free($xml_parser); 58 59 for ($i = 0; $i < count($xml_buffer); $i++) 60 { 61 $line = $xml_buffer[$i]; 62 if (isset($line[1]['TEXT'])) 63 { 64 $name = $line[1]['NAME']; 56 65 57 if ($name == '') { //u FontString 58 $j = 1; 59 while (substr($name,0,1) == '') { 60 if (isset($xml_buffer[$i-$j][1]['NAME'])) { 61 $name = $xml_buffer[$i-$j][1]['NAME'].$name; 62 } 63 $j++; 64 } 65 } 66 if ($name == '') 67 { //u FontString 68 $j = 1; 69 while (substr($name,0,1) == '') 70 { 71 if (isset($xml_buffer[$i-$j][1]['NAME'])) 72 { 73 $name = $xml_buffer[$i-$j][1]['NAME'].$name; 74 } 75 $j++; 76 } 77 } 66 78 67 if (substr($name,0,1) == '$') { //zjišťování potomků 68 $j = 1; 69 while (substr($name,0,1) == '$') { 70 if (($xml_buffer[$i-$j][0] < $line[0]) and (isset($xml_buffer[$i-$j][1]['NAME']))) { 71 $name = substr($name,strlen('$parent')); 72 $name = $xml_buffer[$i-$j][1]['NAME'].$name; 73 } 74 $j++; 75 } 76 } 77 if ((' - ' <> $line[1]['TEXT']) and ('' <> $line[1]['TEXT'])) 78 echo $name.':SetText(i["'.$line[1]['TEXT'].'"]);<br />'; 79 } 79 if (substr($name,0,1) == '$') 80 { //zjišťování potomků 81 $j = 1; 82 while (substr($name,0,1) == '$') 83 { 84 if (($xml_buffer[$i-$j][0] < $line[0]) and (isset($xml_buffer[$i-$j][1]['NAME']))) 85 { 86 $name = substr($name,strlen('$parent')); 87 $name = $xml_buffer[$i-$j][1]['NAME'].$name; 88 } 89 $j++; 90 } 91 } 92 if ((' - ' <> $line[1]['TEXT']) and ('' <> $line[1]['TEXT'])) 93 echo $name.':SetText(i["'.$line[1]['TEXT'].'"]);<br />'; 94 } 95 } 96 } 97 } 80 98 81 }82 }83 }84 99 ?> -
trunk/import/import_sql_mangos.php
r250 r302 1 1 <?php 2 2 3 function ImportSQLMangos($import_version, $GroupId)3 function ImportSQLMangos($import_version, $GroupId) 4 4 { 5 5 global $Database, $TranslationTree, $PatchVersion, $Config; 6 6 7 $BuildNumber = GetBuildNumber($import_version); 7 8 8 9 $Group = $TranslationTree[$GroupId]; 9 10 10 11 12 11 $files = scandir('../source/'.$import_version.'/sql/', 1); 12 unset($files[count($files) - 1]); 13 unset($files[count($files) - 1]); 13 14 14 $File = new FileStream(); 15 $File->OpenFile('../source/'.$import_version.'/sql/'.$files[0]); 16 $NewCount = 0; 17 $Count = 0; 18 $folow_structure = False; 19 $i = 0; 20 while((!$File->EOF())) 15 $File = new FileStream(); 16 $File->OpenFile('../source/'.$import_version.'/sql/'.$files[0]); 17 $NewCount = 0; 18 $Count = 0; 19 $folow_structure = False; 20 $i = 0; 21 while((!$File->EOF())) 22 { 23 $Line = $File->ReadLine(); 24 //Struktura 25 if(strpos($Line, 'CREATE TABLE `'.$Group['MangosTable'].'`') !== false) 26 { 27 $Line = ''; 28 $folow_structure = True; 29 $i = 0; 30 } 31 if((strpos($Line, ';') !== false) and ($folow_structure == true)) 32 { 33 $folow_structure = False; 34 // echo ('Struktura: <br />'); 35 // print_r($structure); 36 // echo ('<br /><br />'); 37 } 38 if(($folow_structure == true) and ($Line != '')) 39 { 40 $str = substr($Line, 0, strpos($Line, '`')); 41 $Line = substr($Line, strpos($Line, '`') + 1); 42 $Line = substr($Line, 0, strpos($Line, '`')); 43 if(strlen($str) < 3) $structure[$i] = $Line; 44 $i++; 45 } 46 47 //data 48 if((strpos($Line, 'INSERT INTO `'.$Group['MangosTable'].'`') !== false) and (isset($structure))) 49 { 50 $Line = substr($Line, strpos($Line, '(') + 1); 51 $Line = substr($Line, 0, strpos($Line, ');')); 52 $LineParts = explode('),(', $Line); 53 unset($Line); 54 55 foreach($LineParts as $LinePart) 21 56 { 22 $Line = $File->ReadLine(); 23 //Struktura 24 if(strpos($Line, 'CREATE TABLE `'.$Group['MangosTable'].'`') !== false) 25 { 26 $Line = ''; 27 $folow_structure = True; 28 $i = 0; 29 } 30 if((strpos($Line, ';') !== false) and ($folow_structure == true)) 31 { 32 $folow_structure = False; 33 // echo ('Struktura: <br />'); 34 // print_r($structure); 35 // echo ('<br /><br />'); 36 } 37 if (($folow_structure == True) and ($Line != '')) 38 { 39 $str = substr($Line,0, strpos($Line,'`')); 40 $Line = substr($Line, strpos($Line,'`')+1); 41 $Line = substr($Line,0, strpos($Line,'`')); 42 if (strlen($str) < 3) 43 $structure[$i] = $Line; 44 $i++; 45 } 46 47 //data 48 if ((strpos($Line, 'INSERT INTO `'.$Group['MangosTable'].'`') !== false) and (isset($structure))) 49 { 50 $Line = substr($Line, strpos($Line,'(')+1); 51 $Line = substr($Line,0, strpos($Line,');')); 52 $LineParts = explode('),(', $Line); 53 unset($Line); 54 55 foreach($LineParts as $LinePart) 56 { 57 unset($Value,$value_buff); 58 foreach($structure as $i => $column) 57 unset($Value, $value_buff); 58 foreach($structure as $i => $column) 59 { 60 if (substr($LinePart, 0, 1) != "'") 61 { 62 $value_buff = substr($LinePart, 0, strpos($LinePart, ',')); 63 $LinePart = substr($LinePart, strlen($value_buff) + 1); 64 } else 65 { 66 $LinePart = substr($LinePart, 1); 67 $value_buff = substr($LinePart, 0, strpos($LinePart, "'")); 68 while(substr($value_buff, strlen($value_buff) - 1, 1) == "\\") 59 69 { 60 if (substr($LinePart,0, 1) != "'") 61 { 62 $value_buff = substr($LinePart,0, strpos($LinePart,',')); 63 $LinePart = substr($LinePart,strlen($value_buff)+1); 64 } else { 65 $LinePart = substr($LinePart,1); 66 $value_buff = substr($LinePart,0, strpos($LinePart,"'")); 67 while(substr($value_buff,strlen($value_buff)-1,1) == "\\") 68 { 69 $str = substr($LinePart,strlen($value_buff)); 70 $str2 = substr($str,0, strpos($str,"'",1)); 71 $value_buff = $value_buff.$str2; 72 $str = substr($str,strlen($str2)); 73 } 74 $LinePart = substr($LinePart,strlen($value_buff)+2); 75 } 76 if (($value_buff != 'null') and ($value_buff != 'NULL')) 77 { 78 $str = ''; 79 while(substr($value_buff,strlen($value_buff)-1,1) == " ") 80 { 81 $value_buff = substr($value_buff,0,strlen($value_buff)-1); 82 $str .= ' '; 83 } 84 $str2 = ''; 85 while(substr($value_buff,0,1) == " ") 86 { 87 $value_buff = substr($value_buff,1,strlen($value_buff)-1); 88 $str2 .= ' '; 89 } 90 $Value[$column] = $str2.trim($value_buff).$str; 91 } else { 92 $Value[$column] = ''; 93 } 94 // echo ($column.'-"'.$Value[$column].'"<br>'); 95 } 70 $str = substr($LinePart, strlen($value_buff)); 71 $str2 = substr($str, 0, strpos($str, "'", 1)); 72 $value_buff = $value_buff.$str2; 73 $str = substr($str, strlen($str2)); 74 } 75 $LinePart = substr($LinePart, strlen($value_buff) + 2); 76 } 77 if (($value_buff != 'null') and ($value_buff != 'NULL')) 78 { 79 $str = ''; 80 while(substr($value_buff, strlen($value_buff) - 1,1) == " ") 81 { 82 $value_buff = substr($value_buff, 0, strlen($value_buff) - 1); 83 $str .= ' '; 84 } 85 $str2 = ''; 86 while(substr($value_buff, 0, 1) == ' ') 87 { 88 $value_buff = substr($value_buff, 1, strlen($value_buff) - 1); 89 $str2 .= ' '; 90 } 91 $Value[$column] = $str2.trim($value_buff).$str; 92 } else 93 { 94 $Value[$column] = ''; 95 } 96 // echo ($column.'-"'.$Value[$column].'"<br>'); 97 } 98 99 $Columns = ''; 100 foreach($Group['Items'] as $GroupItem) 101 { 102 $Columns .= ', '.$GroupItem['Column'].' '; 103 } 104 $Columns = substr($Columns, 1); 96 105 97 //************************************************ 98 99 $Columns = ''; 100 foreach($Group['Items'] as $GroupItem) 106 if($Group['Id'] == 8)$DbResult2 = $Database->SQLCommand('SELECT VersionEnd, ID, entry, '.$Columns.' FROM '.$Group['TablePrefix'].' WHERE Name="'.$Value['name'].'" AND (Language=0) ORDER BY VersionStart DESC LIMIT 1'); 107 else $DbResult2 = $Database->SQLCommand('SELECT VersionEnd, ID, entry, '.$Columns.' FROM '.$Group['TablePrefix'].' WHERE entry='.$Value[$Group['MangosTableIndex']].' AND (Language=0) ORDER BY VersionStart DESC LIMIT 1'); 108 if(isset($DbResult2) and (mysql_num_rows($DbResult2) > 0)) 109 { 110 // Update existed text 111 $DbRow2 = mysql_fetch_assoc($DbResult2); 112 if(HaveSameText($Group, $DbRow2, $Value)) 113 { 114 if ($DbRow2['VersionEnd'] <> $BuildNumber) 101 115 { 102 $Columns .= ', '.$GroupItem['Column'].' '; 116 $Database->SQLCommand('UPDATE `'.$Group['TablePrefix'].'` SET VersionEnd = "'.$BuildNumber.'" WHERE ID='.$DbRow2['ID']); 117 echo(', '); 118 } else echo('. '); 119 } else 120 { 121 $Columns = 'entry, language, VersionStart, VersionEnd'; 122 $Values = $DbRow2['entry'].', 0, '.$BuildNumber.', '.$BuildNumber; 123 foreach($Group['Items'] as $GroupItem) 124 { 125 $Columns .= ', `'.$GroupItem['Column'].'`'; 126 $Values .= ', "'.$Value[$GroupItem['MangosColumn']].'"'; 103 127 } 104 $Columns = substr($Columns, 1);105 128 106 if ($Group['Id'] == 8) 107 $DbResult2 = $Database->SQLCommand('SELECT VersionEnd, ID, entry, '.$Columns.' FROM '.$Group['TablePrefix'].' WHERE Name="'.$Value['name'].'" AND (Language=0) ORDER BY VersionStart DESC LIMIT 1'); 108 else 109 $DbResult2 = $Database->SQLCommand('SELECT VersionEnd, ID, entry, '.$Columns.' FROM '.$Group['TablePrefix'].' WHERE entry='.$Value[$Group['MangosTableIndex']].' AND (Language=0) ORDER BY VersionStart DESC LIMIT 1'); 110 if(isset($DbResult2) and (mysql_num_rows($DbResult2) > 0)) 129 if ($DbRow2['VersionEnd'] <> $BuildNumber) 111 130 { 112 // Update existed text 113 $DbRow2 = mysql_fetch_assoc($DbResult2); 114 if(HaveSameText($Group, $DbRow2, $Value)) 115 { 116 if ($DbRow2['VersionEnd'] <> $BuildNumber) { 117 $Database->SQLCommand('UPDATE `'.$Group['TablePrefix'].'` SET VersionEnd = "'.$BuildNumber.'" WHERE ID='.$DbRow2['ID']); 118 echo(', '); 119 } else 120 echo('. '); 121 } else 122 { 123 $Columns = 'entry, language, VersionStart, VersionEnd'; 124 $Values = $DbRow2['entry'].', 0, '.$BuildNumber.', '.$BuildNumber; 125 foreach($Group['Items'] as $GroupItem) 126 { 127 $Columns .= ', `'.$GroupItem['Column'].'`'; 128 $Values .= ', "'.$Value[$GroupItem['MangosColumn']].'"'; 129 } 131 $Database->SQLCommand('INSERT `'.$Group['TablePrefix'].'` ('.$Columns.') VALUES ('.$Values.')'); 132 echo('# '); 133 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.mysql_insert_id().'">'.mysql_insert_id().'</a> ('.$DbRow2['entry'].') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' změněn.', 11); 134 } else echo('. '); 135 } 136 } else 137 { 138 // Insert new text 130 139 131 if ($DbRow2['VersionEnd'] <> $BuildNumber) { 132 $Database->SQLCommand('INSERT `'.$Group['TablePrefix'].'` ('.$Columns.') VALUES ('.$Values.')'); 133 echo('# '); 134 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.mysql_insert_id().'">'.mysql_insert_id().'</a> ('.$DbRow2['entry'].') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' změněn.', 11); 135 } else echo('. '); 136 } 137 } else 140 if($Group['Id'] == 8) 141 { 142 $Entry = 1; 143 $DbResult = $Database->SQLCommand('SELECT MAX(`entry`) FROM `'.$Group['TablePrefix'].'`'); 144 if(mysql_num_rows($DbResult) > 0) 138 145 { 139 // Insert new text 146 $DbRow = mysql_fetch_row($DbResult); 147 $Entry += $DbRow[0]; 148 } 149 } else { 150 $Entry = $Value[$Group['MangosTableIndex']]; 151 } 140 152 141 if ($Group['Id'] == 8) 142 { 143 $Entry = 1; 144 $DbResult = $Database->SQLCommand('SELECT MAX(`entry`) FROM `'.$Group['TablePrefix'].'`'); 145 if(mysql_num_rows($DbResult) > 0) 146 { 147 $DbRow = mysql_fetch_row($DbResult); 148 $Entry += $DbRow[0]; 149 } 150 } else { 151 $Entry = $Value[$Group['MangosTableIndex']]; 152 } 153 $Columns = 'entry, language, VersionStart, VersionEnd'; 154 $Values = $Entry.', 0, '.$BuildNumber.', '.$BuildNumber; 155 foreach($Group['Items'] as $GroupItem) 156 { 157 $Columns .= ', `'.$GroupItem['Column'].'`'; 158 $Values .= ', "'.$Value[$GroupItem['MangosColumn']].'"'; 159 } 160 $Database->SQLCommand('INSERT `'.$Group['TablePrefix'].'` ('.$Columns.') VALUES ('.$Values.')'); 161 echo('+ '); 162 $NewCount++; 163 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.mysql_insert_id().'">'.mysql_insert_id().'</a> ('.$Entry.') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' přidán.', 11); 164 } 165 $Count++; 166 } 167 } 168 } 169 echo('<br />Celkem: '.$Count.' Nových: '.$NewCount.'<br />'); 170 $Database->SQLCommand('UPDATE `group` SET LastVersion = "'.$BuildNumber.'", LastImport = NOW() WHERE Id='.$GroupId); 171 } 153 172 154 $Columns = 'entry, language, VersionStart, VersionEnd';155 $Values = $Entry.', 0, '.$BuildNumber.', '.$BuildNumber;156 foreach($Group['Items'] as $GroupItem)157 {158 $Columns .= ', `'.$GroupItem['Column'].'`';159 $Values .= ', "'.$Value[$GroupItem['MangosColumn']].'"';160 }161 $Database->SQLCommand('INSERT `'.$Group['TablePrefix'].'` ('.$Columns.') VALUES ('.$Values.')');162 echo('+ ');163 $NewCount++;164 WriteLog('Text <a href="form.php?group='.$Group['Id'].'&ID='.mysql_insert_id().'">'.mysql_insert_id().'</a> ('.$Entry.') ze skupiny '.$Group['Name'].' byl v nové verzi '.$import_version.' přidán.', 11);165 }166 167 //********************************************168 $Count++;169 }170 }171 }172 echo('<br />Celkem: '.$Count.' Nových: '.$NewCount.'<br />');173 $Database->SQLCommand('UPDATE `group` SET LastVersion = "'.$BuildNumber.'", LastImport = NOW() WHERE Id='.$GroupId);174 }175 173 ?> -
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.