<?php include("top.php"); ?>

<?php
	echo "This page temporily disabled, please check back soon if you need help.";
	return;

	if (@$_REQUEST['submit'] != null)
	{

		$to      = 'abrayall@xenolutions.com;erenouf@xenolutions.com';
		$subject = "WarBird v" . @$_REQUEST['version'] . " Support Request from " . @$_REQUEST['name'];
		$message = @$_REQUEST['description'];
		$headers = "From: " . @$_REQUEST['email'] . "\r\nReply-To: " . @$_REQUEST['email'] . "\r\n";

		mail($to, $subject, $message, $headers);
	}
	else
	{
		$supportedVersions = Array();
		$directoryName = "./downloads/WarBird";

		$directory = dir($directoryName);
		while (false !== ($file = $directory->read()))
		{
			if ($file != "." && $file != "..")
			{
				$supportedVersions[] = str_replace("_", ".", str_replace("WarBird_", "", str_replace(".exe", "", $file)));
			}
		}
	}

?>

									<!-- main content -->
									<table border="0" cellspacing="0" cellpadding="5" width="100%">
										<tr>
											<td class="pageTitleText" nowrap="true" valign="top">
												Support
											</td>
										</tr>
										<tr>
											<td class="mainContent" colspan="3">

												<table border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td>

															<?php

																if (@$_REQUEST['submit'] == null)
																{ ?>

																	<table border="0" cellspacing="0" cellpadding="5" width="100%">
																		<tr>
																			<td width="100%">
																				<h2 class="subHeadingText">Overview</h2>
																				<div class="indentedText">
																					When you <a href="purchase.php">purchase</a> a <a href="products/WarBird">WarBird</a> license you receive the following support:
																					<ul>
																						 <li>One year of e-mail support with problem confirmation and guidance within one business day</li>
																						 <li>Free minor upgrades until product version is discontinued, minimum two years from the date of sale</li>
																						 <li>Six months of free major upgrades to next big releases of WarBird</li>
																					</ul>
																				</div>

																				<br>

																				<h2 class="subHeadingText">Support Request</h2>
																				<div class="indentedText">
																					If you are expirencing problem with WarBird then please submit a support request:<br><br>

																					<form method="post">
																						<div class="indentedText">
																							<table border="0" cellspacing="0" cellpadding="5">
																								<tr>
																									<td><strong>Customer Name:</strong></td>
																									<td><input type="text" name="name" /></td>
																								</tr>
																								<tr>
																									<td><strong>Customer Email:</strong></td>
																									<td><input type="text" name="email" /></td>
																								</tr>
																								<tr>
																									<td><strong>WarBird Version:</strong></td>
																									<td>
																										<select name="version">
																											<?php
																												foreach ($supportedVersions as $version)
																												{
																													print "<option value='$version'>$version</option>" ;
																												}
																											?>
																										</select>
																									</td>
																								</tr>
																								<tr>
																									<td valign="top"><strong>Description:</strong></td>
																									<td>
																										<textarea name="description" cols="55" rows="10"></textarea>
																									</td>
																								</tr>
																								<tr>
																									<td align="center" colspan="2"><input type="submit" name="submit" value="Send Request"/></td>
																								</tr>
																							</table>
																						</div>
																					</form>

																				</div>
																			</td>
																		<tr>
																	</table>

																<?php } else { ?>

																	<table border="0" cellspacing="0" cellpadding="5" width="100%">
																		<tr>
																			<td width="100%">
																				<strong>Thank you for your support request.</strong><br>
																				The Xenolutions team promises that they will try to find an answer to your problem as
																				fast as possible.

																				<br><br><br>

																				The following information has been submitted to the Xenolution support system:<br>
																				<div class="indentedText">
																					<table border="0" cellspacing="0" cellpadding="5">
																						<tr>
																							<td><strong>Customer Name:</strong></td>
																							<td><?php echo @$_REQUEST['name']; ?></td>
																						</tr>
																						<tr>
																							<td><strong>Customer Email:</strong></td>
																							<td><?php echo @$_REQUEST['email']; ?></td>
																						</tr>
																						<tr>
																							<td><strong>WarBird Version:</strong></td>
																							<td><?php echo @$_REQUEST['version']; ?></td>
																						</tr>
																						<tr>
																							<td><strong>Description:</strong></td>
																							<td>
																								<div class="indentedText">
																									<?php echo @$_REQUEST['deccription']; ?>
																								</div>
																							</td>
																						</tr>
																					</table>
																					<br><br>
																				</div>
																			</td>
																		</tr>
																	</table>

																<?php } ?>

														</td>
													</tr>
												</table>

											</td>
										</tr>
									</table>


<?php include("bottom.php"); ?>
