Changeset 215
- Timestamp:
- Jan 12, 2008, 3:37:31 PM (17 years ago)
- Location:
- quests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/ListQuests.php
r211 r215 61 61 } 62 62 63 if(array_key_exists('selection', $_GET)) { 64 63 if(array_key_exists('selection', $_GET)) { 64 65 echo '<br /><b>Prioritnì by jste mìli pøekládat tyto questy:</b><br />'; 66 67 $ID = $Database->SQLCommand("SELECT * FROM `quests_status` ORDER BY CountQuest DESC"); 68 echo '<table border="1" cellpadding="2" cellspacing="0"> 69 <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet splnìní na serveru</th></tr>'; 70 $i = 0; 71 while ($Line = mysql_fetch_array($ID)) { 72 if ($i < '6') { 73 $LineTranslate = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE Language <> 0 AND entry = '".$Line['QuestEntry']."'")); 74 if (!$LineTranslate) { 75 $LineAJQuest = mysql_fetch_array($Database->SQLCommand("SELECT * FROM quests WHERE Language = 0 AND entry = '".$Line['QuestEntry']."'")); 76 echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> 77 <td>'.$LineAJQuest['entry'].'</td> 78 <td>'.$LineAJQuest['Title'].'</td> 79 <td>'.$Line['CountQuest'].'</td></tr>'; 80 $i = $i +1; 81 } 82 } 83 } 84 85 echo '</table><br />'; 86 87 echo '<b>Ostatní:</b><br /><br />'; 88 65 89 for ($i=0; $i<30; ++$i) { 66 90 $limity = 200; … … 70 94 } 71 95 echo '<a href="ListQuests.php?limitx='.$limitx.'&limity=6000">Zbytek</a><br />'; 96 97 72 98 // echo '<a href="ListQuests.php?limitx=3500&limity=4000">3500-4000</a><br />'; 73 99 } -
quests/includes/global.php
r209 r215 8 8 $Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password']); 9 9 $Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']); 10 $Database->SelectDatabase( 'quests');10 $Database->SelectDatabase($Config['Database']['Database']); 11 11 12 12 //pøihlá¹ení … … 95 95 <br /> 96 96 <a href="ListQuests.php?selection">Nepøelo¾ené questy</a><br /> 97 <a href="ListQuests.php?Translate">Pøelo¾ené questy</a><br /> 98 <a href="ListQuests.php?mydevelop">Rozepsané questy</a><br /> 99 <a href="ListQuests.php?my">Moje questy</a><br /> 100 <br /> 97 <a href="ListQuests.php?Translate">Pøelo¾ené questy</a><br />'; 98 99 if (Licence(0)) { 100 echo '<a href="ListQuests.php?mydevelop">Rozepsané questy</a><br /> 101 <a href="ListQuests.php?my">Moje questy</a><br />'; 102 } 103 echo '<br /> 101 104 <a href="http://wow.zdechov.net/forum/viewforum.php?f=22">Forum projektu</a><br /> 102 105 <a href="http://wow.zdechov.net/">Web serveru</a><br /><br /> -
quests/save.php
r208 r215 51 51 OfferRewardText = '$OfferRewardText', RequestItemsText = '$RequestItemsText', 52 52 EndText = '$EndText', ObjectiveText1 = '$ObjectiveText1', ObjectiveText2 = '$ObjectiveText2', 53 ObjectiveText3 = '$ObjectiveText3', ObjectiveText4 = '$ObjectiveText4', Language = '$Language' WHERE user='$UserID' AND entry = '$entry'"; 53 ObjectiveText3 = '$ObjectiveText3', ObjectiveText4 = '$ObjectiveText4', Language = '$Language' 54 WHERE user='$UserID' AND entry = '$entry' AND Language <> 0"; 54 55 $Database->SQLCommand($sql); 55 56 // echo $sql.'<br />';
Note:
See TracChangeset
for help on using the changeset viewer.