get( 'free' ); if ( (($res != '') || ($db_failed > 0)) && ($_GET['nocache'] != 1) ) //note - for testing { header("Last-Modified: " . gmdate("D, d M Y H:i:s", $cache->lastModified() ) . " GMT", true); header("x-from-cache: true" ); include_once('header1.php'); } else { header("Last-Modified: " . gmdate("D, d M Y H:i:s", time() ) . " GMT", true); header("x-from-cache: false" ); include_once('header1.php'); $smarty = newSmarty(); require_once("searchform.php"); $smarty->assign( 'searchform', searchform( "", "", "", "", "", "Cost" ) ); $res = $smarty->fetch( 'freesoftware.tpl' ); mysql_close($link_id); $res = reduce_text($res); $cache->save($res); } $res = substitute_before_display( $res ); substitute_header_code_into_text( $res ); include_once('footer2.php'); ?>