Merged revisions 3880-3882 via svnmerge from
svn+ssh://danydb@svn/svn/phpcompta/branches/rel530 ........ r3880 | danydb | 2010-12-27 12:13:37 +0100 (Mon, 27 Dec 2010) | 2 lines Improve message connx, no details in prod ........ r3881 | danydb | 2010-12-27 15:01:33 +0100 (Mon, 27 Dec 2010) | 2 lines Improve appearance captcha ........ r3882 | danydb | 2010-12-27 15:06:48 +0100 (Mon, 27 Dec 2010) | 1 line Update documentation ........
This commit is contained in:
parent
955d233f5d
commit
3b00e11181
4 changed files with 23 additions and 13 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -225,9 +225,12 @@ if ( $g_captcha == true )
|
|||
echo '</td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo td('<img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" border=1/>');
|
||||
echo td('<img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" border=1/>','colspan="2" style="width:auto;text-align:center"');
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
|
||||
echo td('<input type="text" class="input_text" name="captcha_code" size="10" maxlength="6" autocomplete="off"/>'.
|
||||
'<a href="#" onclick="document.getElementById(\'captcha\').src = \'securimage/securimage_show.php?\' + Math.random(); return false">Reload Image</a>');
|
||||
'<a href="#" onclick="document.getElementById(\'captcha\').src = \'securimage/securimage_show.php?\' + Math.random(); return false">Reload Image</a>','colspan="2" style="width:auto;text-align:center"');
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
// echo '</div>';
|
||||
|
|
|
|||
|
|
@ -75,19 +75,26 @@ class Database
|
|||
|
||||
if ( $a == false )
|
||||
{
|
||||
ob_end_clean();
|
||||
echo '<h2 class="error">Impossible de se connecter à postgreSql !</h2>';
|
||||
echo '<p>';
|
||||
echo "Vos paramètres sont incorrectes : <br>";
|
||||
echo "<br>";
|
||||
echo "base de donnée : $l_dossier<br>";
|
||||
echo "Domaine : ".domaine."<br>";
|
||||
echo "Port $port <br>";
|
||||
echo "Utilisateur : $phpcompta_user <br>";
|
||||
echo '</p>';
|
||||
if (DEBUG)
|
||||
{
|
||||
ob_end_clean();
|
||||
echo '<h2 class="error">Impossible de se connecter à postgreSql !</h2>';
|
||||
echo '<p>';
|
||||
echo "Vos paramètres sont incorrectes : <br>";
|
||||
echo "<br>";
|
||||
echo "base de donnée : $l_dossier<br>";
|
||||
echo "Domaine : ".domaine."<br>";
|
||||
echo "Port $port <br>";
|
||||
echo "Utilisateur : $phpcompta_user <br>";
|
||||
echo '</p>';
|
||||
|
||||
exit ("Connection impossible : vérifiez vos paramètres de base
|
||||
exit ("Connection impossible : vérifiez vos paramètres de base
|
||||
de données");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<h2 class="error">Erreur de connexion !</h2>';
|
||||
}
|
||||
|
||||
}
|
||||
$this->db=$a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue