| Code Perl |
sub idtEcrire {local($From,$IDENT,$AUTH) = @_;
if (index($$AUTH,"/#")!=-1) {return 1};
local $x = "";
$x = (($$AUTH eq "")?'//':'').'/#T(Identification):'.$$IDENT.'/#T(Authentification):'.$$AUTH;
local $Out = &Trace('Compte',$x); if (&wsFile("write",$From,$$IDENT,"Id",\$Out)!=0) {return 100};
return 0;
}
|
| Code JavaScript |
function idtEcrire(From,IDENT,AUTH) {
if (AUTH[0].indexOf("/#")!=-1) {return 1};
var x = "";
x = ((AUTH[0]=="")?'//':'')+'/#T(Identification):'+IDENT[0]+'/#T(Authentification):'+AUTH[0];
var Out = Array(Trace('Compte',x)); if (wsFile("write",From,IDENT[0],"Id",Out)!=0) {return 100};
return 0;
}
|