Editing The Gateway Page

Required HTML

There is certain HTML which must appear on the gateway page. The current version of the software uses a form to process all of the incoming hits. This means you cannot use a standard HTML link for your surfers to click on. The required portion of the gateway is listed below. <form name="click" action="#%URL%#" method="POST"> <input type="hidden" name="ses" value="#%SESSION%#"> <input type="hidden" name="id" value="#%USERNAME%#"> <input type="hidden" name="time" value="#%TIME%#"> <script language="JavaScript"> <!-- document.write('<a href="javascript:document.click.submit()">Enter This Site</a>'); //--> </script> <noscript> <input type="submit" value="Click Here To Enter"> </noscript> </form> You can change the "Click Here To Enter" and "Enter This Site" text, but all of the other items must remain unchanged. The above code will produce a text link for browsers which support JavaScript and a submit button for those which do not. You need to leave both of these options so that all surfers can click into your site.

Remaining HTML & in.php

The rest of the HTML is completely up to you. We do recommend that you use as little HTML as possible in order to maintain the performance of the software. The more HTML it has to process, the slower it will be.

Once you have generated a custom version of the gateway through the administrative interface, you are not finished. A copy of in.php will be placed in the data directory - this will be the new version of in.php with your gateway HTML. Until you replace your old copy of in.php with this new one, your gateway will not be updated.

The easiest way to replace your old copy of in.php with the new one is with the following steps.
  1. FTP into your server and change into the data directory of the AutoRank PHP installation. Locate the in.php file and download it to your computer in ASCII mode.

  2. In your FTP client change into the main AutoRank PHP installation directory where the old in.php file is located. Do not delete this file! Simply upload the new in.php file to that directory in ASCII mode. If you are asked if you want to replace the current in.php file, select yes. Double check to make sure the in.php file has 666 permissions.

  3. Finally, you will want to visit in.php in your browser to check the new gateway.