[enh] Adds more granular alert messages
This commit is contained in:
parent
013c6e739b
commit
d5b60a9665
|
@ -33,10 +33,10 @@ $list_ip = $authip->list_ip_whitelist();
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<?php if (isset($error) && $error) { ?>
|
<?php if (isset($error) && $error) { ?>
|
||||||
<p class="error"><?php echo $error ?></p>
|
<p class="alert alert-danger"><?php echo $error ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<center>
|
<center>
|
||||||
<p class="error"><?php __("Warning"); echo "<br/>"; __("The IP and subnet you have here are allowed for ALL users and ALL usages"); ?></p>
|
<p class="alert alert-warning"><?php __("Warning"); echo "<br/>"; __("The IP and subnet you have here are allowed for ALL users and ALL usages"); ?></p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -74,7 +74,7 @@ if($del_confirm == "y"){
|
||||||
<form action="adm_dodel.php" method="post">
|
<form action="adm_dodel.php" method="post">
|
||||||
<input type="hidden" name="action" value="delete" />
|
<input type="hidden" name="action" value="delete" />
|
||||||
<input type="hidden" name="del_confirm" value="y" />
|
<input type="hidden" name="del_confirm" value="y" />
|
||||||
<p class="error"><?php __("WARNING : Confirm the deletion of the users"); ?></p>
|
<p class="alert alert-warning"><?php __("WARNING : Confirm the deletion of the users"); ?></p>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
foreach($d as $userid){
|
foreach($d as $userid){
|
||||||
|
|
|
@ -90,7 +90,7 @@ closedir($d);
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php if ($cuid == 2000) { ?>
|
<?php if ($cuid == 2000) { ?>
|
||||||
<p class="error">
|
<p class="alert alert-info">
|
||||||
<?php if (panel_islocked()) { ?>
|
<?php if (panel_islocked()) { ?>
|
||||||
<a href="adm_lockpanel.php?action=unlock"><?php __("Click here to unlock the panel and allow user to login.");?></a>
|
<a href="adm_lockpanel.php?action=unlock"><?php __("Click here to unlock the panel and allow user to login.");?></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
|
@ -23,7 +23,7 @@ $lst_cron = $cron->lst_cron();
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<?php if (isset($error) && $error) { ?>
|
<?php if (isset($error) && $error) { ?>
|
||||||
<p class="error"><?php echo $error ?></p>
|
<p class="alert alert-danger"><?php echo $error ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<form method="post" action="cron.php" id="main" name="cron" >
|
<form method="post" action="cron.php" id="main" name="cron" >
|
||||||
|
|
|
@ -46,7 +46,7 @@ if (!isset($dns)) $dns="1";
|
||||||
<hr />
|
<hr />
|
||||||
<?php
|
<?php
|
||||||
if (!$quota->cancreate("dom")) { ?>
|
if (!$quota->cancreate("dom")) { ?>
|
||||||
<p class="error"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p>
|
<p class="alert alert-danger"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p>
|
||||||
<?php
|
<?php
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ $dl=$dom->get_domain_list($cuid);
|
||||||
<input type="submit" class="inb ok" name="submit" value="<?php __("Add this domain"); ?>" />
|
<input type="submit" class="inb ok" name="submit" value="<?php __("Add this domain"); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="error">
|
<p class="alert alert-info">
|
||||||
<?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></p>
|
<?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></p>
|
||||||
<?php $mem->show_help("add_domain"); ?>
|
<?php $mem->show_help("add_domain"); ?>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -64,7 +64,7 @@ if ($del_confirm!="y") {
|
||||||
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3>
|
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3>
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<p class="error"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
|
<p class="alert alert-warning"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
|
||||||
|
|
||||||
<?php __("This will delete the related sub-domains too."); ?></p>
|
<?php __("This will delete the related sub-domains too."); ?></p>
|
||||||
<form method="post" action="dom_dodel.php" id="main">
|
<form method="post" action="dom_dodel.php" id="main">
|
||||||
|
|
|
@ -93,10 +93,10 @@ function destruction_alert() {
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($r['dns_action']=='UPDATE') {?>
|
if ($r['dns_action']=='UPDATE') {?>
|
||||||
<p class="error"><?php __("This domain have some DNS change pending. Please wait."); ?></p>
|
<p class="alert alert-info"><?php __("This domain have some DNS change pending. Please wait."); ?></p>
|
||||||
<?php
|
<?php
|
||||||
} elseif ($r['dns_action']=='DELETE') {?>
|
} elseif ($r['dns_action']=='DELETE') {?>
|
||||||
<p class="error"><?php printf(_("You requested deletion of domain %s."), $domain);?></p>
|
<p class="alert alert-warning"><?php printf(_("You requested deletion of domain %s."), $domain);?></p>
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
// Link hidden as long as the del_domain_cancel function is not complete
|
// Link hidden as long as the del_domain_cancel function is not complete
|
||||||
|
@ -255,7 +255,7 @@ if (!$r['noerase']) {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p class="error"> <?php __("Warning: If you set this to 'no', all your email accounts and aliases on this domain will be immediately deleted."); ?></p>
|
<p class="alert alert-warning"> <?php __("Warning: If you set this to 'no', all your email accounts and aliases on this domain will be immediately deleted."); ?></p>
|
||||||
<input type="submit" class="inb ok" name="submit" value="<?php __("Submit the changes"); ?>" />
|
<input type="submit" class="inb ok" name="submit" value="<?php __("Submit the changes"); ?>" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -46,13 +46,13 @@ $domain=trim($domain);
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($error)) {
|
if (!empty($error)) {
|
||||||
echo '<p class="error">'.$error.'</p>';
|
echo '<p class="alert alert-danger">'.$error.'</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( !empty($zone) ) {
|
<?php if ( !empty($zone) ) {
|
||||||
if ( empty($domain) ) {
|
if ( empty($domain) ) {
|
||||||
echo '<p class="error">'._("The domain field seems to be empty").'</p>';
|
echo '<p class="alert alert-danger">'._("The domain field seems to be empty").'</p>';
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<?php __("Here is my proposition. Modify your zone until my proposition seems good to you"); ?>
|
<?php __("Here is my proposition. Modify your zone until my proposition seems good to you"); ?>
|
||||||
<table class="tlist">
|
<table class="tlist">
|
||||||
|
|
|
@ -62,7 +62,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
|
||||||
gestion du sous-domaine
|
gestion du sous-domaine
|
||||||
-->
|
-->
|
||||||
<form action="dom_subdodel.php" method="post">
|
<form action="dom_subdodel.php" method="post">
|
||||||
<p class="error">
|
<p class="alert alert-warning">
|
||||||
<input type="hidden" name="sub_domain_id" value="<?php echo $sub_domain_id ?>" />
|
<input type="hidden" name="sub_domain_id" value="<?php echo $sub_domain_id ?>" />
|
||||||
<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p>
|
<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p>
|
||||||
<p><?php ecif($r['name'],$r['name']."."); echo $r['domain']; ?></p>
|
<p><?php ecif($r['name'],$r['name']."."); echo $r['domain']; ?></p>
|
||||||
|
|
|
@ -49,7 +49,7 @@ if (!$r=$ftp->get_list($domain)) {
|
||||||
<?php
|
<?php
|
||||||
if (isset($error) && $error && !$noftp) {
|
if (isset($error) && $error && !$noftp) {
|
||||||
?>
|
?>
|
||||||
<p class="error"><?php echo $error ?></p>
|
<p class="alert alert-danger"><?php echo $error ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($quota->cancreate("ftp")) { ?>
|
<?php if ($quota->cancreate("ftp")) { ?>
|
||||||
|
|
|
@ -52,7 +52,7 @@ $lac = $authip->list_affected();
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<?php if (isset($error) && $error) { ?>
|
<?php if (isset($error) && $error) { ?>
|
||||||
<p class="error"><?php echo $error ; $error=''; ?></p>
|
<p class="alert alert-danger"><?php echo $error ; $error=''; ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<p><?php __("Here you can add rules to restrict access to AlternC's services, filtered by IP. First, add trusted IPs in the 'Known IP and networks' list. Then, add rules to grant access on services to the chosen IPs from this list.") ?></p>
|
<p><?php __("Here you can add rules to restrict access to AlternC's services, filtered by IP. First, add trusted IPs in the 'Known IP and networks' list. Then, add rules to grant access on services to the chosen IPs from this list.") ?></p>
|
||||||
|
|
|
@ -82,7 +82,7 @@ if (isset($error)) {
|
||||||
<p><?php printf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes)); ?></p>
|
<p><?php printf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes)); ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($mailbox_action=="DELETE") { ?>
|
<?php if ($mailbox_action=="DELETE") { ?>
|
||||||
<p class="error"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></p>
|
<p class="alert alert-warning"><?php __("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!"); ?></p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -100,7 +100,7 @@ if (isset($error)) {
|
||||||
</div>
|
</div>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<?php if ($islocal) { ?>
|
<?php if ($islocal) { ?>
|
||||||
<tr id="turnoff"><td colspan="2" class="error"><?php __("WARNING: turning POP/IMAP off will DELETE the stored messages in this email address."); ?></td></tr>
|
<tr id="turnoff"><td colspan="2" class="alert alert-warning"><?php __("WARNING: turning POP/IMAP off will DELETE the stored messages in this email address."); ?></td></tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<tr><th colspan="2"><b><?php __("Is it a redirection to other email addresses?"); ?></b></th></tr>
|
<tr><th colspan="2"><b><?php __("Is it a redirection to other email addresses?"); ?></b></th></tr>
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ if (!$found) {
|
||||||
<h3><?php __("MySQL Databases"); ?></h3>
|
<h3><?php __("MySQL Databases"); ?></h3>
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<p class="error"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following SQL databases"); ?><br />
|
<p class="alert alert-warning"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following SQL databases"); ?><br />
|
||||||
<?php __("This will delete all the tables currently in those db."); ?></p>
|
<?php __("This will delete all the tables currently in those db."); ?></p>
|
||||||
<form method="post" action="sql_del.php" id="main">
|
<form method="post" action="sql_del.php" id="main">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -58,7 +58,7 @@ include_once("head.php");
|
||||||
<h3><?php __("MySQL users"); ?></h3>
|
<h3><?php __("MySQL users"); ?></h3>
|
||||||
<hr id="topbar"/>
|
<hr id="topbar"/>
|
||||||
<br />
|
<br />
|
||||||
<p class="error"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following MySQL users"); ?><br />
|
<p class="alert alert-warning"><?php __("WARNING"); ?></big><br /><?php __("Confirm the deletion of the following MySQL users"); ?><br />
|
||||||
</p>
|
</p>
|
||||||
<form method="post" action="sql_users_del.php" id="main">
|
<form method="post" action="sql_users_del.php" id="main">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -52,7 +52,7 @@ include_once("head.php");
|
||||||
|
|
||||||
<?php if (!empty($error)) { ?>
|
<?php if (!empty($error)) { ?>
|
||||||
<div>
|
<div>
|
||||||
<span class="error">
|
<span class="alert alert-danger">
|
||||||
<?php echo implode(" - ", array_unique($error)); ?>
|
<?php echo implode(" - ", array_unique($error)); ?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -63,7 +63,7 @@ include_once("head.php");
|
||||||
<div>
|
<div>
|
||||||
<?php if (empty($infos)) {
|
<?php if (empty($infos)) {
|
||||||
?>
|
?>
|
||||||
<p class="error"><?php __("You can start a virtual machine."); ?></p>
|
<p class="alert alert-info"><?php __("You can start a virtual machine."); ?></p>
|
||||||
<form method="post" action="vm.php">
|
<form method="post" action="vm.php">
|
||||||
<input type="hidden" name="action" value="start" />
|
<input type="hidden" name="action" value="start" />
|
||||||
<input type="submit" class="inb" name="go" value="<?php __("Click here to start a virtual machine."); ?>" />
|
<input type="submit" class="inb" name="go" value="<?php __("Click here to start a virtual machine."); ?>" />
|
||||||
|
@ -80,7 +80,7 @@ include_once("head.php");
|
||||||
echo "</pre></td></tr>";
|
echo "</pre></td></tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
?>
|
?>
|
||||||
<p class="error"><?php __("You can stop your virtual machine."); ?></p>
|
<p class="alert alert-info"><?php __("You can stop your virtual machine."); ?></p>
|
||||||
<form method="post" action="vm.php">
|
<form method="post" action="vm.php">
|
||||||
<input type="hidden" name="action" value="stop" />
|
<input type="hidden" name="action" value="stop" />
|
||||||
<input type="submit" class="inb" name="go" value="<?php __("Click here to stop your running virtual machine."); ?>" />
|
<input type="submit" class="inb" name="go" value="<?php __("Click here to stop your running virtual machine."); ?>" />
|
||||||
|
|
Loading…
Reference in New Issue