~automne-team/automne/trunk

« back to all changes in this revision

Viewing changes to automne/phpMyAdmin/libraries/sqlvalidator.lib.php

  • Committer: sebastien-pauchet
  • Date: 2012-02-15 16:47:40 UTC
  • mfrom: (363.2.105 4.2)
  • Revision ID: seb@automne-cms.org-20120215164740-xrk26iafkvztwv6s
Merge stable branch 4.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 * run this: "pear install Mail_Mime Net_DIME SOAP"
23
23
 *
24
24
 * Enable the SQL Validator options in the configuration file
25
 
 * $cfg['SQLQuery']['Validate'] = TRUE;
26
 
 * $cfg['SQLValidator']['use']  = FALSE;
 
25
 * $cfg['SQLQuery']['Validate'] = true;
 
26
 * $cfg['SQLValidator']['use']  = true;
27
27
 *
28
28
 * Also set a username and password if you have a private one
29
29
 *
30
 
 * @version $Id$
31
30
 * @package phpMyAdmin
32
31
 */
33
32
if (! defined('PHPMYADMIN')) {
65
64
    if ($cfg['SQLValidator']['use']) {
66
65
        if (isset($GLOBALS['sqlvalidator_error'])
67
66
            && $GLOBALS['sqlvalidator_error']) {
68
 
            $str = sprintf($GLOBALS['strValidatorError'], '<a href="./Documentation.html#faqsqlvalidator" target="documentation">', '</a>');
 
67
            $str = sprintf(__('The SQL validator could not be initialized. Please check if you have installed the necessary PHP extensions as described in the %sdocumentation%s.'), '<a href="./Documentation.html#faqsqlvalidator" target="documentation">', '</a>');
69
68
        } else {
70
69
            // create new class instance
71
70
            $srv = new PMA_SQLValidator();