SHOW:
|
|
- or go back to the newest paste.
1 | *** ip hotspot user profile ---> on login *** | |
2 | ||
3 | 1. user profile "expired-1hari" , on login script : | |
4 | *** copas script dibawah ini di on login user profile **** | |
5 | { | |
6 | :local usernya $user; | |
7 | :if ([/system schedule find name=$usernya]="") do={ | |
8 | /system schedule add name=$usernya interval=1d on-event="/ip hotspot user remove [find name=$usernya]\r\n/ip hotspot active remove [find user=$usernya]\r\n/system schedule remove [find name=$usernya]\r\n/system schedule remove [find name=$usernya]\r\n/ip hotspot cookie remove [find user=$usernya]" | |
9 | } | |
10 | } | |
11 | *** yang ini jangan ikut di copas *** | |
12 | ubah expired harinya di bagian interval=1d menjadi 2d atau 3d dan seterusnya dimana d=hari |