[enh] Converts more alert messages

This commit is contained in:
alban 2013-10-18 09:59:03 +00:00
parent 6fe0992ba1
commit 335d80fee8
64 changed files with 96 additions and 96 deletions

View File

@ -3,7 +3,7 @@
$Id: adm_add.php,v 1.9 2006/01/24 05:03:30 joe Exp $ $Id: adm_add.php,v 1.9 2006/01/24 05:03:30 joe Exp $
---------------------------------------------------------------------- ----------------------------------------------------------------------
AlternC - Web Hosting System AlternC - Web Hosting System
Copyright (C) 2006 Le réseau Koumbit Inc. Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
http://koumbit.org/ http://koumbit.org/
Copyright (C) 2002 by the AlternC Development Team. Copyright (C) 2002 by the AlternC Development Team.
http://alternc.org/ http://alternc.org/
@ -56,7 +56,7 @@ getFields($fields);
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<form method="post" action="adm_doadd.php" id="main" name="main"> <form method="post" action="adm_doadd.php" id="main" name="main">

View File

@ -3,7 +3,7 @@
$Id: adm_defquotas.php,v 1.4 2006/01/24 05:03:30 joe Exp $ $Id: adm_defquotas.php,v 1.4 2006/01/24 05:03:30 joe Exp $
---------------------------------------------------------------------- ----------------------------------------------------------------------
AlternC - Web Hosting System AlternC - Web Hosting System
Copyright (C) 2006 Le réseau Koumbit Inc. Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
http://koumbit.org/ http://koumbit.org/
Copyright (C) 2002 by the AlternC Development Team. Copyright (C) 2002 by the AlternC Development Team.
http://alternc.org/ http://alternc.org/
@ -49,13 +49,13 @@ include_once ("head.php");
<?php <?php
if ($synchronise==true) { if ($synchronise==true) {
$quota->synchronise_user_profile(); $quota->synchronise_user_profile();
echo "<p class=\"error\">";__("User's quotas synchronised");echo "</p>"; echo "<p class=\"alert alert-info\">";__("User's quotas synchronised");echo "</p>";
} }
$quota->create_missing_quota_profile(); $quota->create_missing_quota_profile();
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<form method="post" action="adm_dodefquotas.php"> <form method="post" action="adm_dodefquotas.php">

View File

@ -42,7 +42,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -69,7 +69,7 @@ if($action == "add") {
<input type="hidden" name="action" value="delete" /> <input type="hidden" name="action" value="delete" />
<input type="hidden" name="type" value="<?php echo $type ?>" /> <input type="hidden" name="type" value="<?php echo $type ?>" />
<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 quota"); ?></p> <p class="alert alert-warning"><?php __("WARNING: Confirm the deletion of the quota"); ?></p>
<p><?php echo $type; ?></p> <p><?php echo $type; ?></p>
<blockquote> <blockquote>
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp; <input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp;

View File

@ -40,7 +40,7 @@ include_once ("head.php");
<h3><?php __("Manage installed domains"); ?></h3> <h3><?php __("Manage installed domains"); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
$fields = array ( $fields = array (

View File

@ -24,7 +24,7 @@ if (!$admin->enabled) {
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }

View File

@ -44,7 +44,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (!empty($error)) { if (!empty($error)) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -62,7 +62,7 @@ if (! $d=$dom->domains_type_get($name)) {
<br /> <br />
<?php <?php
if (isset($error_edit) && $error_edit) { if (isset($error_edit) && $error_edit) {
echo "<p class=\"error\">$error_edit</p>"; echo "<p class=\"alert alert-danger\">$error_edit</p>";
$error_edit=""; $error_edit="";
} ?> } ?>

View File

@ -3,7 +3,7 @@
$Id: adm_edit.php,v 1.13 2006/01/24 05:03:30 joe Exp $ $Id: adm_edit.php,v 1.13 2006/01/24 05:03:30 joe Exp $
---------------------------------------------------------------------- ----------------------------------------------------------------------
AlternC - Web Hosting System AlternC - Web Hosting System
Copyright (C) 2006 Le réseau Koumbit Inc. Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
http://koumbit.org/ http://koumbit.org/
Copyright (C) 2002 by the AlternC Development Team. Copyright (C) 2002 by the AlternC Development Team.
http://alternc.org/ http://alternc.org/
@ -59,7 +59,7 @@ if (!$r=$admin->get($uid)) {
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<form method="post" action="adm_doedit.php" name="main" id="main"> <form method="post" action="adm_doedit.php" name="main" id="main">

View File

@ -52,7 +52,7 @@ if ( !empty($submit) ) {
} }
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -83,7 +83,7 @@ if ($pattern && $pattern_type) {
<?php <?php
if ( !empty($error) ) { if ( !empty($error) ) {
echo '<p class="error">' , $error, '</p>'; echo '<p class="alert alert-danger">' , $error, '</p>';
} }
?> ?>
@ -115,7 +115,7 @@ if($show != 'all') {
}// END ($subadmin==1 || $cuid==2000) }// END ($subadmin==1 || $cuid==2000)
if (!is_array($r) || empty($r) ) { if (!is_array($r) || empty($r) ) {
echo '<p class="error">'._("No account defined for now").'</p>'; echo '<p class="alert alert-danger">'._("No account defined for now").'</p>';
include('foot.php'); include('foot.php');
} }
?> ?>

View File

@ -119,7 +119,7 @@ include_once("head.php");
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
include_once("foot.php"); include_once("foot.php");
?> ?>

View File

@ -62,7 +62,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
$c=$mail->enum_slave_account(); $c=$mail->enum_slave_account();

View File

@ -42,7 +42,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit; exit;
} }

View File

@ -51,7 +51,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
@ -60,7 +60,7 @@ $c=$admin->listPasswordPolicies();
if (isset($doedit) && $doedit) { if (isset($doedit) && $doedit) {
if (!$c[$doedit]) { if (!$c[$doedit]) {
echo "<p class=\"error\">"._("Policy not found")."</p>"; echo "<p class=\"alert alert-danger\">"._("Policy not found")."</p>";
} else { } else {
// Change it ;) // Change it ;)
if ($admin->editPolicy($doedit,$minsize,$maxsize,$classcount,$allowlogin)) { if ($admin->editPolicy($doedit,$minsize,$maxsize,$classcount,$allowlogin)) {
@ -68,14 +68,14 @@ if (isset($doedit) && $doedit) {
unset($edit); unset($edit);
$c=$admin->listPasswordPolicies(); $c=$admin->listPasswordPolicies();
} else { } else {
echo "<p class=\"error\">"._("Cannot edit the policy, an error occurred")."</p>"; echo "<p class=\"alert alert-danger\">"._("Cannot edit the policy, an error occurred")."</p>";
} }
} }
} }
if (!empty($edit)) { if (!empty($edit)) {
if (!$c[$edit]) { if (!$c[$edit]) {
echo "<p class=\"error\">"._("Policy not found")."</p>"; echo "<p class=\"alert alert-danger\">"._("Policy not found")."</p>";
} else { } else {
?> ?>

View File

@ -57,7 +57,7 @@ $mem->unsu();
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -76,7 +76,7 @@ if ($newip) {
include_once("head.php"); include_once("head.php");
if (!empty($error)) { if (!empty($error)) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -58,7 +58,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
$c=$admin->listtld(); $c=$admin->listtld();

View File

@ -48,7 +48,7 @@ include_once ("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }

View File

@ -54,7 +54,7 @@ include_once("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<h3><?php __("Edit a TLD"); ?></h3> <h3><?php __("Edit a TLD"); ?></h3>

View File

@ -70,7 +70,7 @@ include_once("head.php");
?> ?>
<p> <p>
<?php if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; ?> <?php if (isset($error) && $error) echo "<p class=\"alert alert-danger\">$error</p>"; ?>
<h3><?php echo _("File editing")." <code>$R/<b>$editfile</b></code><br />"; ?></h3> <h3><?php echo _("File editing")." <code>$R/<b>$editfile</b></code><br />"; ?></h3>
</p> </p>
<form action="bro_editor.php" method="post"><br /> <form action="bro_editor.php" method="post"><br />
@ -82,7 +82,7 @@ include_once("head.php");
echo $content; echo $content;
} }
?></textarea> ?></textarea>
<?php if (!empty($error)) echo "<p class=\"error\">".$error."</p>"; ?> <?php if (!empty($error)) echo "<p class=\"alert alert-danger\">".$error."</p>"; ?>
<input type="hidden" name="editfile" value="<?php echo str_replace("\"","&quot;",$editfile); ?>" /> <input type="hidden" name="editfile" value="<?php echo str_replace("\"","&quot;",$editfile); ?>" />
<input type="hidden" name="R" value="<?php echo str_replace("\"","&quot;",$R); ?>" /> <input type="hidden" name="R" value="<?php echo str_replace("\"","&quot;",$R); ?>" />

View File

@ -25,7 +25,7 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag, Remi Original Author of file: Benjamin Sonntag, Remi
Purpose of file: Online file Browser of AlternC Purpose of file: Online file Browser of AlternC
TODO : Voir ??? + Déplacer / Copier TODO : Voir ??? + D<EFBFBD>placer / Copier
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
@ -62,13 +62,13 @@ $R=$bro->convertabsolute($R,1);
// on fait ? // on fait ?
if (!empty($formu) && $formu) { if (!empty($formu) && $formu) {
switch ($formu) { switch ($formu) {
case 1: // Créer le répertoire $R.$nomfich case 1: // Cr<EFBFBD>er le r<>pertoire $R.$nomfich
if (!$bro->CreateDir($R,$nomfich)) { if (!$bro->CreateDir($R,$nomfich)) {
$error = $err->errstr(); $error = $err->errstr();
} }
$p=$bro->GetPrefs(); $p=$bro->GetPrefs();
break; break;
case 6: // Créer le fichier $R.$nomfich case 6: // Cr<EFBFBD>er le fichier $R.$nomfich
if (!$bro->CreateFile($R,$nomfich)) { if (!$bro->CreateFile($R,$nomfich)) {
$error = $err->errstr(); $error = $err->errstr();
} }
@ -93,7 +93,7 @@ if (!empty($formu) && $formu) {
<input type="hidden" name="formu" value="2" /> <input type="hidden" name="formu" value="2" />
<input type="hidden" name="actdel" value="1" /> <input type="hidden" name="actdel" value="1" />
<input type="hidden" name="R" value="<?php echo ehe($R)?>" /> <input type="hidden" name="R" value="<?php echo ehe($R)?>" />
<p class="error"><?php __("WARNING: Confirm the deletion of this files"); ?></p> <p class="alert alert-warning"><?php __("WARNING: Confirm the deletion of this files"); ?></p>
<h2><?php echo $mem->user["login"].$R."/"; ?></h2> <h2><?php echo $mem->user["login"].$R."/"; ?></h2>
<ul> <ul>
<?php foreach($d as $editfile){ ?> <?php foreach($d as $editfile){ ?>
@ -143,7 +143,7 @@ if (!empty($formu) && $formu) {
if (isset($actextract) && $actextract) { if (isset($actextract) && $actextract) {
print _("extracting...")."<br />\n"; flush(); print _("extracting...")."<br />\n"; flush();
if ($bro->ExtractFile($R. '/' . $fileextract, $R)) { if ($bro->ExtractFile($R. '/' . $fileextract, $R)) {
echo "<p class=\"error\">"; echo "<p class=\"alert alert-danger\">";
print $err->errstr(); print $err->errstr();
print _("failed")."<br />\n"; print _("failed")."<br />\n";
echo "</p>"; echo "</p>";
@ -167,12 +167,12 @@ if (isset($actextract) && $actextract) {
/* Creation de la liste des fichiers courants */ /* Creation de la liste des fichiers courants */
$c=$bro->filelist($R, $showdirsize ); $c=$bro->filelist($R, $showdirsize );
if ($c===false) { if ($c===false) {
echo "<p class=\"error\">".$err->errstr()."</p>"; echo "<p class=\"alert alert-danger\">".$err->errstr()."</p>";
require_once('foot.php'); require_once('foot.php');
exit; exit;
} }
if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; if (isset($error) && $error) echo "<p class=\"alert alert-danger\">$error</p>";
?> ?>
<table><tr> <table><tr>
@ -213,7 +213,7 @@ if (isset($error) && $error) echo "<p class=\"error\">$error</p>";
<tr><td valign="top"> <tr><td valign="top">
<?php <?php
/* Renommer / Copier / Déplacer les fichiers : */ /* Renommer / Copier / D<EFBFBD>placer les fichiers : */
if (isset($formu) && $formu==2 && isset($actrename) && $actrename && count($d)) { if (isset($formu) && $formu==2 && isset($actrename) && $actrename && count($d)) {
echo "<table cellpadding=\"6\">\n"; echo "<table cellpadding=\"6\">\n";
echo "<form action=\"bro_main.php\" method=\"post\">\n"; echo "<form action=\"bro_main.php\" method=\"post\">\n";
@ -565,7 +565,7 @@ function actmoveto_not_empty() {
<?php <?php
} // is there any files here ? } // is there any files here ?
else { else {
echo "<p class=\"error\">"._("No files in this folder")."</p>"; echo "<p class=\"alert alert-info\">"._("No files in this folder")."</p>";
} }
?> ?>

View File

@ -50,7 +50,7 @@ if (!$quota->cancreate("dom")) { ?>
<?php <?php
exit(); exit();
} }
if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; if (isset($error) && $error) echo "<p class=\"alert alert-danger\">$error</p>";
?> ?>
<form method="post" action="dom_doadd.php" id="main"> <form method="post" action="dom_doadd.php" id="main">
<p> <p>

View File

@ -39,12 +39,12 @@ getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_domain_all($domain)) { if (!$r=$dom->get_domain_all($domain)) {
$error=$err->errstr(); $error=$err->errstr();
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include('foot.php'); include('foot.php');
die(); die();
} }
if (isset($error) && $error ) { if (isset($error) && $error ) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
$dom->unlock(); $dom->unlock();

View File

@ -51,7 +51,7 @@ if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($r['name'],$r['name'].".").$r['domain']); ?> : </h3> <h3><?php printf(_("Deleting subdomain %s"),"http://".ife($r['name'],$r['name'].".").$r['domain']); ?> : </h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -66,14 +66,14 @@ $dom->unlock();
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} else { } else {
$t = time(); $t = time();
// XXX: we assume the cron job is at every 5 minutes // XXX: we assume the cron job is at every 5 minutes
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); $error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
echo "<p class=\"error\">".$error."</p>"; echo "<p class=\"alert alert-info\">".$error."</p>";
} }
?> ?>
<p><span class="ina"><a href="dom_edit.php?domain=<?php echo urlencode($r['domain']) ?>"><?php __("Click here to continue"); ?></a></span></p> <p><span class="ina"><a href="dom_edit.php?domain=<?php echo urlencode($r['domain']) ?>"><?php __("Click here to continue"); ?></a></span></p>

View File

@ -56,7 +56,7 @@ echo "<h3>";
__("Editing subdomain"); __("Editing subdomain");
echo " http://"; ecif($r['name'],$r['name']."."); echo $r['domain']."</h3>"; echo " http://"; ecif($r['name'],$r['name']."."); echo $r['domain']."</h3>";
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -43,7 +43,7 @@ getFields($fields);
if ($pass != $passconf) { if ($pass != $passconf) {
$error = _("Passwords do not match"); $error = _("Passwords do not match");
include_once("head.php"); include_once("head.php");
echo "<h3>"._("Create a FTP account")."</h3><p class=\"error\">$error</p>"; echo "<h3>"._("Create a FTP account")."</h3><p class=\"alert alert-danger\">$error</p>";
include("foot.php"); include("foot.php");
exit(); exit();
} }

View File

@ -42,7 +42,7 @@ if ( !isset($is_include) ) {
if (!$id && !$create) { if (!$id && !$create) {
$error=_("Neither a creation nor a edition"); $error=_("Neither a creation nor a edition");
echo "<h3>"._("Create a FTP account")."</h3>"; echo "<h3>"._("Create a FTP account")."</h3>";
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }
@ -60,7 +60,7 @@ if (!$id && $create) { //creation
?> ?>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<form method="post" action="ftp_doedit.php" name="main" id="main"> <form method="post" action="ftp_doedit.php" name="main" id="main">

View File

@ -55,13 +55,13 @@ if (file_exists("styles/style-custom.css") ) {
<? <?
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) { if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
echo "<div align=center><p class='error'>"; echo "<div align=center><p class='alert alert-info'>";
__("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>."); __("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>.");
if ($oldid == 2000) echo ' '._("You can also <a href='adm_update_domains.php'>apply changes</a>."); // Yes, hardcoded uid. We will rewrite permissions another day if ($oldid == 2000) echo ' '._("You can also <a href='adm_update_domains.php'>apply changes</a>."); // Yes, hardcoded uid. We will rewrite permissions another day
echo "</p></div>"; echo "</p></div>";
} }
if ( panel_islocked() ) { if ( panel_islocked() ) {
echo "<div align=center><p class='error'>"; echo "<div align=center><p class='alert alert-warning'>";
__("Panel is locked! No one can login!"); __("Panel is locked! No one can login!");
echo "</p></div>"; echo "</p></div>";
} }

View File

@ -44,7 +44,7 @@ getFields($fields);
</p> </p>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit; exit;
} }

View File

@ -40,7 +40,7 @@ getFields($fields);
<h3><?php printf(_("Adding a username in %s"),$dir); ?></h3> <h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -54,7 +54,7 @@ if (!$hta->change_pass($user,$newpass,$dir)) {
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
else { else {
echo "<p>".sprintf(_("The password of the user %s has been successfully changed"),$user)."</p>"; echo "<p>".sprintf(_("The password of the user %s has been successfully changed"),$user)."</p>";

View File

@ -50,7 +50,7 @@ if (!$dir) {
<br /> <br />
<?php <?php
if (!count($r)) { if (!count($r)) {
echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>"; echo "<p class=\"alert alert-warning\">".sprintf(_("No authorized user in %s"),$dir)."</p>";
} else { } else {
reset($r); reset($r);
?> ?>

View File

@ -41,7 +41,7 @@ getFields($fields);
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<?php if (!empty($error) ) { echo "<p class=\"error\">$error</p>"; } ?> <?php if (!empty($error) ) { echo "<p class=\"alert alert-danger\">$error</p>"; } ?>
<form method="post" action="hta_doedituser.php" name="main" id="main"> <form method="post" action="hta_doedituser.php" name="main" id="main">
<input type="hidden" name="dir" value="<?php echo $dir ?>"> <input type="hidden" name="dir" value="<?php echo $dir ?>">

View File

@ -42,7 +42,7 @@ if (!$r=$hta->ListDir()) {
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
if (!is_array($r)) { if (!is_array($r)) {

View File

@ -67,14 +67,14 @@ if (file_exists("styles/style-custom.css") ) {
<p id="logo"> <img src="<?php echo $logo; ?>" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /> <p id="logo"> <img src="<?php echo $logo; ?>" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" />
</p> </p>
<p>&nbsp;</p> <p>&nbsp;</p>
<?php if (isset($error) && $error) echo "<div class='error'>$error</div>"; ?> <?php if (isset($error) && $error) echo "<div class='alert alert-danger'>$error</div>"; ?>
<br/> <br/>
<?php <?php
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token']; if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token'];
/* /*
if (!$_SERVER[HTTPS]) { if (!$_SERVER[HTTPS]) {
echo "<h4>ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*<br/> echo "<h4>ATTENTION : vous allez acc<EFBFBD>der <20> votre panel en mode *non s<>curis<69>*<br/>
<a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode sécurisé</a></h4>"; <a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode s<EFBFBD>curis<EFBFBD></a></h4>";
} }
*/ */
?> ?>

View File

@ -37,10 +37,10 @@ $list=$log->list_logs_directory_all($log->get_logs_directory());
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
if(!$list || empty($list['dir'])){ if(!$list || empty($list['dir'])){
echo "<p class=\"error\">"._("You have no web logs to list at the moment.")."</p>"; echo "<p class=\"alert alert-danger\">"._("You have no web logs to list at the moment.")."</p>";
include_once('foot.php'); include_once('foot.php');
exit; exit;
} }

View File

@ -57,7 +57,7 @@ if (!$res=$mail->get_details($mail_id)) {
<?php <?php
if (isset($error)) { if (isset($error)) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>

View File

@ -57,10 +57,10 @@ if ($domain=$dom->get_domain_byid($domain_id)) {
} }
if ($fatal) { if ($fatal) {
echo "<div class=\"error\">$error</div>"; echo "<div class=\"alert alert-danger\">$error</div>";
} else { } else {
if (!empty($error)) { echo "<p class='error'>$error</p>"; } if (!empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; }
?> ?>
<table><tr> <table><tr>

View File

@ -34,7 +34,7 @@ $fields = array (
getFields($fields); getFields($fields);
if (is_null($domain_id)) { if (is_null($domain_id)) {
echo "<p class=\"error\">"; echo "<p alert alert-danger\>";
__("Problem with the domain"); __("Problem with the domain");
echo"</p>"; echo"</p>";
include_once("foot.php"); include_once("foot.php");
@ -66,7 +66,7 @@ $catch=$mail->catchall_getinfos($domain_id);
<?php <?php
if (isset($error) && !empty($error) ) { if (isset($error) && !empty($error) ) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
__("You can choose what to do with emails sent to unexisting address of this domain"); __("You can choose what to do with emails sent to unexisting address of this domain");

View File

@ -42,7 +42,7 @@ if ($mem->user["lastfail"]) {
printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]); printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]);
} }
if (!empty($error) ) { echo "<p class='error'>$error</p>";$error=''; } if (!empty($error) ) { echo "<p class='alert alert-danger'>$error</p>";$error=''; }
$feed_url = variable_get('rss_feed'); $feed_url = variable_get('rss_feed');
if (!empty($feed_url)) { if (!empty($feed_url)) {

View File

@ -46,7 +46,7 @@ include_once("head.php");
<h3><?php __("Admin preferences"); ?></h3> <h3><?php __("Admin preferences"); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
?> ?>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -44,7 +44,7 @@ include_once("head.php");
<h3><?php __("Change the email of the account"); ?></h3> <h3><?php __("Change the email of the account"); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -42,7 +42,7 @@ getFields($fields);
<h3><?php __("Change the email of the account"); ?></h3> <h3><?php __("Change the email of the account"); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -47,7 +47,7 @@ include_once("head.php");
<h3><?php __("Change the email of the account"); ?></h3> <h3><?php __("Change the email of the account"); ?></h3>
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();
} }

View File

@ -41,7 +41,7 @@ $fields = array (
getFields($fields); getFields($fields);
if (empty($account_name)) { if (empty($account_name)) {
echo "<p class=\"error\">"._("Error : missing arguments.")."</p>"; echo "<p class=\"alert alert-danger\">"._("Error : missing arguments.")."</p>";
include_once("foot.php"); include_once("foot.php");
exit; exit;
} }
@ -56,7 +56,7 @@ if (!$infos)
{ {
$error = $err->errstr(); $error = $err->errstr();
//if (isset($error) && $error) { //if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
if (isset($fatal) && $fatal) { if (isset($fatal) && $fatal) {
include_once("foot.php"); include_once("foot.php");
exit(); exit();

View File

@ -69,7 +69,7 @@ if ($right !== FALSE) {
/* If something went wrong, display error message, but continue with the page rendering */ /* If something went wrong, display error message, but continue with the page rendering */
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
/* Does current user still has quota ? */ /* Does current user still has quota ? */

View File

@ -98,7 +98,7 @@ else
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
exit; exit;
} }
?> ?>

View File

@ -31,7 +31,7 @@ require_once("../class/config.php");
include_once("head.php"); include_once("head.php");
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
//Mail creation. //Mail creation.

View File

@ -37,7 +37,7 @@ include_once("head.php");
<?php <?php
$q=$quota->getquota(); $q=$quota->getquota();
if (!is_array($q) || empty($q) ) { if (!is_array($q) || empty($q) ) {
echo "<p class=\"error\">"._("No quotas for this account, or quotas currently unavailable!")."</p>"; echo "<p class=\"alert alert-danger\">"._("No quotas for this account, or quotas currently unavailable!")."</p>";
include_once("foot.php"); include_once("foot.php");
die(); die();
} }

View File

@ -22,7 +22,7 @@ include_once ("head.php");
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-warning\">$error</p>";
} }
?> ?>
<p> <p>
@ -51,7 +51,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")."&nbsp;<a hre
</p> </p>
<?php if ($mode == 4) { <?php if ($mode == 4) {
// Mode : affichage des données globales // Mode : affichage des donn<EFBFBD>es globales
if ($cuid != 2000) if ($cuid != 2000)
{ {

View File

@ -37,7 +37,7 @@ include_once("head.php");
<?php <?php
if ( ! variable_get('sql_allow_users_backups') ) { if ( ! variable_get('sql_allow_users_backups') ) {
echo "<p class=\"error\">"._("You aren't allowed to access this page. Contact your administrator if you want to.")."</p>"; echo "<p class=\"alert alert-danger\">"._("You aren't allowed to access this page. Contact your administrator if you want to.")."</p>";
include_once('foot.php'); include_once('foot.php');
exit; exit;
} }
@ -57,7 +57,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
} }
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
} }
if (is_array($r)) { if (is_array($r)) {

View File

@ -31,7 +31,7 @@ require_once("../class/config.php");
if ( ! variable_get('sql_allow_users_backups') ) { if ( ! variable_get('sql_allow_users_backups') ) {
include_once('head.php'); include_once('head.php');
echo "<p class=\"error\">"._("You aren't allowed to access this page. Contact your administrator if you want to.")."</p>"; echo "<p class=\"alert alert-warning\">"._("You aren't allowed to access this page. Contact your administrator if you want to.")."</p>";
include_once('foot.php'); include_once('foot.php');
exit; exit;
} }

View File

@ -47,7 +47,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
$error=$err->errstr(); $error=$err->errstr();
} }
if (! $r["enabled"]) { if (! $r["enabled"]) {
echo "<p class=\"error\">"._("You currently have no database defined")."</p>"; echo "<p class=\"alert alert-danger\">"._("You currently have no database defined")."</p>";
include_once("foot.php"); include_once("foot.php");
die(); die();
} }
@ -63,7 +63,7 @@ if (!$mysql->restore($restfile,true,$id)) {
$error=_("Your database has been restored, check out the previous text for error messages."); $error=_("Your database has been restored, check out the previous text for error messages.");
} // if mysql->restore } // if mysql->restore
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
?> ?>
</p> </p>

View File

@ -46,7 +46,7 @@ if (!$r=$mysql->get_dblist()) {
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
} }
$r=$mysql->get_defaultsparam($dbname); $r=$mysql->get_defaultsparam($dbname);
?> ?>
@ -88,7 +88,7 @@ if(isset($r['user'])){
</table> </table>
<?php <?php
if(!isset($r['user'])){ if(!isset($r['user'])){
echo "<p class=\"error\">";__("You changed the MySQL User base configuration. Please refer to your configuration");echo"</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-warning\">";__("You changed the MySQL User base configuration. Please refer to your configuration");echo"</p><p>&nbsp;</p>";
} }
?> ?>
<p><span class="ina back"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p> <p><span class="ina back"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p>

View File

@ -39,10 +39,10 @@ $r=$mysql->get_userslist();
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
if(!$r || empty($r)){ if(!$r || empty($r)){
echo "<p class=\"error\">"._("You have no sql user at the moment.")."</p>"; echo "<p class=\"alert alert-warning\">"._("You have no sql user at the moment.")."</p>";
} }
?> ?>

View File

@ -46,7 +46,7 @@ include_once("head.php");
echo '<h3>'._("SQL Admin").'</h3>'; echo '<h3>'._("SQL Admin").'</h3>';
if (!empty($error)) { if (!empty($error)) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
} }
include_once("foot.php"); include_once("foot.php");

View File

@ -46,7 +46,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
<br /> <br />
<?php <?php
if (!empty($error)) { if (!empty($error)) {
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
} }
if (!is_array($r)) { if (!is_array($r)) {

View File

@ -43,7 +43,7 @@ getFields($fields);
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
if (isset($fatal) && $fatal) { if (isset($fatal) && $fatal) {
?> ?>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -39,7 +39,7 @@ $rdb=$mysql->get_dblist();
<br /> <br />
<?php <?php
if (isset($error) && $error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
} }
if($r){ // if there is some userlist if($r){ // if there is some userlist
?> ?>

View File

@ -45,7 +45,7 @@ if (!$r) {
} }
if (! empty($error) ) { if (! empty($error) ) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"alert alert-danger\">$error</p>";
require_once('foot.php'); require_once('foot.php');
die(); die();
} }

View File

@ -45,7 +45,7 @@ if (!$r) {
} }
if (!empty($error)) { if (!empty($error)) {
echo "<p class=\"error\">$error</p><p>&nbsp;</p>"; echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
require_once('foot.php'); require_once('foot.php');
} }

View File

@ -29,7 +29,7 @@
*/ */
@require_once("../class/config.php"); @require_once("../class/config.php");
if ((@include_once 'Image/Graph.php') === FALSE) { if ((@include_once 'Image/Graph.php') === FALSE) {
echo "<p class=\"error\">". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear install --alldeps Image_Graph-devel' to see the graph.")."</p>"; echo "<p class=\"alert alert-warning\">". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear install --alldeps Image_Graph-devel' to see the graph.")."</p>";
exit(0); exit(0);
} }