Location: PHPKode > projects > PLiMa > plima-0.5.2/options-save.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");

	$sql = "DELETE FROM lima_option WHERE list_name = '".$_SESSION['MALI']."';";
	db_query($sql, "OPTSAV05");
	
	$sql = "INSERT INTO lima_option (list_name, sender, senderName, wrap, signature)
						VALUES (
							'".$_SESSION['MALI']."',
							'".mysql_escape_string($_POST['sender'])."',
							'".mysql_escape_string($_POST['senderName'])."',
							'".$_POST['wrap']."',
							'".mysql_escape_string($_POST['signature'])."'
						);";
	$result = db_query($sql,"OPTSAV10") or die("MySQL Said: " . mysql_error());
	//echo $sql."<br />";
	//echo mysql_error();

	header("Location: options.phtml?saved=1");
?>
Return current item: PLiMa