function SetDefaultEmailAddress($defaultemail,optional $user) dim $addys[0], $objuser, $objsysinfo, $email, $i, $rc $setdefaultemailaddress=-1 if $user $ObjUser=GetObject("LDAP://" + GetUserDN($user)) if @error exit @error endif else $objSysInfo = CreateObject("ADSystemInfo") $objUser=getobject("LDAP://" + $objSysInfo.UserName) endif For each $email in $objUser.proxyAddresses select case right($email,-5)=$defaultemail $addys[0]="SMTP:" + $defaultemail case left($email,4)="smtp" $i=$i+1 redim preserve $addys[$i] $addys[$i]="smtp:" + right($email,-5) case 1 $i=$i+1 redim preserve $addys[$i] $addys[$i]=$email endselect Next if $addys[0] $objUser.proxyAddresses=$addys $objUser.setinfo $rc=@error if $rc $setdefaultemailaddress=$rc exit $rc endif $setdefaultemailaddress=0 endifendfunction function GetEmailAddresses(optional $user) dim $addys[0], $objuser, $objsysinfo, $email, $i if $user $ObjUser=GetObject("LDAP://" + GetUserDN($user)) if @error exit @error endif else $objSysInfo = CreateObject("ADSystemInfo") $objUser=getobject("LDAP://" + $objSysInfo.UserName) endif For each $email in $objUser.proxyAddresses select case left($email,4)=="SMTP" $addys[0]=right($email,-5) case left($email,4)=="smtp" $i=$i+1 redim preserve $addys[$i] $addys[$i]=right($email,-5) endselect Next $GetEmailAddresses=$addysendfunction
Generated in 0.071 seconds in which 0.023 seconds were spent on a total of 14 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "