Changeset 215


Ignore:
Timestamp:
Jan 12, 2008, 3:37:31 PM (17 years ago)
Author:
maron
Message:

Nejdůležitější Q a ochrana AJ Q

Location:
quests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quests/ListQuests.php

    r211 r215  
    6161    }
    6262
    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
    6589          for ($i=0; $i<30; ++$i) {
    6690            $limity = 200;
     
    7094          }
    7195                echo '<a href="ListQuests.php?limitx='.$limitx.'&amp;limity=6000">Zbytek</a><br />';
     96
     97
    7298    //  echo '<a href="ListQuests.php?limitx=3500&amp;limity=4000">3500-4000</a><br />';
    7399        }
  • quests/includes/global.php

    r209 r215  
    88$Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password']);
    99$Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']);
    10 $Database->SelectDatabase('quests');   
     10$Database->SelectDatabase($Config['Database']['Database']);   
    1111
    1212//pøihlá¹ení
     
    9595      <br />
    9696      <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 />
    101104      <a href="http://wow.zdechov.net/forum/viewforum.php?f=22">Forum projektu</a><br />
    102105      <a href="http://wow.zdechov.net/">Web serveru</a><br /><br />
  • quests/save.php

    r208 r215  
    5151       OfferRewardText = '$OfferRewardText', RequestItemsText = '$RequestItemsText',
    5252       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";
    5455      $Database->SQLCommand($sql);
    5556    //  echo $sql.'<br />';     
Note: See TracChangeset for help on using the changeset viewer.