<?php
if ( substr($_SERVER['HTTP_REFERER'],0,58) == 'http://www.xsdv.com/cm/upload/remote_upload_key_start_php.' || 1==1) {
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><body bgcolor="#ffffff" leftmargin=0 topmargin=0>
<head>
<title>Upload File</title>
<style>
A:hover	{ color: #444488; }
A:link { color: #000080; }
A:visited {	color: #000080; }
A:active { color: #444488; }
BODY, TD {
font-family : Arial, Verdana;
font-size : 8pt;
color: #000000;
}
</style>
</head>
<body bgcolor="#EEEEEE" leftmargin=0 topmargin=0>
<?
$ul_dir = $_GET['dir'];
$ul_host = $_GET['host'];
$ul_field = $_GET['field'];
$ul_db = $_GET['db'];
?>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
	<td>
	<FORM METHOD="POST" ACTION="remote_upload_key_receive.php?dir=<? echo URLencode($ul_dir) ?>&host=<? echo URLencode($ul_host) ?>&field=<? echo URLencode($ul_field) ?>&db=<? echo URLencode($ul_db) ?>" ENCTYPE="multipart/form-data">
	<input name="uploaded" type="file" size="10"> <input type="submit" value="Upload" />
	<input name="autoadjust" type="checkbox" value="yes" checked> Auto-adjust
	</FORM>
	</td>
</tr>
</table>

</body>
</html>
<? } else { ?>
Remote Upload (file) timeout --- Login to XS CMS again.
<? } ?>
