Added a PHP5 module for the configuration class
[gnucomo.git] / src / phpclasses / gnucomo_config.php
index 507a462..139daa7 100644 (file)
@@ -5,7 +5,14 @@
 ** terms of the GNU General Public License, see the file COPYING.
 ***************************************************************************/
 
-require_once('configuration.class.php');
+if (substr(phpversion(), 0, 1) == "4")
+{
+   require_once('configuration.class.php');
+}
+else
+{
+   require_once('configuration.class.php5');
+}
 
 /*
 ///////////////////////////////////////////////////////////////////////////