<?
/***
* 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");
if ( $action == 'remove' ) {
$sql = "DELETE FROM ".$_SESSION['MALI']." WHERE userid = '$userid';";
db_query($sql);
header("Location: ".WEB_ROOT."/list-home.phtml");
exit;
}
require("./inc/head.inc.php");
?>
<?
$sql = "SELECT * FROM ". $_SESSION['MALI'] . " WHERE userid = '$userid'";
$result = db_query($sql, "RM10");
$user = db_fetch_array($result, 0);
?>
<h1>Remove User - Confirm</h1>
<p>Are you sure you want to remove <b><? echo $user['email']; ?></b> from <b><? echo $_SESSION['mali'] ?></b>?</p>
<form action="" method="post">
<input type="hidden" name="userid" value="<? echo $userid; ?>" />
<input type="hidden" name="action" value="remove" />
<input type="submit" value=" Yes " />
<input type="button" value="No" onClick="document.history.back()" />
</form>
<?
require("./inc/foot.inc.php");
?>