Skip to content

Commit 4be9865

Browse files
committed
Show traffic quota eceeded message when a website has been deactivated.
1 parent b0ebbde commit 4be9865

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ $wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z
5757
$wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota';
5858
$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/';
5959
$wb["php_open_basedir_txt"] = 'PHP open_basedir';
60+
$wb["traffic_quota_exceeded_txt"] = 'Traffic quota exceeded';
6061
?>

interface/web/sites/templates/web_domain_edit.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
5151
</div>
5252
<div class="ctrlHolder">
5353
<label for="traffic_quota">{tmpl_var name='traffic_quota_txt'}</label>
54-
<input name="traffic_quota" id="traffic_quota" value="{tmpl_var name='traffic_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" />&nbsp;MB
54+
<input name="traffic_quota" id="traffic_quota" value="{tmpl_var name='traffic_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" />&nbsp;MB <tmpl_var name='traffic_quota_exceeded_txt'>
5555
</div>
5656
<div class="ctrlHolder">
5757
<p class="label">{tmpl_var name='cgi_txt'}</p>

interface/web/sites/web_domain_edit.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ function onShowEnd() {
203203
$app->tpl->setVar("edit_disabled", 0);
204204
}
205205

206+
$tmp_txt = ($this->dataRecord['traffic_quota_lock'] == 'y')?'<b>('.$app->tform->lng('traffic_quota_exceeded_txt').')</b>':'';
207+
$app->tpl->setVar("traffic_quota_exceeded_txt", $tmp_txt);
208+
206209
parent::onShowEnd();
207210
}
208211

0 commit comments

Comments
 (0)