UCOZ Re-activate

By ^WeSt on Sep 03, 2015

Requested for: DinDin

Contact: http://westor.ucoz.com/contact


Description:

This is an ucoz.com re-activation code that it will re-activate your website if the ucoz will deactivates it, you have only to setup with your
website and the re-activation url (that ucoz sends you in your e-mail), when you paste the code and setup the settings restart the mIRC and the it will automatically check every 1 hour your website to see if it is activated or not.


Setup:

  1. Change the WEBSITE-HERE with your (ucoz) website.
  2. Change the URL-HERE with your re-activate url.

; ---------- Settings ----------

alias mysite { return WEBSITE-HERE }
; Fill your website (UCOZ), without the http:// or www.
; e.g: westorcenter.ucoz.com

alias reactivate_url { return URL-HERE }
; Fill the re-activation url that will automatically run if the website is deactivated
; e.g: http://s101.ucoz.net/panel/?a=roff&t=ae725ca44c2200f29962d4bf2c9e9727157720f17695dda9

; --------- End of Settings ---------

alias check_center { sockopen chk_center_ $+ $rand(1,10000000) $mysite 80 }
ON *:START: { .timer[CHECK_CENTER] -o 0 3600 check_center }
ON *:SOCKOPEN:chk_center_*: {
  if ($sockerr) { return }
  sockwrite -nt $sockname GET / HTTP/1.1
  sockwrite -nt $sockname Host: $sock($sockname).addr
  sockwrite -nt $sockname $crlf
}

ON *:SOCKREAD:chk_center_*: {
  if ($sockerr) { return }
  var %r 
  sockread %r
  if (*WEBSITE DEACTIVATED* iswm %r) { 
    echo -ta WARNING: The website ( $+ $mysite $+ ) has been deactivated, trying now to re-activate it automatically...
    url -n $reactivate_url
  }
}   

Enjoy!

Comments

Sign in to comment.
ProIcons   -  Sep 07, 2015

You can just open a Socket Connection to the given url, instead of opening it in a new Window. Thats pointless

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.