View Single Post
  #468  
Old 15th August 2012, 19:33
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 927
Thanks: 16
Thanked 261 Times in 208 Posts
Default

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']);

                return 
$args;
        } 
because the field does have variable attributes. e.g. attributes size and autocomplete are not always there.
__________________
Marius Cramer

pixcept KG
Reply With Quote