Changeset 526


Ignore:
Timestamp:
Feb 20, 2013, 11:45:54 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Kontrola verze klienta při exportu.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r525 r526  
    3535    $this->UserNames = substr($this->UserNames, 2);     
    3636   
    37     $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']);
    38     $this->ClientVersion = $DbResult->fetch_assoc();   
     37    if($this->Export['ClientVersion'] != '')
     38    {
     39      $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']);
     40      $this->ClientVersion = $DbResult->fetch_assoc();
     41    } else $this->ClientVersion = '';   
    3942  }
    4043 
    4144  function BuildQuery($Group, $Columns = '', $Version = '')
    4245  {
    43     global $TranslationTree;
     46    global $TranslationTree, $Config;
    4447   
    4548    if ($Version <> '')
     
    140143    global $Config, $TranslationTree, $AoWoWconf;
    141144 
    142     require_once('../aowow/configs/config.php');
     145    //require_once('../aowow/configs/config.php');
    143146 
    144147    $Buffer = $this->ExportToMangosSQL();
     
    196199    global $TranslationTree, $User;
    197200 
    198     $this->LoadFilters($this->Id);
     201    $this->LoadFilters();
    199202
    200203    $Buffer = '<?xml version="1.0" encoding="utf-8"?>'."\n".
  • trunk/export/index.php

    r525 r526  
    580580  $Export->Id = $_GET['ExportId'];
    581581  $Export->Init();
    582   if($Export->ClientVersion == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL);
    583   else {
    584         $Export->LoadFilters();
    585  
    586   if($Export->ClientVersion['BuildNumber'] == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL);
     582        $Export->LoadFilters();
     583 
     584  if(($Export->Export['ClientVersion'] == '') or ($Export->ClientVersion['BuildNumber'] == ''))
     585        $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL);
    587586  else {
    588587        $GroupListQuery = 'SELECT `Group`.* FROM `Group` '.
     
    640639  $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Percent, 2)).'</strong></td></tr>';
    641640  $Output .= '</table>';
    642   }
    643641  }
    644642  return($Output);
  • trunk/includes/Page.php

    r525 r526  
    157157  while($DbUser = $DbResult->fetch_assoc())
    158158  {
    159     $Name = '<a href="user.php?user='.$DbUser['ID'].'">'.$DbUser['Name'].'</a>';
     159    $Name = '<a href="'.$System->Link('/user.php?user='.$DbUser['ID']).'">'.$DbUser['Name'].'</a>';
    160160    $Output .= '<strong>'.$Name.'</strong><br />';
    161161  }
  • trunk/includes/Version.php

    r525 r526  
    11<?php
    22
    3 $Revision = 525; // Subversion revision
     3$Revision = 526; // Subversion revision
    44$DatabaseRevision = 524;
    55$ReleaseTime = '2013-02-20';
Note: See TracChangeset for help on using the changeset viewer.