Enlace:

[insert_php]

$account_id = «18526030»;
$token = «Ze5VfzThN3nijftmOpqjQx9sjXu6WgFdWYV7SINMvYUqT4ZY»;
$current_user = pg_user_logged();
$user_name = $current_user->name;
$user_email = $current_user->email;

$data = array(«name» => $user_name, «email» => $user_email, «account_id» => $account_id, «token» => $token);

$REMOTE_AUTH_URL = «http://vlex.com/session/remote_auth»;
$keys = array(«name», «email», «account_id», «token»);
foreach($keys as $key) {
if(!isset($data[$key])) throw new Exception(«Missing parameter: $key»);
$values[$key] = $data[$key];
}
$values[«timestamp»] = time();
$values[«hash»] = md5(implode($values));
unset($values[«token»]);
$query = http_build_query($values); // name=yourname&email=…
$url = «$REMOTE_AUTH_URL?$query»;

// URL: Enlace a vLex con el usuario actual
echo $url;

[/insert_php]