$body = str_replace("<a href=", "<a style=\"color: #fa9e0e; text-decoration: none\" href=", $body);
                //eve style formatted mail body
                $mail_body = '
            <div style="color: #CCCCCC; background-color: #222222; padding: 15px">
                <div style="position: relative; text-align: left; margin: 0 auto; font-size: 12px; width: 620px; padding: 20px; background-color: #333333;">
                    <div style="position: absolute; right: 0px; top: 0px;">
                        <p style="margin: 0px; color: #898989;"> ' . $mail["sentDate"] . '</p>
                    </div>
                    <h2 style="font-size: 18px; font-weight: normal; width: 620px;">' . $mail["title"] . '</h2>
                    <p style="margin: 0px; color: #898989;">
                        <span style="font-weight: bold;">From:</span> <a style="color: #fa9e0e; text-decoration: none" href="https://gate.eveonline.com/Profile/' . str_replace(' ', '%20', getUserNameByID($mail["senderID"])) . '">' . getUserNameByID($mail["senderID"]) . '</a><br>
                        <span style="font-weight: bold;">To:</span> ' . $to_list . '
                    </p>
                  <br>
                    ' . $body . '
                    <br />
                    <br />
                    <br />
                    <hr />
                    <a style="font-weight:bold; color: #fa9e0e; text-decoration: none" href="https://gate.eveonline.com/Mail/ReadMessage/' . $mail["messageID"] . '/">If You want to reply, go to eve gate...</a>
                </div>
            </div>
            ';
                //if there was no filter conditions met - send it
                if (!$no_send) {
                    SendMail("\"{$characterNAME}\"<{$forwardmail}>", '"' . getUserNameByID($mail["senderID"]) . '"' . "<{$from_mail}>", $mail_title, $mail_body);
                }
            }
        }
    }
}
Exemplo n.º 2
0
            </p>

            <form method="post" action="">
                <label>Key ID<input type="text" name="keyid" class="edit"/></label>
                <label>Verification Code<input type="text" name="vcode" class="edit"/></label>
                <label><input type="submit" class="btn" value="Submit"/></label>
                <input type="hidden" name="mode" value="login"/>
            </form>

        <?php 
} else {
    $url = 'https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=' . $_SESSION['evegate'][0]['key_id'] . '&vCode=' . $_SESSION['evegate'][0]['v_code'];
    $xml_object = simplexml_load_string(file_get_contents($url));
    $xml_array = object2array($xml_object);
    $characterID = $xml_array["result"]["key"]["rowset"]["row"]["@attributes"]["characterID"];
    $characterNAME = getUserNameByID($characterID);
    ?>

            <h2>Welcome back <?php 
    echo $_SESSION['evegate'][0]['username'];
    ?>
</h2>

            <form method="post" action="">
                <label>Key ID: <?php 
    echo $_SESSION['evegate'][0]['key_id'];
    ?>
</label>
                <label>Verification Code: <?php 
    echo substr($_SESSION['evegate'][0]['v_code'], 0, 16);
    ?>