You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Если за пару минут, олень, то тем более... У тебя нет системного подхода, если это всё вылилось в такой код. Изобретал колесо в каждой строке.
А еще прежде чем спорить, постарайся хотя бы убедиться, что ты прав.
RTFM:
This function sets whether a client disconnect should cause a script to be aborted. It will return the previous setting and can be called without an argument to not change the current setting and only return the current setting.