phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5273 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5273 - phpcompta/trunk/include
Date: Thu, 16 May 2013 23:42:55 +0200 (CEST)

Author: danydb
Date: 2013-05-16 23:42:55 +0200 (Thu, 16 May 2013)
New Revision: 5273

Modified:
   phpcompta/trunk/include/constant.php
Log:
task #843 : include_path automatique

Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php        2013-05-16 21:34:17 UTC (rev 
5272)
+++ phpcompta/trunk/include/constant.php        2013-05-16 21:42:55 UTC (rev 
5273)
@@ -27,6 +27,18 @@
 require_once('constant.security.php');
 // SVNVERSION
 global $version_phpcompta;
+/*
+ * Include path
+ */
+$inc_path=get_include_path();
+$dirname=dirname(__FILE__);
+if ( strpos($inc_path,";") != 0 ) {
+  $new_path=$inc_path.';'.$dirname;
+  $os=0;                       /* $os is 0 for windoz */
+} else {
+  $new_path=$inc_path.':'.$dirname;
+  $os=1;                       /* $os is 1 for unix */
+}
 
 
 global $g_captcha,$g_failed,$g_succeed;



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]