View Single Post
Old 15th August 2012, 20:33
Croydon Croydon is offline
ISPConfig Developer
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts

I think the function to hide the host field in the login form should be rewritten to

PHP Code:
function template_object_loginform($args)
$args['content'] = preg_replace("/<tr>\s*<td class=\"title\">\s*<label for=\"rcmloginhost\">(.*?)<\/label>\s*<\/td>\s*<td class=\"input\">\s*<input name=\"_host\"([^>]*)>\s*<\/td>\s*<\/tr>/is","",$args['content']);

because the field does have variable attributes. e.g. attributes size and autocomplete are not always there.
Marius Cramer

pixcept KG
Reply With Quote