Changeset 288 for quests


Ignore:
Timestamp:
Jan 30, 2008, 9:40:23 PM (17 years ago)
Author:
maron
Message:

oprava emailu

Location:
quests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quests/statistic.php

    r287 r288  
    5757  $ID = $Database->SQLCommand("
    5858  SELECT ID,user, LastLogin, GM, (
    59      (SELECT count(*) FROM `quests` WHERE User = user.ID AND User <> 0 AND Complete = 1) +
    60      (SELECT count(*) FROM `npc_text` WHERE User = user.ID AND User <> 0 AND Complete = 1) +
    61      (SELECT count(*) FROM `page_text` WHERE User = user.ID AND User <> 0 AND Complete = 1)
     59     (SELECT count(*) FROM `quests` WHERE User = user.ID AND Complete = 1) +
     60     (SELECT count(*) FROM `npc_text` WHERE User = user.ID AND Complete = 1) +
     61     (SELECT count(*) FROM `page_text` WHERE User = user.ID AND Complete = 1)
    6262   ) as NumberTranslate, (
    6363       IFNULL((SELECT sum(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1),0)
  • quests/user.php

    r287 r288  
    88
    99
    10   if (array_key_exists('text', $_POST) and Licence(1)) {
     10  if (array_key_exists('text', $_POST) and Licence(2)) {
    1111    $text = $_POST['text'];
    1212    $email = $_POST['email'];
     
    1616    echo 'text: <b>'.$text.'</b><br />';
    1717   
    18     if(@mail($email, $subject, $text)){
     18    if(@mail($email, $subject, $text, "From: maron2@centrum.cz\nReply-To: maron2@centrum.cz\nX-Mailer: PHP/")){
    1919    echo 'Zpráva byla odeslána.<br /><br />';
    2020      }
Note: See TracChangeset for help on using the changeset viewer.