Help needed to convert some code.

digitalRead(buttonPins[glow][[/glow]i[glow]][/glow]);

It's an array, not a function.

Not much point initiailising the flag, if you're going to overwrite it:

boolean inputstatus = digitalRead(buttonPins[i]);

Also, be careful, C subscripts normally start from zero.