PHP code example of johndoh / globaladdressbook
1. Go to this page and download the library: Download johndoh/globaladdressbook library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
johndoh / globaladdressbook example snippets
'name' => [
'en_us' => 'Global Addresses',
'ja_jp' => 'グローバル・アドレス',
'pt_pt' => 'Endereços Globais',
],
$api = rcube::get_instance()->plugins;
$api->register_hook('globaladdressbook_permissions', function($p) {
if (/* is admin */) {
$p['admin'] = true;
}
return $p;
});