Skip to content

Commit b91328b

Browse files
committed
display info message after domain owner change
1 parent e9bb05d commit b91328b

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

interface/lib/lang/en.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,6 @@ $wb['strength_4'] = 'Strong';
149149
$wb['strength_5'] = 'Very Strong';
150150
$wb['weak_password_txt'] = 'The chosen password does not match the security guidelines. It has to be at least {chars} chars in length and have a strength of "{strength}".';
151151
$wb['weak_password_length_txt'] = 'The chosen password does not match the security guidelines. It has to be at least {chars} chars in length.';
152+
$wb['domain_owner_changed'] = 'You have changed the owner of domain {domain}, please change website and mail domain owner for this domain accordingly.';
152153

153154
?>

interface/lib/lang/es.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,5 @@ $wb['strength_4'] = 'Strong';
147147
$wb['strength_5'] = 'Very Strong';
148148
$wb['weak_password_txt'] = 'The chosen password does not match the security guidelines. It has to be at least {chars} chars in length and have a strength of \\"{strength}\\".';
149149
$wb['weak_password_length_txt'] = 'The chosen password does not match the security guidelines. It has to be at least {chars} chars in length.';
150+
$wb['domain_owner_changed'] = 'Has cambiado el propietario del dominio {domain}, por favor cambia también el propietario del sitio web y dominio de correo de este dominio.';
150151
?>

interface/web/client/domain_edit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ function onAfterUpdate() {
208208
if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
209209
$client_group_id = $app->functions->intval($this->dataRecord["client_group_id"]);
210210
$app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id);
211+
$lng_text = $app->lng("domain_owner_changed");
212+
$_SESSION['show_info_msg'] = str_replace("{domain}", $this->dataRecord["domain"], $lng_text);
211213
}
212214
}
213215

interface/web/client/domain_list.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646

4747
$app->uses('listform_actions');
4848

49+
if(isset($_SESSION['show_info_msg'])) {
50+
$app->tpl->setloop('info', array(array('info_msg' => '<p>'.$_SESSION['show_info_msg'].'</p>')));
51+
unset($_SESSION['show_info_msg']);
52+
}
53+
4954
$app->listform_actions->SQLOrderBy = 'ORDER BY domain.domain';
5055
$app->listform_actions->onLoad();
5156

interface/web/client/templates/domain_list.htm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ <h2><tmpl_var name="list_head_txt"></h2>
44
<div class="panel panel_list_domain">
55

66
<div class="pnl_toolsarea">
7+
<div>
8+
<tmpl_if name='info'>
9+
<div class="systemmonitor-state state-info">
10+
<div class="status"></div>
11+
<div class="statusMsg">
12+
<tmpl_loop name="info">
13+
{tmpl_var name='info_msg'}
14+
</tmpl_loop>
15+
</div>
16+
</div>
17+
</tmpl_if>
18+
</div>
719
<fieldset><legend>{tmpl_var name="toolsarea_head_txt"}</legend>
820
<div class="buttons">
921
<button class="button iconstxt icoAdd" type="button" onclick="loadContent('client/domain_edit.php');">

0 commit comments

Comments
 (0)