26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "sub_domain_id" => array (
"request",
"integer",
""),
35 $r=
$dom->get_sub_domain_all($sub_domain_id);
40 $msg->raise(
"ERROR",
"dom", _(
"This page is restricted to authorized staff"));
41 echo
$msg->msg_html_all();
46 <h3><?php printf(_(
"Deleting subdomain %s"),
ife(
$r[
'name'],
$r[
'name'].
".").
$r[
'domain']); ?> : </h3>
48 if (
$msg->has_msgs(
"ERROR")) {
49 echo
$msg->msg_html_all();
50 include_once(
"foot.php");
56 <form action=
"dom_subdodel.php" method=
"post">
58 <p
class=
"alert alert-warning">
59 <input type=
"hidden" name=
"sub_domain_id" value=
"<?php ehe($sub_domain_id); ?>" />
60 <?php
__(
"WARNING : You are going to delete a sub-domain."); ?></p>
62 __(
"Informations about the subdomain you're going to delete:");
64 echo
"<li>"._(
"Entry:").
" ".( empty(
$r[
'name'])?
'':
$r[
'name'].
".").$r[
'domain'].
"</li>";
65 echo
"<li>"._(
"Type:").
" "._(
$r[
'type_desc']).
"</li>";
66 if (!empty(
$r[
'dest'])) {
67 echo
"<li>"._(
"Value:").
" "._(
$r[
'dest']).
"</li>";
71 __(
"Do you really want to delete it?");
75 <input type=
"submit" class=
"inb" name=
"confirm" value=
"<?php __("Yes
"); ?>" />
76 <span
class=
"ina"><a href=
"dom_edit.php?domain=<?php echo urlencode($r['domain']) ?>"><?php
__(
"No"); ?></a></span></p>
79 <?php include_once(
"foot.php"); ?>
$fields
Form to confirm the deletion of a subdomain.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...