%%uplink-save-member-popup%%
$Date $

%%preprocess%%
// encrypt password
$this->remotepass= bpassword($_POST['remotepass']);

// default publishing settings
if ($this->status=="") $this->status= "posted";
if ($this->rank=="") $this->rank= "100";

// parse blogidname
$array= explode(":",$this->blogidname);
if (is_numeric($array[0])) {
	$this->remoteid= $array[0];
	$this->p_ljtype= " ";
	}
else $this->p_ljtype= $array[0];
$this->remotename= $array[1];

// name after blogname by default:
if ($this->name=="") $this->name= uniqid("");

berror("Ready to create/update link $this->name #$this->id: username='$this->remoteuser', password='$this->remotepass', and remotename='$this->remotename'.",1);

%%header%%

%%css%%

%%template%%
<h1>Uplink Saved!</h1>
<p>$this->title has been updated to publish to $this->remotename.</p>
<p><a href="javascript: window.close();">close window</a></p>

%%listrow%%

%%nullobject%%
<h1>Uplink Saved!</h1>
<p>$this->title has been updated to publish to $this->remotename.</p>
<p><a href="javascript: window.close();">close window</a></p>

%%footer%%

%%postprocess%%
if ($this->return=="") {
	$this->getBaseUrl();
	$return= $this->baseUrl;
	}
else $return= $this->return;

if ($GLOBALS['debug']) berror("Saved uplink:$this->id, returning to <a href='$return'>$return</a>.",0);
header("Location: $return");
exit;

%%end of context%%
