Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loop($list total(%IptvAccounts)) {
- set(#account,$next list item(%IptvAccounts),"Global")
- set(#username,$substring(#account,0,$find index(#account,":")),"Global")
- set(#password,$substring(#account,$add($find index(#account,":"),1),$subtract($subtract($text length(#account),$text length(#username)),1)),"Global")
- click(<href="mnglines.php">,"Left Click","No")
- wait(10)
- set(#LOG,"Checking Account : {#username} ...","Global")
- set(#userid,$page scrape("div title=\"{#username}\"","\" class=\"table-icon stats\""),"Global")
- if($comparison(#userid,"= Equals","")) {
- then {
- }
- else {
- set(#L1,$add($find index(#userid,"<b>"),3),"Global")
- set(#expired_date,$substring(#userid,#L1,10),"Global")
- set(#LOG,"Renewing {#username} ...","Global")
- set(#L1,$add($find index(#userid,"user_id="),8),"Global")
- set(#L2,$text length(#userid),"Global")
- set(#L,$subtract(#L2,#L1),"Global")
- set(#userid,$substring(#userid,#L1,#L),"Global")
- click(<href="mnglines.php?action=user_delete&user_id={#userid}">,"Left Click","No")
- wait(5)
- }
- }
- click(<href="add_user.php">,"Left Click","No")
- wait(3)
- type text(<username field>,#username,"Key Press")
- wait(1)
- type text(<name="password">,#password,"Key Press")
- wait(1)
- change dropdown(<name="package_id">,21)
- wait(10)
- change dropdown(<name="line_type">,1)
- wait(1)
- click(<value="Create New Line">,"Left Click","No")
- wait(5)
- click(<href="mnglines.php">,"Left Click","No")
- wait(5)
- }
Add Comment
Please, Sign In to add comment