Changeset 235
- Timestamp:
- Jan 15, 2008, 9:45:59 PM (17 years ago)
- Location:
- quests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/ListQuests.php
r234 r235 41 41 <td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> 42 42 <td>'.$Line['entry'].'</td> 43 <td>'. $Line['Title'].'</td>';43 <td>'.htmlspecialchars($Line['Title']).'</td>'; 44 44 if ($address == 'selection') echo '<td>'.$Line['CountQuest'].'</td>'; else 45 45 if ($address <> 'limitx') echo '<td>'.@$Line['User'].'</td> -
quests/action.php
r231 r235 22 22 $user = $_POST['user']; 23 23 $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.'); 25 25 } 26 26 $text = $_POST['text']; -
quests/export.php
r231 r235 67 67 if ($Where <> "") $sql .= " AND ($Where)"; 68 68 69 $ID = $Database->SQLCommand($sql );69 $ID = $Database->SQLCommand($sql." ORDER BY vote"); 70 70 while ($Line = mysql_fetch_array($ID)) { 71 71 $entry = $Line['entry']; -
quests/form.php
r232 r235 58 58 <table border="1"> 59 59 <tr> 60 <th>Èíslo Q.: <?php echo $LineAJ['entry'];?></th>60 <th>Èíslo Q.: <?php echo $LineAJ['entry'];?></th> 61 61 <th>Nepøelo¾ené</th> 62 62 <th>Pøelo¾ené</th> … … 81 81 <?php foreach($Texts as $Index => $TextItem) 82 82 { 83 if ( $LineAJ[$TextItem[0]] <> '' and $Line[$TextItem[0]] <> '')83 if (($LineAJ[$TextItem[0]] <> '') and ($Line[$TextItem[0]] <> '')) 84 84 echo ' 85 85 <tr> -
quests/includes/global.php
r234 r235 138 138 '; 139 139 } 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 140 145 141 146 echo '<p style=" overflow: auto; width: 100%; height: 200px;"> … … 148 153 </p> 149 154 '; 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 />';155 155 156 156 -
quests/statistic.php
r234 r235 18 18 } else { 19 19 $order = 'NumberTranslate'; 20 $desc = ' DESC';20 $desc = ''; 21 21 } 22 22
Note:
See TracChangeset
for help on using the changeset viewer.