- Impact
- 31
Here is just a quick "Site for Sale" script that I whipped up when selling my domains lol.. Nothing special, but it is easy and for a quick "For sale" page.. Just edit the "config.php" and your in business
-RageD
Here is the "index.php"
And here is the config.php:
-RageD
Here is the "index.php"
PHP:
<?php
/* Simple For Sale by RageD
© Copyright 2006 RageD */
require("config.php");
?>
<HTML>
<HEAD>
<TITLE><?php echo($title); ?></TITLE>
</HEAD>
<BODY BGCOLOR="<?php echo($bgcolor); ?>"><BODY TEXT="<?php echo($bodytext); ?>">
<?php
if($sold == "no"){
?>
Hello,<br><br>
<?php echo($domain); ?> is for sale! You can check out more information about it <a href="<?php echo($infourl); ?>">here</a>!<br><br>
<?php
}
if($sold == "yes"){
?>
<center><b><h1>This domain (<i><?php echo($domain); ?></i>) has been sold!</h1></b><br><br>
<?php
}
?>
<?php
if($sig == "on"){
?>
-Thanks<br><br>-<?php echo($seller); ?>
<?php
}
if($visitorinfo == "on"){
?>
<br><br>
Your IP: <b><?php echo($_SERVER["REMOTE_ADDR"]); ?></b><br>
You're coming from: <a href="<?php echo($_SERVER["HTTP_REFERER"]); ?>"><?php echo($_SERVER["HTTP_REFERER"]); ?></a><br><br>
<i>This information is not logged or kept in anyway. It is private to you!</i>
<?php
}
?>
<?php
if($copyright == "on"){
?>
<HR><center>© Copyright <?php echo($cyear); ?> <?php echo($company); ?>. All Rights Reserved.
<?php
}
?>
</BODY>
</HTML>
And here is the config.php:
PHP:
<?php
/* Simple For Sale by RageD
© Copyright 2006 RageD */
// Main page info
$title = "YourDomain.com is for sale";
$bgcolor = "white";
$bodytext = "black";
$domain = "YourDomain.com";
$infourl = "http://LinkToMoreInformation.com";
// Signature Information
$sig = "off"; // Set this to on if you want "-Thanks<br><br>-Your Name
$seller = "YourName";
// Give the visitor their information for them to see
$visitorinfo = "off"; // Set this to on if you want the users to see their IP and some other info
// Turn copyright on and put in your info!
$copyright = "on"; // Set to off if you don't want a copyright on your page!
$cyear = "2006";
$company = "YourDomain.com/Your Company";
// Domain Info
$sold = "no"; // When your domain has been sold, but transfer has not yet taken place set this to yes
?>
Last edited: