<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fatal error: Call to undefined function: check_php_version() in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/fatal-error-call-to-undefined-function-check-php-version/m-p/3881307#M25616</link>
    <description>ouch, you really expect someone to read through all that code?&lt;BR /&gt;&lt;BR /&gt;nevertheless, check_php_version is not a php builtin, so I presume, that either that plugin is written poorly, or you have incompatible versions of squirrelmail and that particular plugin. For proper support, try to post your problem to squirrelmail forums.&lt;BR /&gt;&lt;BR /&gt;touching php.ini won't help imho</description>
    <pubDate>Wed, 18 Oct 2006 15:54:54 GMT</pubDate>
    <dc:creator>Michal Toth</dc:creator>
    <dc:date>2006-10-18T15:54:54Z</dc:date>
    <item>
      <title>Fatal error: Call to undefined function: check_php_version()</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fatal-error-call-to-undefined-function-check-php-version/m-p/3881306#M25615</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I have SquirrelMail version 1.4.4 under debian sarge stable.&lt;BR /&gt;&lt;BR /&gt;I have Change SQL Password  Plugin version  3.2 installed,&lt;BR /&gt;but get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Fatal error: Call to undefined function: check_php_version() in /usr/share/squirrelmail/plugins/compatibility/functions.php on line 72&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my functions.php script:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/**&lt;BR /&gt;&lt;BR /&gt;  * SquirrelMail Compatibility Plugin&lt;BR /&gt;&lt;BR /&gt;  * Copyright (C) 2004-2005 Paul Lesneiwski &lt;PAUL&gt;&lt;BR /&gt;&lt;BR /&gt;  * This program is licensed under GPL. See COPYING for details&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // change this to TRUE to disable plugin config test functionality&lt;BR /&gt;&lt;BR /&gt;   // which will increase performance (minimally)&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   $disable_config_check = FALSE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // ---------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   global $compatibility_sm_path, $compatibility_disable_config_check;&lt;BR /&gt;&lt;BR /&gt;   $compatibility_disable_config_check = $disable_config_check;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // we don't want to do any defining constants ourselves to stay&lt;BR /&gt;&lt;BR /&gt;   // as non-intrusive as possible, so just our own variable&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   if (defined('SM_PATH'))&lt;BR /&gt;&lt;BR /&gt;      $compatibility_sm_path = SM_PATH;&lt;BR /&gt;&lt;BR /&gt;   else&lt;BR /&gt;&lt;BR /&gt;      $compatibility_sm_path = '../';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // Some uses of this plugin (such as vlogin) were somehow calling the&lt;BR /&gt;&lt;BR /&gt;   // functions here before having included the functions in global.php,&lt;BR /&gt;&lt;BR /&gt;   // resulting in fatal errors when called below.  Thus, the need for&lt;BR /&gt;&lt;BR /&gt;   // the following includes&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // we also need to include the validate file first&lt;BR /&gt;&lt;BR /&gt;   // thing so we don't lose the ability to display themes,&lt;BR /&gt;&lt;BR /&gt;   // but we cannot include this file unless we are being&lt;BR /&gt;&lt;BR /&gt;   // called from a plugin request, thus this if statement&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;&lt;BR /&gt;   if ( strpos(getcwd(), 'plugins') ) &lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      if (file_exists($compatibility_sm_path . 'include/validate.php'))&lt;BR /&gt;&lt;BR /&gt;         include_once($compatibility_sm_path . 'include/validate.php');&lt;BR /&gt;&lt;BR /&gt;      else if (file_exists($compatibility_sm_path . 'src/validate.php'))&lt;BR /&gt;&lt;BR /&gt;         include_once($compatibility_sm_path . 'src/validate.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   include_once($compatibility_sm_path . 'functions/strings.php');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   if (file_exists($compatibility_sm_path . 'functions/global.php'))&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'functions/global.php');&lt;BR /&gt;&lt;BR /&gt;   else if (file_exists($compatibility_sm_path . 'src/global.php'))&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'src/global.php');&lt;BR /&gt;&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // legacy support for previous versions of compatibility plugin&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;//see below&lt;BR /&gt;&lt;BR /&gt;//   function compatibility_check_sm_version ($a = '0', $b = '0', $c = '0')&lt;BR /&gt;&lt;BR /&gt;//   { return check_sm_version($a, $b, $c); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_check_php_version ($a = '0', $b = '0', $c = '0')&lt;BR /&gt;&lt;BR /&gt;   { return check_php_version($a, $b, $c); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_sqsession_register ($var, $name)&lt;BR /&gt;&lt;BR /&gt;   { sqsession_register ($var, $name); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_sqsession_unregister ($name) &lt;BR /&gt;&lt;BR /&gt;   { sqsession_unregister($name); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_sqsession_is_active()&lt;BR /&gt;&lt;BR /&gt;   { sqsession_is_active(); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_sqsession_is_registered ($name)&lt;BR /&gt;&lt;BR /&gt;   { return sqsession_is_registered($name); }&lt;BR /&gt;&lt;BR /&gt;   function compatibility_sqextractGlobalVar ($name)&lt;BR /&gt;&lt;BR /&gt;   { global $$name; sqgetGlobalVar($name, $$name); }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   /**&lt;BR /&gt;&lt;BR /&gt;     * Checks SquirrelMail version, returns TRUE if SquirrelMail&lt;BR /&gt;&lt;BR /&gt;     * version is at least a.b.c.&lt;BR /&gt;&lt;BR /&gt;     *&lt;BR /&gt;&lt;BR /&gt;     * @param $a int Major version number&lt;BR /&gt;&lt;BR /&gt;     * @param $b int Minor version number&lt;BR /&gt;&lt;BR /&gt;     * @param $c int Revision number&lt;BR /&gt;&lt;BR /&gt;     *&lt;BR /&gt;&lt;BR /&gt;     * @return boolean TRUE if SquirrelMail version matches at&lt;BR /&gt;&lt;BR /&gt;     *                 least a.b.c, FALSE otherwise.&lt;BR /&gt;&lt;BR /&gt;     *&lt;BR /&gt;&lt;BR /&gt;     */&lt;BR /&gt;&lt;BR /&gt;   function compatibility_check_sm_version ($a = '0', $b = '0', $c = '0')&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      if (function_exists('check_sm_version'))&lt;BR /&gt;&lt;BR /&gt;         return check_sm_version($a, $b, $c);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      global $version;&lt;BR /&gt;&lt;BR /&gt;      list($aa, $bb, $cc) = preg_split('/\./', $version, 3);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      if(!is_numeric($cc))&lt;BR /&gt;&lt;BR /&gt;         list($cc, $info) = explode(' ', $cc, 2);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      return ($aa &amp;gt; $a)&lt;BR /&gt;&lt;BR /&gt;          || (($aa == $a) &amp;amp;&amp;amp; ($bb &amp;gt; $b))&lt;BR /&gt;&lt;BR /&gt;          || (($aa == $a) &amp;amp;&amp;amp; ($bb == $b) &amp;amp;&amp;amp; ($cc &amp;gt;= $c));&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // include the right file for current version of SM&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   if (compatibility_check_sm_version(1, 5, 1))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      // do nothing for now&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 5, 0))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.5.0/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 6))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.6/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 5))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.5/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 4))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.4/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 3))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.3/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 2))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.2/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 1))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.1/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 4, 0))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.4.0/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 2, 11))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.2.11/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 2, 10))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.2.10/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 2, 9))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.2.9/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 2, 8))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.2.8/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   else if (compatibility_check_sm_version(1, 2, 7))&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      include_once($compatibility_sm_path . 'plugins/compatibility/includes/1.2.7/global.php');&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/**&lt;BR /&gt;&lt;BR /&gt;  * Load configuration file&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * Convenience function for plugins that loads a configuration&lt;BR /&gt;&lt;BR /&gt;  * file (or files).  If the file(s) is(are) not found, an error&lt;BR /&gt;&lt;BR /&gt;  * is displayed and execution stops (function won't return).  &lt;BR /&gt;&lt;BR /&gt;  * If multiple configuration files are given, ALL of them are &lt;BR /&gt;&lt;BR /&gt;  * included, if they exist, in the order given.  Only one of &lt;BR /&gt;&lt;BR /&gt;  * them needs to be found to avert triggering an error.&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * Non-functional on login_before hook.&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * @param string $plugin_name The name of the plugin as&lt;BR /&gt;&lt;BR /&gt;  * it is known to SquirrelMail, that is, it is the name&lt;BR /&gt;&lt;BR /&gt;  * of the plugin directory&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * @param array $config_files An array of files that will&lt;BR /&gt;&lt;BR /&gt;  * be included IN THE ORDER that they are given in the&lt;BR /&gt;&lt;BR /&gt;  * array.  Files should be specified relative to the calling&lt;BR /&gt;&lt;BR /&gt;  * plugin's directory, such as:&lt;BR /&gt;&lt;BR /&gt;  * array('config.php') or array('data/config.php', 'data/admins.php')&lt;BR /&gt;&lt;BR /&gt;  * It is also possible to give a full/direct path to a &lt;BR /&gt;&lt;BR /&gt;  * configuration file by placing a forward slash at the &lt;BR /&gt;&lt;BR /&gt;  * beginning of the file:&lt;BR /&gt;&lt;BR /&gt;  * array('/var/lib/squirrelmail/config/myplugin.conf')&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  */&lt;BR /&gt;&lt;BR /&gt;function load_config($plugin_name, $config_files)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   global $compatibility_sm_path;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // if only one config file given as string, push &lt;BR /&gt;&lt;BR /&gt;   // into an array just to be nice&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   if (!is_array($config_files)) $config_files = array($config_files);&lt;BR /&gt;&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // loop through files, attempting to include them&lt;BR /&gt;&lt;BR /&gt;   // &lt;BR /&gt;&lt;BR /&gt;   $file_count = 1;&lt;BR /&gt;&lt;BR /&gt;   foreach ($config_files as $file)&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      if (strpos($file, '/') === 0)&lt;BR /&gt;&lt;BR /&gt;         $plugin_path = $file;&lt;BR /&gt;&lt;BR /&gt;      else &lt;BR /&gt;&lt;BR /&gt;         $plugin_path = $compatibility_sm_path . 'plugins/' . $plugin_name . '/' . $file;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      // store inclusion results to be checked below&lt;BR /&gt;&lt;BR /&gt;      //&lt;BR /&gt;&lt;BR /&gt;      ${'config' . $file_count} = @include_once($plugin_path);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      $file_count++;&lt;BR /&gt;&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // now check to see if we got at least one successful inclusion&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   $success = FALSE;&lt;BR /&gt;&lt;BR /&gt;   for ($i = 1; $i &amp;lt; $file_count; $i++)&lt;BR /&gt;&lt;BR /&gt;      if (${'config' . $i})&lt;BR /&gt;&lt;BR /&gt;      {&lt;BR /&gt;&lt;BR /&gt;         $success = TRUE;&lt;BR /&gt;&lt;BR /&gt;         break;&lt;BR /&gt;&lt;BR /&gt;      }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // error...&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   if (!$success)&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;      global $color;&lt;BR /&gt;&lt;BR /&gt;      bindtextdomain ('compatibility', SM_PATH . 'locale');&lt;BR /&gt;&lt;BR /&gt;      textdomain ('compatibility');&lt;BR /&gt;&lt;BR /&gt;      $error_msg = _("Administrative error:") . '&lt;BR /&gt;' &lt;BR /&gt;&lt;BR /&gt;                 . sprintf(_("The plugin %s has not been set up correctly."),&lt;BR /&gt;&lt;BR /&gt;                           '"&lt;B&gt;' . $plugin_name . '&lt;/B&gt;"') &lt;BR /&gt;&lt;BR /&gt;                 . '&lt;BR /&gt;' &lt;BR /&gt;&lt;BR /&gt;                 . _("Please read the README or INSTALL files that came with the plugin.");&lt;BR /&gt;&lt;BR /&gt;      bindtextdomain ('squirrelmail', SM_PATH . 'locale');&lt;BR /&gt;&lt;BR /&gt;      textdomain ('squirrelmail');&lt;BR /&gt;&lt;BR /&gt;      plain_error_message($error_msg, $color);&lt;BR /&gt;&lt;BR /&gt;      exit;&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/**&lt;BR /&gt;&lt;BR /&gt;  * Validate Plugin Setup Utility&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * Checks a plugin to see if the user has installed it &lt;BR /&gt;&lt;BR /&gt;  * correctly by checking for the existence of the given&lt;BR /&gt;&lt;BR /&gt;  * files (all relative from the plugin's directory)&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * @param string $pluginName The name of the plugin as&lt;BR /&gt;&lt;BR /&gt;  * it is known to SquirrelMail, that is, it is the name&lt;BR /&gt;&lt;BR /&gt;  * of the plugin directory.&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  * @param array $configFiles An array of any files that the&lt;BR /&gt;&lt;BR /&gt;  * user should have set up for this plugin, for example:&lt;BR /&gt;&lt;BR /&gt;  * array('config.php') or array('data/config.php', 'data/admins.php')&lt;BR /&gt;&lt;BR /&gt;  * where all files will be referenced from the plugin's&lt;BR /&gt;&lt;BR /&gt;  * main directory.&lt;BR /&gt;&lt;BR /&gt;  * It is also possible to give a full/direct path to a &lt;BR /&gt;&lt;BR /&gt;  * configuration file by placing a forward slash at the &lt;BR /&gt;&lt;BR /&gt;  * beginning of the file:&lt;BR /&gt;&lt;BR /&gt;  * array('/var/lib/squirrelmail/config/myplugin.conf')&lt;BR /&gt;&lt;BR /&gt;  *&lt;BR /&gt;&lt;BR /&gt;  */&lt;BR /&gt;&lt;BR /&gt;function check_plugin_setup($pluginName, $configFiles)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   global $compatibility_disable_config_check;&lt;BR /&gt;&lt;BR /&gt;   if ($compatibility_disable_config_check) return;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   global $compatibility_sm_path;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   // check one at a time...&lt;BR /&gt;&lt;BR /&gt;   //&lt;BR /&gt;&lt;BR /&gt;   foreach ($configFiles as $configFile)&lt;BR /&gt;&lt;BR /&gt;   {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      if (strpos($configFile, '/') === 0)&lt;BR /&gt;&lt;BR /&gt;         $plugin_path = $configFile;&lt;BR /&gt;&lt;BR /&gt;      else &lt;BR /&gt;&lt;BR /&gt;         $plugin_path = $compatibility_sm_path . 'plugins/' . $pluginName . '/' . $configFile;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      if (!file_exists($plugin_path))&lt;BR /&gt;&lt;BR /&gt;      {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         global $color;&lt;BR /&gt;&lt;BR /&gt;         bindtextdomain ('compatibility', SM_PATH . 'locale');&lt;BR /&gt;&lt;BR /&gt;         textdomain ('compatibility');&lt;BR /&gt;&lt;BR /&gt;         $error_msg = _("Administrative error:") . '&lt;BR /&gt;' &lt;BR /&gt;&lt;BR /&gt;                    . sprintf(_("The plugin %s has not been set up correctly."),&lt;BR /&gt;&lt;BR /&gt;                              '"&lt;B&gt;' . $pluginName . '&lt;/B&gt;"') &lt;BR /&gt;&lt;BR /&gt;                    . '&lt;BR /&gt;' &lt;BR /&gt;&lt;BR /&gt;                    . sprintf(_("The file %s is missing."),&lt;BR /&gt;&lt;BR /&gt;                              '"&lt;B&gt;' . $configFile . '&lt;/B&gt;"') &lt;BR /&gt;&lt;BR /&gt;                    . '&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;                    . _("Please read the README or INSTALL files that came with the plugin.");&lt;BR /&gt;&lt;BR /&gt;         bindtextdomain ('squirrelmail', SM_PATH . 'locale');&lt;BR /&gt;&lt;BR /&gt;         textdomain ('squirrelmail');&lt;BR /&gt;&lt;BR /&gt;         plain_error_message($error_msg, $color);&lt;BR /&gt;&lt;BR /&gt;         exit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;shuld I change something in /etc/php4/apache2/php.ini ?&lt;/PAUL&gt;</description>
      <pubDate>Tue, 17 Oct 2006 04:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fatal-error-call-to-undefined-function-check-php-version/m-p/3881306#M25615</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2006-10-17T04:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Call to undefined function: check_php_version()</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fatal-error-call-to-undefined-function-check-php-version/m-p/3881307#M25616</link>
      <description>ouch, you really expect someone to read through all that code?&lt;BR /&gt;&lt;BR /&gt;nevertheless, check_php_version is not a php builtin, so I presume, that either that plugin is written poorly, or you have incompatible versions of squirrelmail and that particular plugin. For proper support, try to post your problem to squirrelmail forums.&lt;BR /&gt;&lt;BR /&gt;touching php.ini won't help imho</description>
      <pubDate>Wed, 18 Oct 2006 15:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fatal-error-call-to-undefined-function-check-php-version/m-p/3881307#M25616</guid>
      <dc:creator>Michal Toth</dc:creator>
      <dc:date>2006-10-18T15:54:54Z</dc:date>
    </item>
  </channel>
</rss>

