http://www.peqtgc.com/phpBB2/viewtopic.php?t=11004
Check out this thread and then seek the appropriate source in the peq php editor (joligario has updated the format string since that post).
You could probably force a reset with a php script with relative ease. You could also use C and the header provided with the emu server if you wanted, but for something quick like this, php is probably superior.