<?php
// PUT THIS IN CORE/TEMPLATE/EMAIL_REGISTRAITONACCEPTED.PHP else it wont work.
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Welcome Email</title>
        <meta name="viewport" content="width=device-width" />
        <style type="text/css">
            @media only screen and (max-width: 550px), screen and (max-device-width: 550px) {
                body[yahoo] .buttonwrapper { background-color: transparent !important; }
                body[yahoo] .button { padding: 0 !important; }
                body[yahoo] .button a { background-color: #349ee5; padding: 15px 25px !important; }
            }

            @media only screen and (min-device-width: 601px) {
                .content { width: 600px !important; }
                .col387 { width: 387px !important; }
            }
        </style>
    </head>
    <body bgcolor="#252d2f" style="margin: 0; padding: 0;" yahoo="fix">
        <!--[if (gte mso 9)|(IE)]>
        <table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
          <tr>
            <td>
        <![endif]-->
        <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 600px;" class="content">
            <tr>
                <td align="center" bgcolor="#cccccc" style="padding: 25px 20px 20px 20px; color: #ffffff; font-family: Arial, sans-serif; font-size: 26px;">
                    <img src="<?php echo SITE_URL; ?>/iCrew/ics_logo.png" alt="<?php echo SITE_NAME; ?>" width="auto;" height="120" style="display:block;" />
                </td>
            </tr>
            <tr>
                <td align="left" bgcolor="#ffffff" style="padding: 40px 20px 0 20px; color: #555555; font-family: Arial, sans-serif; font-size: 18px; line-height: 30px;">
                    <b>Dear <?php echo $pilot->firstname; ?>,</b>
                </td>
            </tr>
            <tr>
                <td align="left" bgcolor="#ffffff" style="padding: 0 20px 40px 20px; color: #777777; font-family: Arial, sans-serif; font-size: 14px;  border-bottom: 1px solid #f6f6f6;">


                     Thank you for choosing us as your virtual airline partner. <br>
                                We're thrilled to have you onboard as the newest team member. We've built a world-class virtual airline for you to enjoy and acquire knowledge. Our goal is to support, promote, and enjoy the virtual skies.<br>
                                <br>

                                Our fleet and our destinations are designed to keep pilots constantly looking for the next adventure.
                                <br><br>
                                Our staff is here to assist you if you have any questions, feel free to contact us anytime.
                                <br><br>
                                Below you can find your login details

					<br><br>
					Before you get started, let’s go over some of the great new features we have to offer you!  <br>
					- Dedicated support to make your journey as smooth as possible <br>
					- smartCARS ACARS with automatic flight analysis after every flight <br>
					- Built in simBrief dispatching <br>
					- Accurate fuel planning and flight dispatching <br>
					- Up-to-date schedules for the most realistic experience <br>
					- Simulated aircraft maintenance checks  <br>
					- More online Events with VATSIM <br>
					- Hall of Fame awards....and so much more! <br>
					<br>
					These are just a very small portion of the amazing new features we have to offer you!
					<br>
					Below you will find your iCrew log-in information. Once you’ve logged into the crew center, we recommend taking a look at the Operations Manual which will help you get started with your first flight, and then head over to the downloads page where you can download our smartCARS ACARS program, which is used to track your flights.
					<br>
                    <hr>
                    <b>Login ID : </b> <?php echo $pilot->code.''.$pilot->pilotid ?><br>

                    <?php
                    	$firstname = $pilot->firstname;
						$lastname  = $pilot->lastname;
						$site_name = SITE_URL;

						if(FORCE_SSL == 1) {
						$site_name = str_replace("https://icrew.", "", $site_name);
						} else {
						$site_name = str_replace("http://icrew.", "", $site_name);
						}
						$firstname = str_replace(' ','', $firstname);
						$lastname = str_replace(' ','', $lastname);
						$imailID = strtolower($firstname).'.'.strtolower($lastname).'@'.$site_name;
					?>
                    <b>iMail ID : </b> <?php echo $lastname; ?><br>
                    <?php
                    	if(FLARUM_ENABLED == 1) {
                    		?>
                    			<b>Forum Login ID: </b> <?php echo $pilot->code.''.$pilot->pilotid ?> | <?php echo $pilot->firstname.' '.$pilot->lastname; ?> (or) <?php echo $pilot->email; ?><br>
                    		<?php
                    	}
                    ?>

                    <b>Password : </b> <i>Chosen during registration.</i><br>
                    <br>

					If you have any questions or need help with anything, check out the FAQ section. If you still have some questions, feel free to contact a member of the staff.
					<br>
					Again, thank you for choosing <?php echo SITE_NAME; ?>, Captain. New horizons await you.
					<br>
					- Team <?php echo SITE_NAME;?>
                </td>
            </tr>

            <tr>
                <td align="center" bgcolor="#f9f9f9" style="padding: 30px 20px 30px 20px; font-family: Arial, sans-serif;">
                    <table bgcolor="#349ee5" border="0" cellspacing="0" cellpadding="0" class="buttonwrapper">
                        <tr>
                            <td align="center" height="55" style=" padding: 0 35px 0 35px; font-family: Arial, sans-serif; font-size: 22px;" class="button">
                                <a href="<?php echo SITE_URL; ?>/index.php/login" style="color: #ffffff; text-align: center; text-decoration: none;">Login</a>
                            </td>
                        </tr>

                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" bgcolor="#ffffff" style="padding: 0 20px 40px 20px; color: #777777; font-family: Arial, sans-serif; font-size: 12px;  border-bottom: 1px solid #f6f6f6;">
                    <br>
                    If the button is not working, click  <a href="<?php echo SITE_URL; ?>/index.php/login">here</a>.
                    <i>We invite you to take part in active discussions on our Discord Server, <a href="<?php echo DISCORD_INVITE; ?>" target="_blank"><?php echo DISCORD_INVITE; ?></a>
                </td>
            </tr>
              <tr>
                <td align="center" bgcolor="#e9e9e9" style="padding: 12px 10px 12px 10px; color: #888888; font-family: Arial, sans-serif; font-size: 12px; line-height: 18px;">
                    <b><?php echo SITE_NAME; ?> </b> <br>Powered by iCrew <?php echo ICS_VERSION; ?> <i><?php echo base64_decode(ICS_LICENCE_TYPE); ?></i> &bull; Crafted by icrewsystems

                </td>
            </tr>
            <tr>
                <td style="padding: 15px 10px 15px 10px;">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td align="center" width="100%" style="color: #999999; font-family: Arial, sans-serif; font-size: 12px;">
                                <!--www.flyingamericanvirtual.com-->
                                <?php
                                	$url = SITE_URL;
                                	if(FORCE_SSL == 1) {
                                		$frontend = str_replace('https://icrew', 'www', $url);
                                	} else {
                                		$frontend = str_replace('http://icrew', 'www', $url);
                                	}
                                	echo $frontend;
                            	?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <!--[if (gte mso 9)|(IE)]>
                </td>
            </tr>
        </table>
        <![endif]-->
    </body>
</html>
