diff --git a/INSTALL b/INSTALL index 0e965b7..2f150fe 100644 --- a/INSTALL +++ b/INSTALL @@ -1,5 +1,5 @@ For install instructions in non-English languages, see the wiki: - http://wiki.phpldapadmin.info + http://phpldapadmin.wiki.sourceforge.net * Requirements @@ -17,7 +17,7 @@ For install instructions in non-English languages, see the wiki: * For additional help See the wiki: - http://wiki.phpldapadmin.info + http://phpldapadmin.wiki.sourceforge.net Join our mailing list: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel diff --git a/VERSION b/VERSION index 88205e3..96cc9d6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -$Name: RELEASE-1_1_0 $ +$Name: RELEASE-1_1_0_1 $ diff --git a/htdocs/cmd.php b/htdocs/cmd.php index 4c9a579..920aa5f 100644 --- a/htdocs/cmd.php +++ b/htdocs/cmd.php @@ -1,7 +1,8 @@ diff --git a/htdocs/draw_tree_node.php b/htdocs/draw_tree_node.php index cf3620e..7839d0a 100644 --- a/htdocs/draw_tree_node.php +++ b/htdocs/draw_tree_node.php @@ -1,4 +1,10 @@ getProperty('helper'); + + # Should only return 1 default entry. + if (isset($params['value']) && ! is_array($params['value'])) + return $params['value']; + + # If there are multiple values, return the first one. + else if (isset($params['value']) && is_array($params['value'])) + return array_shift($params['value']); + + # No default values, return a blank. + else + return ''; } protected function getAttributeRenameMenuItem($attribute) { diff --git a/lib/config_default.php b/lib/config_default.php index a492b50..def3647 100644 --- a/lib/config_default.php +++ b/lib/config_default.php @@ -1,5 +1,5 @@ default->appearance['tree'] = array( 'desc'=>'Class name which inherits from Tree class and implements the draw() method', - 'default'=>'HTMLTree'); + 'default'=>'AJAXTree'); $this->default->appearance['entry_factory'] = array( 'desc'=>'Class name which inherits from EntryFactory class', diff --git a/lib/createlm.php b/lib/createlm.php index e92eb4d..5ba6a63 100644 --- a/lib/createlm.php +++ b/lib/createlm.php @@ -1,6 +1,6 @@ - private $_head; + protected $_head; # Settings for this application - private $_app; + protected $_app; # Default values array. - private $_default; + protected $_default; public function __construct($server_id=null) { if (defined('DEBUG_ENABLED') && DEBUG_ENABLED) @@ -34,15 +35,20 @@ class page { # Capture any output so far (in case we send some headers below) - there shouldnt be any output anyway. $preOutput = ''; - if (ob_get_level()) { + + # Try and work around if php compression is on, or the user has set compression in the config. + # type = 1 for user gzip, 0 for php.ini gzip. + $obStatus = ob_get_status(); + if ($obStatus['type'] && $obStatus['status']) { $preOutput = ob_get_contents(); ob_end_clean(); } - //header('Content-type: text/html; charset="UTF-8"'); @todo: Something is sending output to the browser. + header('Content-type: text/html; charset="UTF-8"'); if (isset($_SESSION['plaConfig']) && $_SESSION['plaConfig']->GetValue('appearance','compress') - && eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) { + && eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING']) + && ! ini_get('zlib.output_compression')) { header('Content-Encoding: gzip'); @@ -50,6 +56,11 @@ class page { debug_log('Sent COMPRESSED header to browser and discarded (%s)',129,__FILE__,__LINE__,__METHOD__,$preOutput); } + if (isset($_SESSION['plaConfig']) + && $_SESSION['plaConfig']->GetValue('appearance','compress') + && ini_get('zlib.output_compression')) + $this->setsysmsg(array(array('title'=>_('Warning'),'body'=>_('WARNING: You cannot have PHP compression and phpLDAPadmin compression enabled at the same time. Please unset zlib.output_compression or set $config->custom->appearance[\'compress\']=false'),'type'=>'warn'))); + # Turn back on output buffering. ob_start(); @@ -321,6 +332,7 @@ class page { if ($compress && ob_get_level() && isset($_SESSION['plaConfig']) && $_SESSION['plaConfig']->GetValue('appearance','compress') + && ! ini_get('zlib.output_compression') && eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) { $output = ob_get_contents(); @@ -400,6 +412,7 @@ class page { # compress output if (ob_get_level() && isset($_SESSION['plaConfig']) && $_SESSION['plaConfig']->GetValue('appearance','compress') + && ! ini_get('zlib.output_compression') && eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) { $output = ob_get_contents(); diff --git a/locale/fi_FI/LC_MESSAGES/messages.mo b/locale/fi_FI/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..6a1d008 Binary files /dev/null and b/locale/fi_FI/LC_MESSAGES/messages.mo differ diff --git a/locale/it_IT/LC_MESSAGES/messages.mo b/locale/it_IT/LC_MESSAGES/messages.mo index 8792641..ae192e5 100644 Binary files a/locale/it_IT/LC_MESSAGES/messages.mo and b/locale/it_IT/LC_MESSAGES/messages.mo differ diff --git a/locale/it_IT/LC_MESSAGES/messages.po b/locale/it_IT/LC_MESSAGES/messages.po index e25a36d..391fcc4 100644 --- a/locale/it_IT/LC_MESSAGES/messages.po +++ b/locale/it_IT/LC_MESSAGES/messages.po @@ -1,7 +1,7 @@ # : $ msgid "" msgstr "" -"Project-Id-Version: phpldapadmin $Name: RELEASE-1_1_0 $\n" +"Project-Id-Version: phpldapadmin messages\n" "Report-Msgid-Bugs-To: phpldapadmin-devel@lists.sf.net\n" "POT-Creation-Date: 2007-12-03 11:45+0200\n" "PO-Revision-Date: 2007-12-04 18:22+0100\n" diff --git a/tools/po/make_mo_all b/tools/po/make_mo_all index d20f245..759bf27 100755 --- a/tools/po/make_mo_all +++ b/tools/po/make_mo_all @@ -1,6 +1,6 @@ #!/bin/sh -HOME=$PWD +HOME=$PWD/$(dirname $0) cd ../../locale for i in $(ls -1); do diff --git a/tools/po/messages.header b/tools/po/messages.header index 6872e56..8782e0f 100644 --- a/tools/po/messages.header +++ b/tools/po/messages.header @@ -3,7 +3,7 @@ msgid "" msgstr "" -"Project-Id-Version: phpldapadmin $Name: RELEASE-1_1_0 $\n" +"Project-Id-Version: phpldapadmin messages\n" "Report-Msgid-Bugs-To: phpldapadmin-devel@lists.sf.net\n" "POT-Creation-Date: 2004-01-14 17:45+0200\n" "PO-Revision-Date: 2004-01-14 17:45+0200\n"