<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Installation Guide</title>
<meta name="robots" content="noindex">
<style type="text/css">
<!--
A:link {text-decoration: none; color: #11116E;}
A:visited {text-decoration: none; color: #11116E;}
A:hover {font-style: normal; color: #000000; text-decoration: underline;}
SELECT {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
INPUT {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
TEXTAREA {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
hr {color: #11116E; background-color: #11116E; height: 1px;}
body {
background-color: #FFFFFF;
color: #000000;
font-family: verdana;
font-size: 10pt;
}
TD{
font-family: verdana;
font-size: 10pt;
}
-->
</style>
</head>
<body topmargin="50" leftmargin="50">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width="99%"><font size="4"><b>
CJ Domain Whois V1.0 Installation Guide</b></font></td>
<td align="right" width="1%">
<img border="0" src="cjt.gif" width="266" height="78"></td>
</tr>
</table>
<div align="left">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width="15%" height="19"><b>Script Name</b></td>
<td width="85%" height="19">CJ Domain Whois V1.0</td>
</tr>
<tr>
<td width="100%" height="21" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="21" valign="top"><b>Installation</b></td>
<td width="85%" height="21"><b>1) Variables to edit in config.php</b>
<p>
<font color="#808080">Change the variable below to the URL of your script folder without a trailing slash</font><br>
$whoisUrl = "http://www.cj-design.com/demos/cjdomainwhoisv1";<br>
<br>
<font color="#808080">Enter the URL that you wish to send users to when they click "Register"</font><br>
$registerUrl = "http://www.cj-hosting.com/index.html?aid=102&page=order&domain=%domain%&tld=%tld%";<br>
<br>
<font color="#808080">When true, the register button adjacent to the domain results will be shown, false hides it.</font><br>
$showRegisterButton = true;<br>
<br>
<font color="#808080">When true, the price column is shown in the results table.</font><br>
$showPriceColumn = true;<br>
<br>
<font color="#808080">Enter the width you would like to the Whois Details popUp window</font><br>
$whoisWindowWidth = 600;<br>
<br>
<font color="#808080">Enter the height you would like to the Whois Details popUp window</font><br>
$whoisWindowHeight = 400;<br>
<br>
<font color="#808080">Progress image to show - see "images" folder for available animations (or add your own!)</font><br>
$progressImage = "progressbar1.gif";<br>
<br>
<font color="#808080">Hide progress image by setting below variable to false</font><br>
$showProgressImage = true;<br>
<br>
<font color="#808080">To show progress percent (instead of progress image), set below variable to true</font><br>
$showProgressPercent = true;<br>
<br>
<font color="#808080">The maximum number of searches to allow per session - this is to combat misuse</font><br>
$maximumSearches = 10;<br>
<br>
<font color="#808080">Set language here, see "languages" folder for available languages</font><br>
$language = "english";<br>
<br>
<font color="#808080">Set stylesheet here, see "css" folder for available stylesheets - or create your own using an existing stylesheet as a guide!</font><br>
$stylesheet = "styles1.css";</p>
<p><b><br>
2) Upload<br>
<br>
</b>Upload all the files in the zip you were given into a directory
preferably called "<font color="#0000FF">whois</font>" so
your link to whois.php would be <a href="http://www.yourdomain.com/whois/whois.php">www.yourdomain.com/whois/whois.php</a></p>
<br>
<p><b>3) Including the Script</b><br>
<br>
To include the script within a PHP web page use the following
code:<br><br>
This goes at the top of your page:<br>
<b><br>
</b><textarea rows="5" name="S2" cols="79">
<?
session_start();
include("initwhois.php");
include("config.php");
?>
</textarea>
<br><br>
Then enter the form code found in <b>form_example1.php</b>, <b>form_example2.php</b> or <b>form_example3.php</b>, e.g:
<br><br>
<textarea rows="8" name="S2" cols="79">
<form method="post" onsubmit="return validateDomain(this.domain)">
www.<input type="text" name="domain" value="<? print $_POST['domain']; ?>">.
<?
renderTLDList();
?>
<input type="submit" value="Submit" />
</form>
</textarea>
<br><br>
Finally, enter the following code where you want the results table to be displayed:
<br><br>
<textarea rows="3" name="S2" cols="79">
<?
include("whois.php");
?>
</textarea>
<p>To see an example implementation, open up "example_index.php". </p>
<br>
<b>4) Adding domains to the list</b>
<p>To add a domain for the CJ Domain Whois to check, you need to add it to the list in config.php (after the editable variables).</p>
<p>The list contains elements like this:</p>
<textarea rows="6" name="S2" cols="79">
"com" => array(
"server"=>"whois.crsnic.net",
"nomatch"=>"no match",
"price"=>12.99,
),
</textarea>
<p>To add a domain to the list, simply follow the existing convention. The <strong>server</strong> is the Whois server that can be looked up to retrieve domain details. The <strong>nomatch</strong> attribute must be supplied so that the script knows if a domain is available to register - in most cases "no match" or "not found" is returned by the Whois server to show a domain is available. If you have any problems, please consult the forum (<a href="http://www.cj-design.com/forum">www.cj-design.com/forum</a>) instead of giving yourself a headache.</p>
<p>To remove a domain from the list you can either delete the array item or comment it out (this is demonstrated in the config.php file for the domain "xxx").</p>
</td>
</tr>
<tr>
<td width="100%" height="21" valign="top" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="4" valign="top"><b>Finished</b></td>
<td width="85%" height="4"><b>That's all!<br>
</b><br>
If you have any problems with installing the script, please consult the forum:
<a href="http://www.cj-design.com/forum">www.cj-design.com/forum</a>
letting us know your problem.<br>
<br>
If you spot any bugs, please us know also.</td>
</tr>
<tr>
<td width="100%" height="4" valign="top" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="3" valign="top"><b>Other Scripts</b></td>
<td width="85%" height="3">We have a load of other scripts - feel free to
check them out from time to time:
<a href="http://www.cj-design.com/downloads">www.cj-design.com/downloads</a> </td>
</tr>
<tr>
<td width="100%" height="10" valign="top" colspan="2">
<hr>
</td>
</tr>
</table>
</div>
<p align="center">© <a href="http://www.cj-design.com">CJ Website Design</a>
2005</p>
</body>
</html>