TheDukeBastardo

code2

Sep 17th, 2018
21,817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. loop($list total(%IptvAccounts)) {
  2. set(#account,$next list item(%IptvAccounts),"Global")
  3. set(#username,$substring(#account,0,$find index(#account,":")),"Global")
  4. set(#password,$substring(#account,$add($find index(#account,":"),1),$subtract($subtract($text length(#account),$text length(#username)),1)),"Global")
  5. click(<href="mnglines.php">,"Left Click","No")
  6. wait(10)
  7. set(#LOG,"Checking Account : {#username} ...","Global")
  8. set(#userid,$page scrape("div title=\"{#username}\"","\" class=\"table-icon stats\""),"Global")
  9. if($comparison(#userid,"= Equals","")) {
  10. then {
  11. }
  12. else {
  13. set(#L1,$add($find index(#userid,"<b>"),3),"Global")
  14. set(#expired_date,$substring(#userid,#L1,10),"Global")
  15. set(#LOG,"Renewing {#username} ...","Global")
  16. set(#L1,$add($find index(#userid,"user_id="),8),"Global")
  17. set(#L2,$text length(#userid),"Global")
  18. set(#L,$subtract(#L2,#L1),"Global")
  19. set(#userid,$substring(#userid,#L1,#L),"Global")
  20. click(<href="mnglines.php?action=user_delete&user_id={#userid}">,"Left Click","No")
  21. wait(5)
  22. }
  23. }
  24. click(<href="add_user.php">,"Left Click","No")
  25. wait(3)
  26. type text(<username field>,#username,"Key Press")
  27. wait(1)
  28. type text(<name="password">,#password,"Key Press")
  29. wait(1)
  30. change dropdown(<name="package_id">,21)
  31. wait(10)
  32. change dropdown(<name="line_type">,1)
  33. wait(1)
  34. click(<value="Create New Line">,"Left Click","No")
  35. wait(5)
  36. click(<href="mnglines.php">,"Left Click","No")
  37. wait(5)
  38. }
Add Comment
Please, Sign In to add comment