Function_exists() is available since php 3.0.7 only

This commit is contained in:
Loïc Chapeaux
2001-07-11 22:11:06 +00:00
parent a405dc8fbd
commit 807aaba377

View File

@@ -1,10 +1,12 @@
<?php
/* $Id$ */
/*
/**
* phpMyAdmin Language Loading File - lolo@phpheaven.net 01may2001
*/
/**
* Define the path to the translations directory and get some variables
* from system arrays if 'register_globals' is set to 'off'
@@ -62,7 +64,8 @@ $available_languages = array(
);
if (!function_exists('pmaLangDetect')) {
if (!defined('__PMA_LANG_DETECT__')) {
define('__PMA_LANG_DETECT__', 1);
/**
* Analyzes some PHP environment variables to find the most probable language
@@ -82,9 +85,7 @@ function pmaLangDetect($str = '', $envType = '')
global $lang;
reset($available_languages);
while (list($key, $value) = each($available_languages))
{
while (list($key, $value) = each($available_languages)) {
// $envType = 1 for the 'HTTP_ACCEPT_LANGUAGE' environment variable,
// 2 for the 'HTTP_USER_AGENT' one
if (($envType == 1 && eregi('^(' . $value[0] . ')(;q=[0-9]\\.[0-9])?$', $str))
@@ -95,7 +96,7 @@ function pmaLangDetect($str = '', $envType = '')
}
} // end of the 'pmcLangDetect()' function
} // end if (!function_exists)
} // end if
/**