Changeset 51


Ignore:
Timestamp:
Jan 31, 2009, 9:09:40 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Správný odkaz na vkládání textu do shoutboxu.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r49 r51  
    7878            setTimeout("parent.location.href=\'index.php\'",1000)
    7979        </script>');
    80 
    8180  }
    8281}
  • trunk/includes/global.php

    r50 r51  
    2626  global $Database;
    2727 
    28   echo('<strong>Shoutbox: </strong><a href="action.php?shoutbox">Vložit</a>
     28  echo('<strong>Shoutbox: </strong><a href="action.php?action=shoutbox">Vložit</a>
    2929  <div class="box">
    3030  <table>');
    3131  $ID = $Database->SQLCommand("SELECT * FROM shoutbox ORDER BY ID DESC LIMIT 10");
    32   while($Line = mysql_fetch_array($ID))
     32  while($Line = mysql_fetch_assoc($ID))
    3333    echo('<tr><td><strong>'.$Line['user'].'</strong>: '.$Line['text'].'</td></tr>');
    3434  echo('</table></div>');
     
    120120  echo('Online uživatelé:<br />');
    121121  $ID = $Database->SQLCommand("SELECT user, GM, ID FROM `user` WHERE LastLogin >= Now() - 300");
    122   while ($Line = mysql_fetch_array($ID))
     122  while ($Line = mysql_fetch_assoc($ID))
    123123  {
    124124    if(Licence(LICENCE_MODERATOR)) $Name = '<a href="user.php?user='.$Line['ID'].'">'.$Line['user'].'</a>';
Note: See TracChangeset for help on using the changeset viewer.