So... I quickly wrote a working autoselect plugin for Roundcube 0.3.x <=
You just have to put it in the plugin folder, add the plugin to the plugin array in the main config and also change the default_host to $rcmail_config['default_host'] = '';
Yes, the server field won't be shown. It will use the config file of the ISPConfig3_account plugin, if you are using it, otherwise you have to edit the config file which is in the config folder of the plugin.
Requirements:
*) The server names in ISPConfig 3 must be the domain of the Server. Like xen1.bb-hosting.org
Oh... nearly forgot, you have to add in the /usr/local/ispconfig/interface/lib/classes/remoting.inc.php this:
Code:
//** server functions -----------------------------------------------------------------------------------
public function server_get_name($session_id, $server_id)
{
global $app;
/*if(!$this->checkPerm($session_id, 'server_get')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}*/
$server_id = intval($server_id);
$rec = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ".$server_id);
if(isset($rec['server_name'])) {
return $rec['server_name'];
} else {
$this->server->fault('no_server_found', 'There is no server with this ID.');
return false;
}
}
just before this
Code:
//** private functions -----------------------------------------------------------------------------------
PS: You can find it in my SVN Repository
http://svn.web-wack.at/ispconfig3_roundcube3/trunk/
PPS: I know that I outcommented the checkPermission function
Recent comments
18 hours 43 min ago
23 hours 48 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 20 hours ago
1 day 20 hours ago
2 days 1 hour ago
2 days 7 hours ago
2 days 8 hours ago
2 days 9 hours ago