[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.xslttemplates.inc.php,1.19
From: |
ceb |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.xslttemplates.inc.php,1.19 |
Date: |
Sat, 23 Apr 2005 23:47:00 +0200 |
Update of phpgwapi/inc
Modified Files:
Branch: MAIN
class.xslttemplates.inc.php lines: +15 -7
Log Message:
applied patch for save_mode=on. check for save_mode and xml_/xslt_extension
loaded should move to setup
====================================================
Index: phpgwapi/inc/class.xslttemplates.inc.php
diff -u phpgwapi/inc/class.xslttemplates.inc.php:1.18
phpgwapi/inc/class.xslttemplates.inc.php:1.19
--- phpgwapi/inc/class.xslttemplates.inc.php:1.18 Thu Jan 20 01:25:01 2005
+++ phpgwapi/inc/class.xslttemplates.inc.php Sat Apr 23 21:47:31 2005
@@ -4,25 +4,33 @@
* @author Dan Kuykendall <address@hidden>
* @author Bettina Gille address@hidden
* @author Ralf Becker <address@hidden>
- * @copyright Copyright (C) 2002-2005 Free Software Foundation, Inc
http://www.fsf.org/
+ * @copyright Copyright (C) 2002-2005 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/lpl.html GNU General Public
License
* @package phpgwapi
* @subpackage gui
* @version $Id$
*/
- if (!extension_loaded('xslt'))
+ if(!extension_loaded('xslt'))
{
- if (PHP_OS == 'Windows' || PHP_OS == 'OS/2')
+ /* phpgroupware anyway would not work properly with
save_mode=on */
+ if(ini_get('safe_mode'))
{
- dl('php_xslt.dll');
+ echo 'PHP CONFIGURATION - SAVE_MODE = ON. Unable to
load the xslt-extension. Please contact the system administrator.';
+ exit();
}
else
{
- dl('xslt.so');
+ if(PHP_OS == 'Windows' || PHP_OS == 'OS/2')
+ {
+ dl('php_xslt.dll');
+ }
+ else
+ {
+ dl('xslt.so');
+ }
}
}
-
require_once('class.xmltool.inc.php');
class xslttemplates
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.xslttemplates.inc.php,1.19,
ceb <=