Jump to content

how do i add these together


Recommended Posts

Hi ya

i have a script that exports members out of a defined group from AD - but i want to be able to get other information if requested - at the mo i have 2 radio buttons but i want to change them to checkbox's so that they can have more then one thing exported

for example i have an if statement for the radio to say if they want username exported then use the first line but if they want email addys then use the second line

if isobj($user) Then $adminlist &= $user.sAMAccountName & @crlf
if isobj($user) Then $adminlist &= $user.mail & @crlfoÝ÷ Ú,Ûhmæëh©Û(¶­ú'+azÉ­¥§]Ê+'^^åÊ»§¶»-r¦jw[zZ0jëh×6if isobj($user) Then $adminlist &= $user.mail & @crlfoÝ÷ Ù»­ûa{+a{,Ûh{h®Öè¶az{¬zØ^r¦jw[zZ0jëh×6if isobj($user) Then $adminlist &= $user.sAMAccountName & ',' & $user.mail & @crlfoÝ÷ ÚØb²wvËhmç±¥©Ýi¹^²q©àzÙ¨­ëazxî²ÛaÆmé¨Ü(ºW[zxzÚ$!£hv­ÚâyÛhv­)¶¬nëm«cºË]ÙíÂäjëh×6
if $USERNAME = 1 then 
$option1 = $user.sAMAccountName
else
$option1= ''
endif
if $MAIL= 1 then 
$option2 = $user.mail
else
$option2=''
endif

$option = $option1 & ',' & $option2 & @crlf
oÝ÷ Û^Øb²+.±çmèêÚµç_W¢g¬¢ëpØmçèZ0xºÚ"µÍ  ÌÍÝÙÐSPXØÛÝ[[YH ÌÍÝÙXZ[Ü

thanks for your help in advance

Link to comment
Share on other sites

Hi ya

i have a script that exports members out of a defined group from AD - but i want to be able to get other information if requested - at the mo i have 2 radio buttons but i want to change them to checkbox's so that they can have more then one thing exported

for example i have an if statement for the radio to say if they want username exported then use the first line but if they want email addys then use the second line

if isobj($user) Then $adminlist &= $user.sAMAccountName & @crlf
if isobj($user) Then $adminlist &= $user.mail & @crlfoÝ÷ Ú,Ûhmæëh©Û(¶­ú'+azÉ­¥§]Ê+'^^åÊ»§¶»-r¦jw[zZ0jëh×6if isobj($user) Then $adminlist &= $user.mail & @crlfoÝ÷ Ù»­ûa{+a{,Ûh{h®Öè¶az{¬zØ^r¦jw[zZ0jëh×6if isobj($user) Then $adminlist &= $user.sAMAccountName & ',' & $user.mail & @crlfoÝ÷ ÚØb²wvËhmç±¥©Ýi¹^²q©àzÙ¨­ëazxî²ÛaÆmé¨Ü(ºW[zxzÚ$!£hv­ÚâyÛhv­)¶¬nëm«cºË]ÙíÂäjëh×6
if $USERNAME = 1 then 
$option1 = $user.sAMAccountName
else
$option1= ''
endif
if $MAIL= 1 then 
$option2 = $user.mail
else
$option2=''
endif

$option = $option1 & ',' & $option2 & @crlf
oÝ÷ Û^Øb²+.±çmèêÚµç_W¢g¬¢ëpØmçèZ0xºÚ"µÍ  ÌÍÝÙÐSPXØÛÝ[[YH ÌÍÝÙXZ[Ü

thanks for your help in advance

Anyone ?
Link to comment
Share on other sites

Anyone ?

And if you try to create some funcs in each case?

I think you are tring to do everything in one func... try to do in more funcs

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...