コード例 #1
0
ファイル: aowow_sql_loc.php プロジェクト: saqar/tc_aowow
*/
/// Alternative version of zones extraction (based on Fog's file)
//$dbc = dbc2array_("AreaTable.dbc", L("nxxxxxxxxxxSxxxxxxxxxxxxxxxxxxxxxxxx"));
//print_update('aowow_zones', $dbc, array(0=>"areatableID"), array(1=>"name_loc$L"));
//$dbc = dbc2array_("Map.dbc", L("nxixSxxxxxxxxxxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
//print_update('aowow_zones', $dbc, array(0=>"mapID", 3=>"areatableID"), array(2=>"name_loc$L"));
/// debug check for collisions in Fog's version (shows >20 collisions)
//$dbc = dbc2array_("AreaTable.dbc", L("nxxxxxxxxxxSxxxxxxxxxxxxxxxxxxxxxxxx"));
//$mapnames = array();
//foreach ($dbc as $row) $mapnames[$row[0]] = $row[1];
//$dbc = dbc2array_("Map.dbc", L("nxixSxxxxxxxxxxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
//foreach ($dbc as $row)
//  if (isset($mapnames[$row[3]]) && $mapnames[$row[3]] != $row[2])
//    echo "Collision: '", $row[2], "' (", $row[0], ",", $row[3], ") != '", $mapnames[$row[3]], "'\n";
//unset($mapnames);
/// Last version, the most simple one
$dbc = dbc2array_("AreaTable.dbc", L("nxxxxxxxxxxSxxxxxxxxxxxxxxxxxxxxxxxx"));
print_update('aowow_zones', $dbc, array(0 => "areatableID"), array(1 => "name_loc{$L}"));
$dbc = dbc2array_("Faction.dbc", L("nxxxxxxxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxx"));
print_update('aowow_factions', $dbc, array(0 => "factionID"), array(1 => "name_loc{$L}", 2 => "description1_loc{$L}"));
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xxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$dbc = dbc2array_("Spell.dbc", L("nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxSxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
print_update('aowow_spell', $dbc, array(0 => "spellID"), array(1 => "spellname_loc{$L}", 2 => "rank_loc{$L}", 3 => "tooltip_loc{$L}", 4 => "buff_loc{$L}"));
$dbc = dbc2array_("TalentTab.dbc", L("nSxxxxxxxxxxxxxxxxxxxxxx"));
print_update('aowow_talenttab', $dbc, array(0 => "id"), array(1 => "name_loc{$L}"));
コード例 #2
0
ファイル: VersionCheck.php プロジェクト: jpetrell/gecko-dev
print " </RDF:Seq></em:updates>\n";
// output compat bits for firefox 0.9
if (!empty($highestVersionData)) {
    print " <em:version>{$highestVersionData['extversion']}</em:version>\n";
    print " <em:updateLink>{$highestVersionData['exturi']}</em:updateLink>\n";
}
print "</RDF:Description>\n\n";
function print_update($data)
{
    print "<RDF:Description about=\"urn:mozilla:extension:{$reqItemGuid}:{$data['extversion']}\">\n";
    print " <em:version>{$data['extversion']}</em:version>\n";
    print " <em:targetApplication>\n";
    print "  <RDF:Description>\n";
    print "   <em:id>{$data['appguid']}</em:id>\n";
    print "   <em:minVersion>{$data['appminver']}</em:minVersion>\n";
    print "   <em:maxVersion>{$data['appmaxver']}</em:maxVersion>\n";
    print "   <em:updateLink>{$data['exturi']}</em:updateLink>\n";
    print "  </RDF:Description>\n";
    print " </em:targetApplication>\n";
    print "</RDF:Description>\n";
}
if (!empty($thisVersionData)) {
    print_update($thisVersionData);
}
if (!empty($highestVersionData)) {
    print_update($highestVersionData);
}
print "</RDF:RDF>\n";
?>