Location: PHPKode > projects > PLiMa > plima-0.5.2/add-user-redir.php
<?
/***
	*   pLiMa - php List Manager
  *   Copyright (C) 2003  Jinn Koriech (hide@address.com)
	*
  *		This file is part of pLiMa.
	*
	*   pLiMa is free software; you can redistribute it and/or modify
	*   it under the terms of the GNU General Public License as published by
	*   the Free Software Foundation; either version 2 of the License, or
	*   any later version.
	*
	*   pLiMa is distributed in the hope that it will be useful,
	*   but WITHOUT ANY WARRANTY; without even the implied warranty of
	*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	*   GNU General Public License for more details.
	*
	*   You should have received a copy of the GNU General Public License
	*   along with pLiMa; if not, visit http://www.gnu.org or write to the 
	*   Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
	*	  Boston, MA  02111-1307  USA
	*	
	*/
	require("./inc/init.inc.php");
	function form_head($url) {
			echo "<html>\n<body>\n<form action='".WEB_ROOT."$url' method='post'>\n";
	}
	function form_foot() {
			echo "<script type='text/javascript'>\ndocument.forms[0].submit();\n</script>\n";
			echo "</form>\n</body>\n</html>";
	}

	switch ( $_POST['how'] ) {
		case "fixedform":
			//form_head("/add-fixed-form.phtml");
			//echo "<input type='hidden' name='rows' value='$rows'>";
			//form_foot();
			header("Location: ".WEB_ROOT."/add-fixed-form.phtml?rows=$rows");
			exit;
			break;

		case "freeform":
			form_head("/add-free-form.phtml");
			form_foot();
			break;

		case "upload":
			

			break;
	}
?>
Return current item: PLiMa