<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="icon" type="image/ico" href="intrafoundation/favicon.ico"/>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="description" content="">
<meta http-equiv="keywords" content="">
<link rel="StyleSheet" href="layout/style.css" title="Style" type="text/css">
<title>Site update - Forums  - Intrafoundation Software</title>
	<link rel="canonical" href="http://www.intrafoundation.com/forums_id-766.html" />
</head>
<body>
<table height="100%" border="0" cellspacing="0" cellpadding="0" class="container">
<tr valign="top" height="120">
	<td rowspan="3" width="20" class="left_shadow">&nbsp;</td>
	<td width="120">
<script type="text/javascript" src="flash/swfobject.js"></script>
<div align="right" id="oroborus"><img border="0" src="layout/oroborus.png" alt="oroborus: life ever lasting. nature."></div>
<script type="text/javascript">
   var soo = new SWFObject("/flash/oroboroustl.swf", "oroboruslogo", "120 ", "120", "7");
   soo.write("oroborus");
</script>
	</td>
  <td align="right" valign="top" class="header">
<div class="title" align="center">Intrafoundation Software</div>
<div class="sidebar">
<a href="index_php.html">Home</a>&nbsp;&nbsp;
<a href="products.html">Software</a>&nbsp;&nbsp;
<a href="forums.html">Forums</a>&nbsp;&nbsp;
<a href="news.html">News</a>&nbsp;&nbsp;
<a href="faq.html">FAQ</a>&nbsp;&nbsp;
<a href="galleries.html">Galleries</a>&nbsp;&nbsp;
<a href="webdesign.html">Web Design</a>&nbsp;&nbsp;
<a href="aboutus.html">About Us</a>&nbsp;&nbsp;
<a href="contactus.html">Contact Us</a>&nbsp;&nbsp;
</div>
<div class="subsidebar">
&nbsp;
</div>
<div align="right">
<form method="post" action="search.html" align="right" class="search">
&nbsp;&gt;&nbsp;&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;
<input type="text" name="search" value="" size="32">
<input type="submit" value="Search">&nbsp;
</form>
</div>
<br>
	</td>
	<td rowspan="3" width="20" class="right_shadow">&nbsp;</td>
</tr>
<tr valign="top" height="100%">
	<td valign="top" align="left" colspan="2" class="content">
<h1>Site update - Forums </h1>
<p class="firstpara">
You may post here on any subjects related to this site or the software therein.
<small>(Most everything on this site is tied into the forums so that you may leave or post comments about it.)</small>
</p>
<div align="right">
<a class="button" href="forums/listall.html">List all</a>&nbsp;&nbsp;&nbsp;
<a class="button" href="forums/insertform.html">New Post</a>&nbsp;&nbsp;&nbsp;
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
	<td>
<h2>Site update</h2>
&nbsp;&nbsp;&nbsp;<tt>From: Lewis A. Sellers</tt><br>
&nbsp;&nbsp;&nbsp;<tt>Date: <em>October&nbsp;30&nbsp;2006&nbsp;06:55&nbsp;PM</em></tt><br>
<div class="forum_message">The site is getting a much needed overhaul this week. New stuff will begin showing up after that is complete.<br><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
<tr valign="top">
	<td>
<h2><span class="h4">Forums</span> <a href="forums/766.html">404 not founds</a></h2>
&nbsp;&nbsp;&nbsp;<tt>From: Lewis A. Sellers</tt><br>
&nbsp;&nbsp;&nbsp;<tt>Date: <em>November&nbsp;01&nbsp;2006&nbsp;12:38&nbsp;AM</em></tt><br>
<div class="forum_message">Used htaccess to redirect most of the incoming 404'd links to the appropriate pages.<br><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
<tr valign="top">
	<td>
<h2><span class="h4">Forums</span> <a href="forums/766.html">captcha</a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>Date: <em>November&nbsp;27&nbsp;2006&nbsp;02:07&nbsp;AM</em></tt><br>
<div class="forum_message">Removed member logins and placed a simpler captcha on forums to keep the spam down.<br><h4>Code:</h4><div class="code"><?php //type 2 revision 3 Nov 27 2006
<br/>session_start();
<br/>ini_set('session.gc_maxlifetime',60*10); //10 minutes
<br/>
<br/>$width = 140;
<br/>$height = 26;
<br/>
<br/>// make code
<br/>$codelen = rand(4,7);
<br/>$validchars = "389ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghjkmnopqrstuvwxyz";
<br/>$code = "";
<br/>for($i = 0; $i&lt;$codelen; $i++)
<br/>{
<br/>  $code.=substr($validchars,rand(0,strlen($validchars)-1),1);
<br/>}
<br/>
<br/>// save nc/lower hash in current session
<br/>$_SESSION['captcha'] = md5(strtolower($code));
<br/>
<br/>// create blank image
<br/>$image = imagecreatetruecolor($width, $height);
<br/>
<br/>function random_color($image, $a,$b)
<br/>{
<br/>  return imagecolorallocate($image, rand($a,$b), rand($a,$b), rand($a,$b));
<br/>}
<br/>
<br/>// colored sectional background
<br/>$R=0x00;
<br/>$wd = 20;
<br/>$x = 0;
<br/>$y=0; //? 
<br/>while ($x &lt; $width)
<br/>{
<br/>  $wd = max(2, rand(0, 20) - 2);
<br/>  imagefilledrectangle($image, $x, 0, $x+$wd, $height, random_color($image, 222^$R, 255^$R));
<br/>  $x+=$wd;
<br/>}
<br/>
<br/>// display code
<br/>$fonts=glob(dirname(__FILE__)."/*.ttf");
<br/>if(count($fonts)&gt;1)
<br/>{
<br/>  for($i=0; $i&lt;$codelen; $i++)
<br/>  {
<br/>  	$em=$width/($codelen+1);
<br/>    $letter=substr($code,$i,1);
<br/>	  $font = $fonts[rand(0, count($fonts)-1)];
<br/>  	$rotation = rand(-33, 33);
<br/>   	$rotation2 = $rotation+rand(-7, 7);
<br/>  	$size = rand(18, $height/2.2);
<br/>    $x=($em/2)+$em*$i+rand(4,7);
<br/>		$y = rand($size+3, $height-3);
<br/>		$r=rand(26,97);
<br/>		$g=$r; //rand(30,99);
<br/>		$b=rand(26,97);
<br/>		$R=0xff;
<br/>  	$c1 = imagecolorallocate($image, $r*1^$R, $g*1^$R, $b*1^$R);
<br/>  	$c2 = imagecolorallocate($image, $r*2^$R, $g*2^$R, $b*2^$R);
<br/>  	imagettftext($image, $size, $rotation, $x+1, $y, $c2, $font, $letter);
<br/>  	imagettftext($image, $size, $rotation2, $x, $y-1, $c1, $font, $letter);
<br/>	}
<br/>}
<br/>
<br/>// faint border
<br/>$bordercolor = imagecolorallocate($image, 64, 64, 64);
<br/>imagerectangle($image,0,0,$width-1,$height-1,$bordercolor);
<br/>
<br/>// do not cache
<br/>header("Expires: 1 Jan 1970 00:00:00 GMT");
<br/>header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
<br/>header("Cache-Control: no-store, no-cache, must-revalidate");
<br/>header("Cache-Control: post-check=0, pre-check=0", false);
<br/>header("Pragma: no-cache");
<br/>
<br/>// output image
<br/>header('Content-type: image/gif');
<br/>imageGIF($image);
<br/>imageDestroy($image);
<br/>?&gt;</div><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
<tr valign="top">
	<td>
<h2><span class="h4">Forums</span> <a href="forums/766.html">ImageGrapher</a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>Date: <em>November&nbsp;28&nbsp;2006&nbsp;01:44&nbsp;AM</em></tt><br>
<div class="forum_message">Made ImageGrapher freeware.<br><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
<tr valign="top">
	<td>
<h2><span class="h4">Forums</span> <a href="forums/766.html">Forum editing</a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>Date: <em>November&nbsp;28&nbsp;2006&nbsp;01:45&nbsp;AM</em></tt><br>
<div class="forum_message">Added session-based forum editing.<br><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
<tr valign="top">
	<td>
<h2><span class="h4">Forums</span> <a href="forums/766.html">forum email</a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>Date: <em>November&nbsp;28&nbsp;2006&nbsp;02:11&nbsp;AM</em></tt><br>
<div class="forum_message">The forums now send us an email notice to all of us when anyone posts on them.<br><div align="right">
<a class="button" href="forums/766/replyform.html">Reply</a>&nbsp;&nbsp;&nbsp;
</div>
	</td>
</tr>
</table>
<br clear="all">
  </td>
</tr>
<tr>
	<td align="right" height="24" colspan="2" class="footer">
<tt>Copyright &copy; 1997-2007 by Lewis A. Sellers.</tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div align="center" class="slogan">'Making Atomic Warfare Fun Again' &trade;</div>
	</td>
</tr>
</table>
</body>
</html>