Changeset 235


Ignore:
Timestamp:
Jan 15, 2008, 9:45:59 PM (17 years ago)
Author:
maron
Message:

Větší počet menší úprav

Location:
quests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • quests/ListQuests.php

    r234 r235  
    4141            <td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td>
    4242            <td>'.$Line['entry'].'</td>
    43             <td>'.$Line['Title'].'</td>';
     43            <td>'.htmlspecialchars($Line['Title']).'</td>';
    4444            if ($address == 'selection') echo '<td>'.$Line['CountQuest'].'</td>'; else
    4545            if ($address <> 'limitx') echo '<td>'.@$Line['User'].'</td>
  • quests/action.php

    r231 r235  
    2222        $user = $_POST['user'];
    2323        $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE user = '$user'"));
    24         if (!$Line) {} else die('Toto jméno je registrováno nemù¾ete psát za nìj. Pokud jste '.$user.' pak se pøihlaste.');
     24        if ((!$Line) or ($user == '')) {} else die('Toto jméno je registrováno nemù¾ete psát za nìj. Pokud jste '.$user.' pak se pøihlaste.');
    2525      }
    2626      $text = $_POST['text'];
  • quests/export.php

    r231 r235  
    6767    if ($Where <> "")  $sql .= " AND ($Where)";
    6868
    69     $ID = $Database->SQLCommand($sql);
     69    $ID = $Database->SQLCommand($sql." ORDER BY vote");
    7070    while ($Line = mysql_fetch_array($ID)) {
    7171      $entry = $Line['entry'];
  • quests/form.php

    r232 r235  
    5858    <table border="1">
    5959      <tr>
    60         <th>Èíslo Q.:<?php echo $LineAJ['entry'];?></th>
     60        <th>Èíslo Q.: <?php echo $LineAJ['entry'];?></th>
    6161        <th>Nepøelo¾ené</th>
    6262        <th>Pøelo¾ené</th>
     
    8181<?php  foreach($Texts as $Index => $TextItem)
    8282          {         
    83           if ($LineAJ[$TextItem[0]] <> '' and $Line[$TextItem[0]] <> ''
     83          if (($LineAJ[$TextItem[0]] <> '') and ($Line[$TextItem[0]] <> '')
    8484            echo '
    8585      <tr>
  • quests/includes/global.php

    r234 r235  
    138138  ';
    139139}
     140  echo 'Online u¾ivatelé:<br />';
     141  $ID = $Database->SQLCommand("SELECT user FROM `user` WHERE LastLogin >= Now()-300");
     142      while ($Line = mysql_fetch_array($ID))
     143        echo '<b>'.$Line['user'].'</b><br />';
     144
    140145 
    141146  echo '<p style="  overflow: auto;  width: 100%; height: 200px;">
     
    148153  </p>
    149154  ';
    150 
    151   echo 'Online u¾ivatelé:<br />';
    152   $ID = $Database->SQLCommand("SELECT user FROM `user` WHERE LastLogin >= Now()-300");
    153       while ($Line = mysql_fetch_array($ID))
    154         echo '<b>'.$Line['user'].'</b><br />';
    155155
    156156
  • quests/statistic.php

    r234 r235  
    1818  } else {
    1919    $order = 'NumberTranslate';
    20     $desc = 'DESC';
     20    $desc = '';
    2121  }
    2222
Note: See TracChangeset for help on using the changeset viewer.