* 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.';
* 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.';
* 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.';
* 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 è 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.';
/**
* 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();