|
From: Jochen M. <j.m...@om...> - 2004-12-08 21:36:23
|
Hi Joe,
could enhance the class-servers.php method like this:
// ---------------------------------------------------------
function init_new_server($server, $share) {
foreach ($this->server_defs as $name => $value){ // Init remaining
fields
$this->servers["new"]["$name"] = '';
}
// security option, if user inserts "//" strip it
if (substr($server,0,2) == "//")
$server = substr($server,2);
$this->servers["new"]["server"] = $server; // store values
from "Create" input
$this->servers["new"]["share"] = $share;
return;
}
I haven't go access to cvs at present.
Addon is for the case the user inserts "//MyServer" in admin gui
THX
Jochen
|