Script for Last Sync Checkin

Now the server script works properly but there is a limitation in the server script doctype.

Please check it.