<?
	/**
	 * Allows users to save the current file under
	 * a different file name.
	 *
	 * @author	$Author: suraj $
	 * @version	$Revision: 1.10 $, $Date: 2003/02/11 03:53:39 $
	 */
	//

	require_once("assets/includes/config.inc.php");
	
	// user posted values
		$file_contents = $HTTP_POST_VARS['file_contents'];
		$file_contents = htmlspecialchars($file_contents);
		
	// start displaying page
	$page_title = $appVars['name'] . " Save File As...";
	include("assets/includes/page-header.inc.php");
?>
<script language="javascript" type="text/javascript" src="assets/libraries/save_as.lib.js"></script>

<h1>Save File As...</h1>
<form method="post" action="save.php" onsubmit="return saveFileAs();">
<input type="hidden" name="file_contents" value="<?= $file_contents ?>">
	<table class="box" border="0" cellspacing="0" cellpadding="10">
	<tr>
		<td>Enter the path of the file that you wish to save as:<br>
		<input class="pathInput" type="text" name="path" value="<?= $cfgVars['BROWSER_ROOT_PATH'] ?>"></td>
	</tr>
	<tr>
		<td align="right">
			<input type="submit" name="saveAs" value="Save File">
			<input type="button" name="cancel" value="Cancel" onclick="window.close()">
		</td>
	</tr>
	</table>
</form>
<p><a href="#" onclick="window.close()">Close Window</a></p>
<?
	include("assets/includes/page-footer.inc.php");
?>
