Changeset 482


Ignore:
Timestamp:
Jun 14, 2010, 7:09:16 AM (14 years ago)
Author:
george
Message:
  • Opraveno: Čtení jména uživatele ve zobrazení RSS kanálů záznamů událostí.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/index.php

    r476 r482  
    481481       
    482482  if(array_key_exists('Operation', $_POST))
    483   if($_POST['Operation'] == 'Save')
     483  if(($_POST['Operation'] == 'Save') and (array_key_exists('ClientVersion', $_POST)))
    484484  {
    485485    $System->Database->query('UPDATE `Export` SET `ClientVersion`='.$_POST['ClientVersion'].' WHERE `Id`='.$_GET['ExportId']);
  • trunk/log.php

    r455 r482  
    88  if(array_key_exists('type', $_GET)) $Where = ' WHERE `Type` = "'.($_GET['type'] * 1).'"';
    99    else $Where = '';
    10   $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `User` FROM `Log`'.$Where.' ORDER BY `Date` DESC LIMIT 100';
     10  $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log`'.$Where.' ORDER BY `Date` DESC LIMIT 100';
    1111  $DbResult = $System->Database->query($sql);
    1212  while($Line = $DbResult->fetch_assoc())
     
    1717    $Items[] = array
    1818    (
    19       'Title' => strip_tags($LogType['Name'].': '.$Line['Text'].' ('.$Line['Name'].', '.$Line['IP'].')'),
     19      'Title' => strip_tags($LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].')'),
    2020      'Link' => 'http://'.$Config['Web']['Host'].$System->Link('/log.php'),
    21       'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['Name'].', '.$Line['IP'].')',
     21      'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].')',
    2222      'Time' => $Line['TimeCreate'],
    2323    );
Note: See TracChangeset for help on using the changeset viewer.