Commit 4be98656 authored by tbrehm's avatar tbrehm

Show traffic quota eceeded message when a website has been deactivated.

parent b0ebbded
......@@ -57,4 +57,5 @@ $wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z
$wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota';
$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/';
$wb["php_open_basedir_txt"] = 'PHP open_basedir';
$wb["traffic_quota_exceeded_txt"] = 'Traffic quota exceeded';
?>
......@@ -51,7 +51,7 @@
</div>
<div class="ctrlHolder">
<label for="traffic_quota">{tmpl_var name='traffic_quota_txt'}</label>
<input name="traffic_quota" id="traffic_quota" value="{tmpl_var name='traffic_quota'}" size="7" maxlength="7" type="text" class="textInput formLengthLimit" />&nbsp;MB
<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'>
</div>
<div class="ctrlHolder">
<p class="label">{tmpl_var name='cgi_txt'}</p>
......
......@@ -203,6 +203,9 @@ class page_action extends tform_actions {
$app->tpl->setVar("edit_disabled", 0);
}
$tmp_txt = ($this->dataRecord['traffic_quota_lock'] == 'y')?'<b>('.$app->tform->lng('traffic_quota_exceeded_txt').')</b>':'';
$app->tpl->setVar("traffic_quota_exceeded_txt", $tmp_txt);
parent::onShowEnd();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment