| | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2011, The Roundcube Dev Team | |
| | | | Copyright (C) 2011, Kolab Systems AG | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Display license information about program and enabled plugins | |
| | |
| | | function rcmail_supportlink($attrib) |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | |
| | | if ($url = $RCMAIL->config->get('support_url')) { |
| | | $label = $attrub['label'] ? $attrub['label'] : 'support'; |
| | | $label = $attrib['label'] ? $attrib['label'] : 'support'; |
| | | $attrib['href'] = $url; |
| | | return html::a($attrib, rcube_label($label)); |
| | | } |
| | |
| | | $table->add_header('source', rcube_label('source')); |
| | | |
| | | foreach ($plugins as $name => $data) { |
| | | $uri = $data['srcuri']; |
| | | $uri = $data['srcuri'] ? $data['srcuri'] : $data['uri']; |
| | | if ($uri && stripos($uri, 'http') !== 0) { |
| | | $uri = 'http://' . $uri; |
| | | } |
| | | |
| | | |
| | | $table->add_row(); |
| | | $table->add('name', Q($data['name'] ? $data['name'] : $name)); |
| | | $table->add('version', Q($data['version'])); |
| | |
| | | 'license' => 'string(//rc:package/rc:license)', |
| | | 'license_uri' => 'string(//rc:package/rc:license/@uri)', |
| | | 'srcuri' => 'string(//rc:package/rc:srcuri)', |
| | | 'uri' => 'string(//rc:package/rc:uri)', |
| | | ); |
| | | |
| | | $package = INSTALL_PATH . "/plugins/$name/package.xml"; |