Changeset 71 for www


Ignore:
Timestamp:
Apr 16, 2008, 6:29:56 PM (17 years ago)
Author:
george
Message:

Opraveno: Kódování znaků. Čtení z databáze.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/sunrisechat/sunrisechat2.php

    r43 r71  
    33include_once('../global.php');
    44include_once('webchatsend.php');
    5 //$Config['Web']['ShowError'] = 1;
     5$Config['Web']['ShowError'] = 1;
     6$Charset = 'latin2';
     7$Database->charset($Charset);
    68 
    79$Debug = 0;
     
    2426  if($Command == 'Message')
    2527  {
    26     $Database->charset($Config['Database']['Charset']);
     28    $Database->charset($Charset);
    2729    $Color = $Parts[7];
    2830    $Text = $Parts[8];
     
    8082  if($Command == 'WhoIs')   // for WebSunriseChat support
    8183  {
    82     $Result = $Database->select('sunrisechat_onlinelist','*','sender_id='.$TargetID.' AND sender_ip="'.$TargetIP.'" AND operating_system="Fedora Core 2"');
    83     if($DbResult->num_rows() > 0)
     84    $DbResult = $Database->select('sunrisechat_onlinelist','*','sender_id='.$TargetID.' AND sender_ip="'.$TargetIP.'" AND operating_system="Fedora Core 2"');
     85    if($DbResult->num_rows > 0)
    8486    {
    8587      $Row = $DbResult->fetch_array();
Note: See TracChangeset for help on using the changeset viewer.