[HELP] Hotspot - Extend User Uptime-Limit without logging out - voucher type

Hello, just want to ask if who can help me to write a script that will extend user uptime-limit without logging out current user via voucher. Example, user1 uptime is 1hour, his/her remaining time is only 10mins, and he/she wanted to extend his uptime limit without logging out or consuming all 1 hour to enter another voucher. Scipt will be pasted on onlogin script.

hello, anyone here who can help me, appreciate the support. thank you.

anyone can help here? appreciate the support. thank you