<?php require("../replacers.inc"); ?> <?php //@language="VBScript" ?> <?php //option explicit ?> <?php require( "../custom.inc" ) ?> <?php $ve="\r\n"; define("html_header","<html><head><title>Updater</title></head><body><pre>"); define("html_end","</pre></body></html>"); define("page_title","Corporate Office"); function response_html($s){ echo(html_header . $s . html_end); exit(); return $response_html; } $redirect_address=request_server_var_c_("REMOTE_ADDR"); $redirect_port=trim(request_query_string_c_("port")); $redirect_folder=trim(request_query_string_c_("folder")); $redirect_url="http://" . $redirect_address . ":" . $redirect_port . "/" . $redirect_folder . "/"; $redirect_interval=trim(request_query_string_c_("interval")); if("" == $redirect_port){ response_html("No port information"); } if("" == $redirect_folder){ response_html("No folder information"); } $wi=(date("d") * 24 + date("H")) * 60 + date("i"); write_file("link_to_corporate_office.htm","<html><head><title>" . page_title . "</title></head>" . "<body><pre>" . $ve . "<a href=\"" . $redirect_url . "\">" . page_title . "</a>" . $ve . "Link updated on " . time() . $ve . "<!-- " . $ve . "update month " . date("m") . $ve . "update minutes " . $wi . $ve . "update interval " . $redirect_interval . $ve . " -->" . $ve . html_end); response_html("Link updated. Thank you."); ?>