forked from services/mlmmj-light-web-ecg
Added success message after changing a list
This commit is contained in:
@@ -4,6 +4,7 @@ require("init.php");
|
||||
|
||||
$list_name = isset($_GET["list_name"]) ? $_GET["list_name"] : "";
|
||||
$domain = $_SESSION["domain"];
|
||||
$success = isset($_GET["success"]) ? true : false;
|
||||
|
||||
if (!isset($_SESSION["auth"]) || $_SESSION["auth"] != 1)
|
||||
{
|
||||
@@ -79,6 +80,7 @@ $smarty->assign("domain", $domain);
|
||||
$smarty->assign("moderators", $moderators);
|
||||
$smarty->assign("prefix", $prefix);
|
||||
$smarty->assign("username", $_SESSION["username"]);
|
||||
$smarty->assign("success", $success);
|
||||
$smarty->display("edit_list.tpl");
|
||||
|
||||
?>
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<div id="breadcrumbs">
|
||||
<a href="index.php">Home</a> / {$list_name}
|
||||
</div>
|
||||
{if $success eq true}<p class="success">List was successfully updated.</p>{/if}
|
||||
<form method="post" action="save_list.php" id="save_list" onsubmit="return validate_form()">
|
||||
<div id="edit_page">
|
||||
<input type="hidden" name="list_name" value="{$list_name}">
|
||||
|
||||
@@ -209,7 +209,7 @@ if (!$return["success"])
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: edit_list.php?list_name=$list_name");
|
||||
header("Location: edit_list.php?list_name=$list_name&success");
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user