A custom uptime PHP script needs a few fixes:
1) Some sort of cookie (or something else that will work) functionality that remembers the logged in user's entire last UI settings (position of opened windows, which windows were opened and the other UI settings etc.) and recreate the last UI look at user's next login and page reload or refresh. IP address and cookies should both be used for this functionality.
2) Replace the javascript confirm for deleting and pausing the uptime monitors with a jquery confirmation functionality with event handlers that trigger a DB call if OK is pressed and closing of the confirmation window if No is pressed.
The page should not refresh or reload at any time during this procedure and only the <div> section that displays the monitors should be refreshed as to "remove" the deleted monitor from the list.
3) Whenever a new monitor is created (by submitting the existing monitor creation form) the ajax functionality must check if the external file (where the form contents were submitted to) has returned a response, that the user that submitted the form is a paid user.
If the logged in user is not a paid user the form submission AND/OR insertion of the new monitor into the db is rejected. At this instance a modal dhtm window is opened where the user is prompted to upgrade to a paid account with a paypal button.
4) Add fetching headers and GET functionality after the existing fsockopen functionality. One possibility is to use get_headers(); to read the header if the fsockopen socket connection fails and extrude the "location" URL from it and then call GET to fetch that location.
If that location responds to the HTTP GET call then we can assume the site is up, if not try fetching an always present tag like <html> or <head> tag, or something similar. If this also fails then the website is down - proceed with the existing code already present in the script, like sending an alert email, etc.
Please quote VITA for your bid to be considered.
**IMPORTANT:** I will extend the delivery deadline for 3 days each time if there will be significant progress made. You will be given only the appropriate select files to work on here and no server logins or ftp logins will be given.
Bo