Ignore:
Timestamp:
Jan 30, 2009, 10:33:08 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Přepracován systém pro více skupin překladů. Původně přes samostatné php soubory, nyní dynamicky dle tabulek group a group_item.
  • Přidáno: Doplněna podpora skupin překladů item, creature, gameobject, mangos_string, mangos_command.
  • Opraveno: Export dat nyní bez výběru konkrétních sloupců s plným výběrem exportu překladových skupin. Přepracované extporotvané příkazy a forma dat.
  • Upraveno: Styl stránek částečně oddělen do souboru style.css. Podobně javascripty přesouvat do global.js.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      SqlTranslate.zip
  • trunk/includes/global_function.php

    r48 r49  
    8787  while($DbRow = mysql_fetch_assoc($DbResult))
    8888  {
    89         $Result[$DbRow['Group']]['Items'][$DbRow['Id']] = $DbRow;
     89        $Result[$DbRow['Group']]['Items'][] = $DbRow;
    9090  }
    9191  return($Result);
    9292}
    93 
    94 $Texts = array
    95 (
    96   //array('Title'),
    97   array('Details'),
    98   array('Objectives'),
    99   array('OfferRewardText'),
    100   array('RequestItemsText'),
    101   array('EndText'),
    102   array('ObjectiveText1'),
    103   array('ObjectiveText2'),
    104   array('ObjectiveText3'),
    105   array('ObjectiveText4'),
    106 );
    10793
    10894$LogTypes = array
     
    128114  $user = @$_SESSION['UserID'];
    129115  $Database->SelectDatabase($Config['Database']['Database']);   
    130   $Database->SQLCommand('INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` )
    131    VALUES ( "'.$user.'", "'.$Type.'", "'.$Text.'", NOW(), "'.$_SERVER['REMOTE_ADDR'].'")');
     116  $Query = 'INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` )
     117   VALUES ('.$user.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.addslashes($_SERVER['REMOTE_ADDR']).'")';
     118  $Database->SQLCommand($Query);
    132119}
    133120
    134 $npc_text = array
    135 (
    136   '0' => 'text0_0',
    137   '1' => 'text0_1',
    138   '2' => 'text1_0',
    139   '3' => 'text1_1',
    140   '4' => 'text2_0',
    141   '5' => 'text2_1',
    142   '6' => 'text3_0',
    143   '7' => 'text3_1',
    144   '8' => 'text4_0',
    145   '9' => 'text4_1',
    146   '10' => 'text5_0',
    147   '11' => 'text5_1',
    148   '12' => 'text6_0',
    149   '13' => 'text6_1',
    150   '14' => 'text7_0',
    151   '15' => 'text7_1',
    152 );
    153 
    154 $page_text = array
    155 (
    156   '0' => 'text',
    157 );
    158121
    159122$client_files = array
     
    168131);
    169132
    170 $client_text = array
    171 (
    172   '0' => 'text',
    173 );
    174 
    175133?>
Note: See TracChangeset for help on using the changeset viewer.