Response message updates.
This commit is contained in:
parent
dfba7f9405
commit
2241268f01
|
|
@ -144,22 +144,9 @@ else {
|
||||||
unset($ext);
|
unset($ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user
|
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-copy'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extensions.php\">\n";
|
header("Location: extensions.php");
|
||||||
echo "<br />\n";
|
return;
|
||||||
echo "<div align='center'>\n";
|
|
||||||
echo " <table width='40%'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['message-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <td class='row_style1'><strong>".$text['message-copy']."</strong></td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " </table>\n";
|
|
||||||
echo " <br />\n";
|
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
@ -68,22 +68,9 @@ else {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user
|
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-delete'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extensions.php\">\n";
|
header("Location: extensions.php");
|
||||||
echo "<br />\n";
|
return;
|
||||||
echo "<div align='center'>\n";
|
|
||||||
echo " <table width='40%'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['message-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <td class='row_style1'><strong>".$text['message-delete']."</strong></td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " </table>\n";
|
|
||||||
echo " <br />\n";
|
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
@ -105,10 +105,8 @@ else {
|
||||||
$sql .= "and user_uuid = '".$user_uuid."' ";
|
$sql .= "and user_uuid = '".$user_uuid."' ";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-delete'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extension_edit.php?id=$extension_uuid\">\n";
|
header("Location: extension_edit.php?id=".$extension_uuid);
|
||||||
echo "<div align='center'>".$text['message-delete']."</div>";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -124,10 +122,8 @@ else {
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql);
|
unset($sql);
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-delete'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extension_edit.php?id=$extension_uuid\">\n";
|
header("Location: extension_edit.php?id=".$extension_uuid);
|
||||||
echo "<div align='center'>".$text['message-delete']."</div>";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -153,10 +149,8 @@ else {
|
||||||
$sql_insert .= ")";
|
$sql_insert .= ")";
|
||||||
$db->exec($sql_insert);
|
$db->exec($sql_insert);
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-add'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extension_edit.php?id=$extension_uuid\">\n";
|
header("Location: extension_edit.php?id=".$extension_uuid);
|
||||||
echo "<div align='center'>".$text['message-add']."</div>";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -235,10 +229,8 @@ else {
|
||||||
$db->exec($sql_insert);
|
$db->exec($sql_insert);
|
||||||
|
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
require_once "resources/header.php";
|
$_SESSION["message"] = $text['message-add'];
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extension_edit.php?id=$extension_uuid\">\n";
|
header("Location: extension_edit.php?id=".$extension_uuid);
|
||||||
echo "<div align='center'>".$text['message-add']."</div>";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -600,24 +592,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$row_style["1"] = "row_style1";
|
$row_style["1"] = "row_style1";
|
||||||
|
|
||||||
//show the action and redirect the user
|
//show the action and redirect the user
|
||||||
require_once "resources/header.php";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "<div align='center'>\n";
|
|
||||||
if (count($generated_users) == 0) {
|
if (count($generated_users) == 0) {
|
||||||
//action add
|
//action add
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extensions.php\">\n";
|
$_SESSION["message"] = $text['message-add'];
|
||||||
echo " <table width='40%'>\n";
|
header("Location: extensions.php");
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['message-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <td class='row_style1'><strong>".$text['message-add']."</strong></td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " </table>\n";
|
|
||||||
echo " <br />\n";
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//auto-generate user with extension as login name
|
//auto-generate user with extension as login name
|
||||||
|
require_once "resources/header.php";
|
||||||
|
echo "<br />\n";
|
||||||
|
echo "<div align='center'>\n";
|
||||||
echo " <table width='40%' border='0' cellpadding='0' cellspacing='0'>\n";
|
echo " <table width='40%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td colspan='2'><strong>New User Accounts</strong></td>\n";
|
echo " <td colspan='2'><strong>New User Accounts</strong></td>\n";
|
||||||
|
|
@ -634,32 +618,19 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
}
|
}
|
||||||
if ($c==0) { $c=1; } else { $c=0; }
|
if ($c==0) { $c=1; } else { $c=0; }
|
||||||
echo " </table>";
|
echo " </table>";
|
||||||
|
echo "</div>\n";
|
||||||
|
require_once "resources/footer.php";
|
||||||
}
|
}
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
require_once "resources/header.php";
|
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=extensions.php\">\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "<div align='center'>\n";
|
|
||||||
echo " <table width='40%'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <th align='left'>".$text['message-message']."</th>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
echo " <td class='row_style1'><strong>".$text['message-update']."</strong></td>\n";
|
$_SESSION["message"] = $text['message-update'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <td class='row_style1'><strong>".$text['message-add']."</strong></td>\n";
|
$_SESSION["message"] = $text['message-add'];
|
||||||
}
|
}
|
||||||
echo " </tr>\n";
|
header("Location: extensions.php");
|
||||||
echo " </table>\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "</div>\n";
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue