Check the version of PHP. Remove the relative string from lang files.
authorsoranzo <soranzo>
Tue, 4 Jan 2005 23:49:17 +0000 (23:49 +0000)
committersoranzo <soranzo>
Tue, 4 Jan 2005 23:49:17 +0000 (23:49 +0000)
lang/english.php
lang/italian.php
lang/recoded/english.php
lang/recoded/italian.php
libraries/lib.inc.php

index eb8b36c97db661bd906e09e95e903b03607b817e..24893475ac0aa03214275c1c95cdc91c3f108ab5 100755 (executable)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.168 2004/12/01 11:11:12 soranzo Exp $
+        * $Id: english.php,v 1.169 2005/01/04 23:49:17 soranzo Exp $
         */
 
        // Language and character set
        $lang['strnoframes'] = 'You need a frames-enabled browser to use this application.';
        $lang['strbadconfig'] = 'Your config.inc.php is out of date. You will need to regenerate it from the new config.inc.php-dist.';
        $lang['strnotloaded'] = 'Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.';
-       $lang['strphpversionnotsupported'] = 'Version of PHP not supported. Please upgrade to version %s or later.';
        $lang['strpostgresqlversionnotsupported'] = 'Version of PostgreSQL not supported. Please upgrade to version %s or later.';
        $lang['strbadschema'] = 'Invalid schema specified.';
        $lang['strbadencoding'] = 'Failed to set client encoding in database.';
index 3bb938fc4da1a63a8dbd8dd9d771ae5d768ab44c..de043660a9fe78330ad4a6f4570f1266c9582ce3 100644 (file)
@@ -4,7 +4,7 @@
         * Italian language file, based on the english language file for phpPgAdmin.
         * Nicola Soranzo [nsoranzo@tiscali.it]
          *
-        * $Id: italian.php,v 1.39 2004/12/01 11:11:12 soranzo Exp $
+        * $Id: italian.php,v 1.40 2005/01/04 23:49:20 soranzo Exp $
         */
 
        // Language and character set - Lingua e set di caratteri
        $lang['strnoframes'] = 'Per usare questa applicazione è necessario usare un browser che supporti i frame.';
        $lang['strbadconfig'] = 'Il file config.inc.php è obsoleto. È necessario rigenerarlo utilizzando il nuovo file config.inc.php-dist .';
        $lang['strnotloaded'] = 'La tua installazione di PHP non supporta PostgreSQL. È necessario ricompilare PHP usando l\'opzione di configurazione --with-pgsql .';
-       $lang['strphpversionnotsupported'] = 'Versione di PHP non supportata. È necessario aggiornarlo alla versione %s o successiva.';
        $lang['strpostgresqlversionnotsupported'] = 'Versione di PostgreSQL non supportata. È necessario aggiornarlo alla versione %s o successiva.';
        $lang['strbadschema'] = 'Schema specificato non valido.';
        $lang['strbadencoding'] = 'Impostazione della codifica del client nel database fallito.';
index 7f383b0bd977316cf3b580c4ba24d3f9b08dda81..dd1a17f703723107f4d0c35dce25c842d402c2d3 100644 (file)
@@ -4,7 +4,7 @@
         * English language file for phpPgAdmin.  Use this as a basis
         * for new translations.
         *
-        * $Id: english.php,v 1.121 2004/12/01 11:11:13 soranzo Exp $
+        * $Id: english.php,v 1.122 2005/01/04 23:49:21 soranzo Exp $
         */
 
        // Language and character set
        $lang['strnoframes'] = 'You need a frames-enabled browser to use this application.';
        $lang['strbadconfig'] = 'Your config.inc.php is out of date. You will need to regenerate it from the new config.inc.php-dist.';
        $lang['strnotloaded'] = 'Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.';
-       $lang['strphpversionnotsupported'] = 'Version of PHP not supported. Please upgrade to version %s or later.';
        $lang['strpostgresqlversionnotsupported'] = 'Version of PostgreSQL not supported. Please upgrade to version %s or later.';
        $lang['strbadschema'] = 'Invalid schema specified.';
        $lang['strbadencoding'] = 'Failed to set client encoding in database.';
index b94d17752412edf699ece1bae08ab9bd1c3c2c4f..5ffdbdafdd05e41afea070ebf91ea719478d1e44 100644 (file)
@@ -4,7 +4,7 @@
         * Italian language file, based on the english language file for phpPgAdmin.
         * Nicola Soranzo [nsoranzo@tiscali.it]
          *
-        * $Id: italian.php,v 1.34 2004/12/01 11:11:13 soranzo Exp $
+        * $Id: italian.php,v 1.35 2005/01/04 23:49:38 soranzo Exp $
         */
 
        // Language and character set - Lingua e set di caratteri
        $lang['strnoframes'] = 'Per usare questa applicazione &egrave; necessario usare un browser che supporti i frame.';
        $lang['strbadconfig'] = 'Il file config.inc.php &egrave; obsoleto. &Egrave; necessario rigenerarlo utilizzando il nuovo file config.inc.php-dist .';
        $lang['strnotloaded'] = 'La tua installazione di PHP non supporta PostgreSQL. &Egrave; necessario ricompilare PHP usando l\'opzione di configurazione --with-pgsql .';
-       $lang['strphpversionnotsupported'] = 'Versione di PHP non supportata. &Egrave; necessario aggiornarlo alla versione %s o successiva.';
        $lang['strpostgresqlversionnotsupported'] = 'Versione di PostgreSQL non supportata. &Egrave; necessario aggiornarlo alla versione %s o successiva.';
        $lang['strbadschema'] = 'Schema specificato non valido.';
        $lang['strbadencoding'] = 'Impostazione della codifica del client nel database fallito.';
index af81a225a06df8b6a1a17e2059e110a092518c44..8e9054d2d27507b43df43cee42ff1182f127b2aa 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Function library read in upon startup
         *
-        * $Id: lib.inc.php,v 1.88 2004/11/15 08:27:05 chriskl Exp $
+        * $Id: lib.inc.php,v 1.89 2005/01/04 23:49:41 soranzo Exp $
         */
        
        // Set error reporting level to max
        $postgresqlMinVer = '7.0';
        $phpMinVer = '4.1';
 
+       // Check the version of PHP
+       if (version_compare(phpversion(), $phpMinVer, '<'))
+               exit(sprintf('Version of PHP not supported. Please upgrade to version %s or later.', $phpMinVer));
+
        // Check to see if the configuration file exists, if not, explain
        if (file_exists('conf/config.inc.php')) {
                $conf = array();