If the parking lights, tail lights, and dash lights are coming on, its the sensor on the dash thats bad.
If its just the headlamp capsules that are lit up, those are Daytime Running Lights. You can disable them by removing the little door in the drivers side dash (when the drivers door is open) and unplug the blue plug going into the heatsink box.