Location: PHPKode > projects > GBoook > gbook_v.3.3/gbook.php
<?php
	session_start();
	error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
	include('inc/settings.inc.php');
	include('inc/functions.inc.php');
	
	if (@$_GET['loc'] != 'sign'){
		if(!isset($_POST['more'])){
			$showmore = $numentry;
		}else{
			$showmore = htmlspecialchars(mysql_real_escape_string($_POST['more']),ENT_QUOTES);
		}
		if(isset($_GET['cap']) && !empty($_GET['cap'])){
			$cap = $_GET['cap'];
		}else{
			$cap = 'TRUE';
		}
		echo '<a href="'.$mainfile.'?loc=sign">Sign Guestbook</a>';
		echo FUNCT_GET_POSTS($showmore,$showemail);
			
	}elseif(isset($_GET['loc']) && ($_GET['loc'] == 'sign')){
		if(isset($_GET['cap']) && !empty($_GET['cap'])){
			$cap = $_GET['cap'];
		}else{
			$cap = 'TRUE';
		}
		echo FUNCT_SHOW_FORM($captcha, $cap);
	}
?>
Return current item: GBoook