From 31d024c5a15d9582cad4ef694ac486fb51206e90 Mon Sep 17 00:00:00 2001
From: quenenni
Date: Wed, 16 Aug 2017 02:23:22 +0200
Subject: [PATCH] =?UTF-8?q?classe=20dom=20&=20fichiers=20section=20admin?=
=?UTF-8?q?=20associ=C3=A9s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
bureau/admin/dom_add.php | 10 +-
bureau/admin/dom_doadd.php | 8 +-
bureau/admin/dom_dodel.php | 24 +--
bureau/admin/dom_edit.inc.php | 12 +-
bureau/admin/dom_edit.php | 13 +-
bureau/admin/dom_editdns.php | 32 ++--
bureau/admin/dom_import.php | 14 +-
bureau/admin/dom_subdel.php | 13 +-
bureau/admin/dom_subdodel.php | 28 ++--
bureau/admin/dom_subdoedit.php | 9 +-
bureau/admin/dom_subedit.php | 20 +--
bureau/admin/dom_substatus.php | 3 +-
bureau/admin/ftp_del.php | 1 -
bureau/class/m_dom.php | 276 ++++++++++++++++-----------------
14 files changed, 224 insertions(+), 239 deletions(-)
diff --git a/bureau/admin/dom_add.php b/bureau/admin/dom_add.php
index 162a932b..b2da7afc 100755
--- a/bureau/admin/dom_add.php
+++ b/bureau/admin/dom_add.php
@@ -45,12 +45,12 @@ if (!isset($dns)) $dns="1";
cancreate("dom")) { ?>
-
-cancreate("dom")) {
+ $msg->raise('Alert', "dom", _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."));
+ echo $msg->msg_html_all();
+ exit();
}
-if (isset($error) && $error) echo "$error
";
+echo $msg->msg_html_all();
?>
-
-
+raise('Ok', "dom", _("The domain %s has been successfully deleted."),$domain);
+echo $msg->msg_html_all();
+?>
+
show_help("del_domain"); ?>
diff --git a/bureau/admin/dom_edit.inc.php b/bureau/admin/dom_edit.inc.php
index 57a74c0e..2d98da96 100755
--- a/bureau/admin/dom_edit.inc.php
+++ b/bureau/admin/dom_edit.inc.php
@@ -6,18 +6,15 @@ include_once("head.php");
# Take the values of the subdomain in arguments
function sub_domains_edit($domain, $sub_domain_id=false) {
- global $admin, $err, $oldid, $isedit;
+ global $admin, $msg, $oldid, $isedit;
$dom=new m_dom();
$dom->lock();
-if (!$r=$dom->get_domain_all($domain)) {
- $error=$err->errstr();
-}
+
+$r=$dom->get_domain_all($domain);
/*
if (! empty($sub)) {
- if (!$sd=$dom->get_sub_domain_all($domain,$sub,$type,$value)) {
- $error=$err->errstr();
- }
+ $sd=$dom->get_sub_domain_all($domain,$sub,$type,$value);
}
*/
$sd=$dom->get_sub_domain_all($sub_domain_id);
@@ -26,6 +23,7 @@ $type=$sd['type'];
$sub=$sd['name'];
$dom->unlock();
+
?>