arabic :
https://www.youtube.com/watch?v=05GSfcQdu7Q
english :
https://www.youtube.com/watch?v=QgF9cUUvoYs
Code: Select all
#dev by :
#khaled almalsi
#https://www.youtube.com/c/TIFTOK/
#create script name tiftokremove2
{
: local contentss "" ;
: set contentss ($contentss."<html> <head></head><body>") ;
:foreach i in [/tool user-manager user find where !actual-profile] do={
:local upload
:set upload [/tool user-manager user get $i upload-used]
:local download
:set download [/tool user-manager user get $i download-used]
:global cardusername
:set cardusername [/tool user-manager user get $i user]
:local total ((($upload+$download)/1024)/1024) ;
:set upload ((($upload)/1024)/1024)
:set download ((($download)/1024)/1024)
local uptime ;
:set uptime [/tool user-manager user get $i uptime-used];
:local newdata "the user is $cardusername upload is $upload and download is $download total is $total and total uptime used $uptime" ;
: set contentss ($contentss ."<br />". $newdata)
[/tool user-manager user remove $i]
}
: set contentss ($contentss ."</body></html>")
:put [$contentss]
}
#### end tiftokremove2
{
:local date [/system clock get date]
:local time [/system clock get time]
:local filec ("removelogstat-".[:pick $date 7 11]."-".[:pick $date 0 3]."-".[:pick $date 4 6]."-".[:pick $time 0 2].[:pick $time 3 5].".html")
:local script2write [/system script get [/system script find where name=tiftokremove2] source ]
:execute script=$script2write file=$filec
}