Default Battery saver

I found this Web page online that had an app that would allow me to save my battery life by basically putting my phone into airplane mode when the phone was locked. I think it was for rooted phones. I like to have it because my galaxy uses a lot of battery, even when it's not in use and coming from a Windows phone its a big difference. Any ideas on what the app is?

Sent from my SGH-T999 using xda app-developers app