Skip to content

Instantly share code, notes, and snippets.

@dotsonjb14
Created April 23, 2012 04:56
Show Gist options
  • Save dotsonjb14/2468918 to your computer and use it in GitHub Desktop.
Save dotsonjb14/2468918 to your computer and use it in GitHub Desktop.
freedns webclude standard html
<!-- begin freedns banner code -->
<div style="width:468px;margin:0 auto;">
<form onclick="window.open(this.href); return false;" action="http://freedns.afraid.org/subdomain/edit.php">
<table style="border-style=solid;border-width=1;border-color=black;width:468px;height:60px;background-color:#ccc"><tr><td align="center">
<table border="0" cellpadding="2" cellspacing="0">
<tr><td align="center" colspan="3"><div style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;"><a onclick="window.open(this.href); return false;" style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;" href="http://freedns.afraid.org/">Free DNS</a> provides easy shared DNS hosting &amp; URL forwarding</div></td></tr>
<tr>
<td align="center" valign="middle"><input type="text" size="15" name="subdomain" value="yourname" /></td>
<td align="center" valign="middle"><select name="edit_domain_id">
<option value="1">afraid.org</option>
<option value="2">strangled.net</option>
<option value="29">mooo.com</option>
<option value="785514">thehomeoftime.com</option>
<option style="color:red;font-weight:bold;" value="0">Many more available...</option>
</select></td>
<td align="center" valign="middle"><input type="submit" name="submit" value="next &gt;&gt;" /></td>
</tr>
</table>
</td></tr></table>
<div>
<input type="hidden" name="web_panel" value="1" />
<input type="hidden" name="ref" value="1023090" />
</div>
</form>
</div>
<!-- end freedns banner code -->
<?php
$ref = "1023090";
$domain_list = array();
$domain_list["1"] = "afraid.org";
$domain_list["2"] = "strangled.net";
$domain_list["29"] = "mooo.com";
$domain_list["785514"] = "thehomeoftime.com";
?>
<!-- begin freedns banner code -->
<div style="width:468px;margin:0 auto;">
<form onclick="window.open(this.href); return false;" action="http://freedns.afraid.org/subdomain/edit.php">
<table style="border-style=solid;border-width=1;border-color=black;width:468px;height:60px;background-color:#ccc"><tr><td align="center">
<table border="0" cellpadding="2" cellspacing="0">
<tr><td align="center" colspan="3"><div style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;"><a onclick="window.open(this.href); return false;" style="font-family: Verdana, Helvetica;font-size: 13px;color: black;hover: orange;" href="http://freedns.afraid.org/">Free DNS</a> provides easy shared DNS hosting &amp; URL forwarding</div></td></tr>
<tr>
<td align="center" valign="middle"><input type="text" size="15" name="subdomain" value="yourname" /></td>
<td align="center" valign="middle"><select name="edit_domain_id">
<?php if(count($domain_list)): ?>
<?php foreach ($domain_list as $key => $value): ?>
<option value="<?php echo $key ?>"><?php echo $value ?></option>
<?php endforeach; ?>
<?php endif; ?>
<option style="color:red;font-weight:bold;" value="0">Many more available...</option>
</select></td>
<td align="center" valign="middle"><input type="submit" name="submit" value="next &gt;&gt;" /></td>
</tr>
</table>
</td></tr></table>
<div>
<input type="hidden" name="web_panel" value="1" />
<input type="hidden" name="ref" value="1023090" />
</div>
</form>
</div>
<!-- end freedns banner code -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment