[enh] Converts more alert messages
This commit is contained in:
parent
6fe0992ba1
commit
335d80fee8
|
@ -3,7 +3,7 @@
|
|||
$Id: adm_add.php,v 1.9 2006/01/24 05:03:30 joe Exp $
|
||||
----------------------------------------------------------------------
|
||||
AlternC - Web Hosting System
|
||||
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||
Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
|
||||
http://koumbit.org/
|
||||
Copyright (C) 2002 by the AlternC Development Team.
|
||||
http://alternc.org/
|
||||
|
@ -56,7 +56,7 @@ getFields($fields);
|
|||
<br />
|
||||
<?php
|
||||
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">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id: adm_defquotas.php,v 1.4 2006/01/24 05:03:30 joe Exp $
|
||||
----------------------------------------------------------------------
|
||||
AlternC - Web Hosting System
|
||||
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||
Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
|
||||
http://koumbit.org/
|
||||
Copyright (C) 2002 by the AlternC Development Team.
|
||||
http://alternc.org/
|
||||
|
@ -49,13 +49,13 @@ include_once ("head.php");
|
|||
<?php
|
||||
if ($synchronise==true) {
|
||||
$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();
|
||||
|
||||
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">
|
||||
|
|
|
@ -42,7 +42,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -69,7 +69,7 @@ if($action == "add") {
|
|||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="type" value="<?php echo $type ?>" />
|
||||
<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>
|
||||
<blockquote>
|
||||
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />
|
||||
|
|
|
@ -40,7 +40,7 @@ include_once ("head.php");
|
|||
<h3><?php __("Manage installed domains"); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
|
|
|
@ -24,7 +24,7 @@ if (!$admin->enabled) {
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -62,7 +62,7 @@ if (! $d=$dom->domains_type_get($name)) {
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error_edit) && $error_edit) {
|
||||
echo "<p class=\"error\">$error_edit</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error_edit</p>";
|
||||
$error_edit="";
|
||||
|
||||
} ?>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id: adm_edit.php,v 1.13 2006/01/24 05:03:30 joe Exp $
|
||||
----------------------------------------------------------------------
|
||||
AlternC - Web Hosting System
|
||||
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||
Copyright (C) 2006 Le r<EFBFBD>seau Koumbit Inc.
|
||||
http://koumbit.org/
|
||||
Copyright (C) 2002 by the AlternC Development Team.
|
||||
http://alternc.org/
|
||||
|
@ -59,7 +59,7 @@ if (!$r=$admin->get($uid)) {
|
|||
<br />
|
||||
<?php
|
||||
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">
|
||||
|
|
|
@ -52,7 +52,7 @@ if ( !empty($submit) ) {
|
|||
}
|
||||
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -83,7 +83,7 @@ if ($pattern && $pattern_type) {
|
|||
|
||||
<?php
|
||||
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)
|
||||
|
||||
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');
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -119,7 +119,7 @@ include_once("head.php");
|
|||
<?php
|
||||
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
include_once("foot.php");
|
||||
?>
|
||||
|
|
|
@ -62,7 +62,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
$c=$mail->enum_slave_account();
|
||||
|
|
|
@ -42,7 +42,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
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 (!$c[$doedit]) {
|
||||
echo "<p class=\"error\">"._("Policy not found")."</p>";
|
||||
echo "<p class=\"alert alert-danger\">"._("Policy not found")."</p>";
|
||||
} else {
|
||||
// Change it ;)
|
||||
if ($admin->editPolicy($doedit,$minsize,$maxsize,$classcount,$allowlogin)) {
|
||||
|
@ -68,14 +68,14 @@ if (isset($doedit) && $doedit) {
|
|||
unset($edit);
|
||||
$c=$admin->listPasswordPolicies();
|
||||
} 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 (!$c[$edit]) {
|
||||
echo "<p class=\"error\">"._("Policy not found")."</p>";
|
||||
echo "<p class=\"alert alert-danger\">"._("Policy not found")."</p>";
|
||||
} else {
|
||||
?>
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ $mem->unsu();
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ if ($newip) {
|
|||
include_once("head.php");
|
||||
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -58,7 +58,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
$c=$admin->listtld();
|
||||
|
|
|
@ -48,7 +48,7 @@ include_once ("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
?>
|
||||
<h3><?php __("Edit a TLD"); ?></h3>
|
||||
|
|
|
@ -70,7 +70,7 @@ include_once("head.php");
|
|||
|
||||
?>
|
||||
<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>
|
||||
</p>
|
||||
<form action="bro_editor.php" method="post"><br />
|
||||
|
@ -82,7 +82,7 @@ include_once("head.php");
|
|||
echo $content;
|
||||
}
|
||||
?></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("\"",""",$editfile); ?>" />
|
||||
<input type="hidden" name="R" value="<?php echo str_replace("\"",""",$R); ?>" />
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
----------------------------------------------------------------------
|
||||
Original Author of file: Benjamin Sonntag, Remi
|
||||
Purpose of file: Online file Browser of AlternC
|
||||
TODO : Voir ??? + Déplacer / Copier
|
||||
TODO : Voir ??? + D<EFBFBD>placer / Copier
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
|
@ -62,13 +62,13 @@ $R=$bro->convertabsolute($R,1);
|
|||
// on fait ?
|
||||
if (!empty($formu) && $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)) {
|
||||
$error = $err->errstr();
|
||||
}
|
||||
$p=$bro->GetPrefs();
|
||||
break;
|
||||
case 6: // Créer le fichier $R.$nomfich
|
||||
case 6: // Cr<EFBFBD>er le fichier $R.$nomfich
|
||||
if (!$bro->CreateFile($R,$nomfich)) {
|
||||
$error = $err->errstr();
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ if (!empty($formu) && $formu) {
|
|||
<input type="hidden" name="formu" value="2" />
|
||||
<input type="hidden" name="actdel" value="1" />
|
||||
<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>
|
||||
<ul>
|
||||
<?php foreach($d as $editfile){ ?>
|
||||
|
@ -143,7 +143,7 @@ if (!empty($formu) && $formu) {
|
|||
if (isset($actextract) && $actextract) {
|
||||
print _("extracting...")."<br />\n"; flush();
|
||||
if ($bro->ExtractFile($R. '/' . $fileextract, $R)) {
|
||||
echo "<p class=\"error\">";
|
||||
echo "<p class=\"alert alert-danger\">";
|
||||
print $err->errstr();
|
||||
print _("failed")."<br />\n";
|
||||
echo "</p>";
|
||||
|
@ -167,12 +167,12 @@ if (isset($actextract) && $actextract) {
|
|||
/* Creation de la liste des fichiers courants */
|
||||
$c=$bro->filelist($R, $showdirsize );
|
||||
if ($c===false) {
|
||||
echo "<p class=\"error\">".$err->errstr()."</p>";
|
||||
echo "<p class=\"alert alert-danger\">".$err->errstr()."</p>";
|
||||
require_once('foot.php');
|
||||
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>
|
||||
|
@ -213,7 +213,7 @@ if (isset($error) && $error) echo "<p class=\"error\">$error</p>";
|
|||
<tr><td valign="top">
|
||||
|
||||
<?php
|
||||
/* Renommer / Copier / Déplacer les fichiers : */
|
||||
/* Renommer / Copier / D<EFBFBD>placer les fichiers : */
|
||||
if (isset($formu) && $formu==2 && isset($actrename) && $actrename && count($d)) {
|
||||
echo "<table cellpadding=\"6\">\n";
|
||||
echo "<form action=\"bro_main.php\" method=\"post\">\n";
|
||||
|
@ -565,7 +565,7 @@ function actmoveto_not_empty() {
|
|||
<?php
|
||||
} // is there any files here ?
|
||||
else {
|
||||
echo "<p class=\"error\">"._("No files in this folder")."</p>";
|
||||
echo "<p class=\"alert alert-info\">"._("No files in this folder")."</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ if (!$quota->cancreate("dom")) { ?>
|
|||
<?php
|
||||
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">
|
||||
<p>
|
||||
|
|
|
@ -39,12 +39,12 @@ getFields($fields);
|
|||
$dom->lock();
|
||||
if (!$r=$dom->get_domain_all($domain)) {
|
||||
$error=$err->errstr();
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include('foot.php');
|
||||
die();
|
||||
}
|
||||
if (isset($error) && $error ) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
$dom->unlock();
|
||||
|
||||
|
|
|
@ -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>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -66,14 +66,14 @@ $dom->unlock();
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
} else {
|
||||
$t = time();
|
||||
// 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))));
|
||||
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>
|
||||
|
|
|
@ -56,7 +56,7 @@ echo "<h3>";
|
|||
__("Editing subdomain");
|
||||
echo " http://"; ecif($r['name'],$r['name']."."); echo $r['domain']."</h3>";
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ getFields($fields);
|
|||
if ($pass != $passconf) {
|
||||
$error = _("Passwords do not match");
|
||||
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");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ if ( !isset($is_include) ) {
|
|||
if (!$id && !$create) {
|
||||
$error=_("Neither a creation nor a edition");
|
||||
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");
|
||||
exit();
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ if (!$id && $create) { //creation
|
|||
?>
|
||||
<?php
|
||||
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">
|
||||
|
|
|
@ -55,13 +55,13 @@ if (file_exists("styles/style-custom.css") ) {
|
|||
<?
|
||||
|
||||
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>.");
|
||||
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>";
|
||||
}
|
||||
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!");
|
||||
echo "</p></div>";
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ getFields($fields);
|
|||
</p>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ getFields($fields);
|
|||
<h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ if (!$hta->change_pass($user,$newpass,$dir)) {
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
else {
|
||||
echo "<p>".sprintf(_("The password of the user %s has been successfully changed"),$user)."</p>";
|
||||
|
|
|
@ -50,7 +50,7 @@ if (!$dir) {
|
|||
<br />
|
||||
<?php
|
||||
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 {
|
||||
reset($r);
|
||||
?>
|
||||
|
|
|
@ -41,7 +41,7 @@ getFields($fields);
|
|||
<hr id="topbar"/>
|
||||
<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">
|
||||
<input type="hidden" name="dir" value="<?php echo $dir ?>">
|
||||
|
|
|
@ -42,7 +42,7 @@ if (!$r=$hta->ListDir()) {
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
if (!is_array($r)) {
|
||||
|
|
|
@ -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>
|
||||
<p> </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/>
|
||||
<?php
|
||||
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token'];
|
||||
/*
|
||||
if (!$_SERVER[HTTPS]) {
|
||||
echo "<h4>ATTENTION : vous allez accéder à votre panel en mode *non sécurisé*<br/>
|
||||
<a href=\"https://".$_SERVER["HTTP_HOST"]."/\">Cliquez ici pour passer en mode sécurisé</a></h4>";
|
||||
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<EFBFBD>curis<EFBFBD></a></h4>";
|
||||
}
|
||||
*/
|
||||
?>
|
||||
|
|
|
@ -37,10 +37,10 @@ $list=$log->list_logs_directory_all($log->get_logs_directory());
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
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');
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ if (!$res=$mail->get_details($mail_id)) {
|
|||
|
||||
<?php
|
||||
if (isset($error)) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -57,10 +57,10 @@ if ($domain=$dom->get_domain_byid($domain_id)) {
|
|||
}
|
||||
|
||||
if ($fatal) {
|
||||
echo "<div class=\"error\">$error</div>";
|
||||
echo "<div class=\"alert alert-danger\">$error</div>";
|
||||
} else {
|
||||
|
||||
if (!empty($error)) { echo "<p class='error'>$error</p>"; }
|
||||
if (!empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; }
|
||||
?>
|
||||
|
||||
<table><tr>
|
||||
|
|
|
@ -34,7 +34,7 @@ $fields = array (
|
|||
getFields($fields);
|
||||
|
||||
if (is_null($domain_id)) {
|
||||
echo "<p class=\"error\">";
|
||||
echo "<p alert alert-danger\>";
|
||||
__("Problem with the domain");
|
||||
echo"</p>";
|
||||
include_once("foot.php");
|
||||
|
@ -66,7 +66,7 @@ $catch=$mail->catchall_getinfos($domain_id);
|
|||
|
||||
<?php
|
||||
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");
|
||||
|
|
|
@ -42,7 +42,7 @@ if ($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');
|
||||
if (!empty($feed_url)) {
|
||||
|
|
|
@ -46,7 +46,7 @@ include_once("head.php");
|
|||
<h3><?php __("Admin preferences"); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
?>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -44,7 +44,7 @@ include_once("head.php");
|
|||
<h3><?php __("Change the email of the account"); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ getFields($fields);
|
|||
<h3><?php __("Change the email of the account"); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ include_once("head.php");
|
|||
<h3><?php __("Change the email of the account"); ?></h3>
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ $fields = array (
|
|||
getFields($fields);
|
||||
|
||||
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");
|
||||
exit;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ if (!$infos)
|
|||
{
|
||||
$error = $err->errstr();
|
||||
//if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
if (isset($fatal) && $fatal) {
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
|
|
|
@ -69,7 +69,7 @@ if ($right !== FALSE) {
|
|||
|
||||
/* If something went wrong, display error message, but continue with the page rendering */
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
/* Does current user still has quota ? */
|
||||
|
|
|
@ -98,7 +98,7 @@ else
|
|||
|
||||
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -31,7 +31,7 @@ require_once("../class/config.php");
|
|||
include_once("head.php");
|
||||
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
|
||||
//Mail creation.
|
||||
|
|
|
@ -37,7 +37,7 @@ include_once("head.php");
|
|||
<?php
|
||||
$q=$quota->getquota();
|
||||
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");
|
||||
die();
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ include_once ("head.php");
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-warning\">$error</p>";
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
|
@ -51,7 +51,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")." <a hre
|
|||
</p>
|
||||
|
||||
<?php if ($mode == 4) {
|
||||
// Mode : affichage des données globales
|
||||
// Mode : affichage des donn<EFBFBD>es globales
|
||||
|
||||
if ($cuid != 2000)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ include_once("head.php");
|
|||
<?php
|
||||
|
||||
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');
|
||||
exit;
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
|
|||
}
|
||||
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
}
|
||||
|
||||
if (is_array($r)) {
|
||||
|
|
|
@ -31,7 +31,7 @@ require_once("../class/config.php");
|
|||
|
||||
if ( ! variable_get('sql_allow_users_backups') ) {
|
||||
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');
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
|
|||
$error=$err->errstr();
|
||||
}
|
||||
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");
|
||||
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.");
|
||||
} // if mysql->restore
|
||||
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
|
||||
?>
|
||||
</p>
|
||||
|
|
|
@ -46,7 +46,7 @@ if (!$r=$mysql->get_dblist()) {
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
}
|
||||
$r=$mysql->get_defaultsparam($dbname);
|
||||
?>
|
||||
|
@ -88,7 +88,7 @@ if(isset($r['user'])){
|
|||
</table>
|
||||
<?php
|
||||
if(!isset($r['user'])){
|
||||
echo "<p class=\"error\">";__("You changed the MySQL User base configuration. Please refer to your configuration");echo"</p><p> </p>";
|
||||
echo "<p class=\"alert alert-warning\">";__("You changed the MySQL User base configuration. Please refer to your configuration");echo"</p><p> </p>";
|
||||
}
|
||||
?>
|
||||
<p><span class="ina back"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p>
|
||||
|
|
|
@ -39,10 +39,10 @@ $r=$mysql->get_userslist();
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
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>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ include_once("head.php");
|
|||
echo '<h3>'._("SQL Admin").'</h3>';
|
||||
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
}
|
||||
include_once("foot.php");
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ if (!$r=$mysql->get_mysql_details($id)) {
|
|||
<br />
|
||||
<?php
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
}
|
||||
|
||||
if (!is_array($r)) {
|
||||
|
|
|
@ -43,7 +43,7 @@ getFields($fields);
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
if (isset($fatal) && $fatal) {
|
||||
?>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -39,7 +39,7 @@ $rdb=$mysql->get_dblist();
|
|||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
}
|
||||
if($r){ // if there is some userlist
|
||||
?>
|
||||
|
|
|
@ -45,7 +45,7 @@ if (!$r) {
|
|||
}
|
||||
|
||||
if (! empty($error) ) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p>";
|
||||
require_once('foot.php');
|
||||
die();
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ if (!$r) {
|
|||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
echo "<p class=\"alert alert-danger\">$error</p><p> </p>";
|
||||
require_once('foot.php');
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
@require_once("../class/config.php");
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue