Update Check
A new feature into 1.1, this feature allows the user to check for an update for SystemInfo. The feature also includes an option to check every week, day, month or every time you connect (dont worry, I ain't releasing that often :P)
For the security conscious amongst you... here is a run down of what the update check actually does.
The script creates a socket connection to the http server at http://www.phucknut.net, it then uses the HTTP command GET /scripts/update.php with the variables si for $script and $currver equal to whatever version you are running. The HTTP server then feeds back loads of crap containing stuff for the client side code. The script DOES NOT send any information to the server other than what script it is and what version it is. Bandwidth consumption is minimal, 500 bytes at the most.
Source code:
The PHP side of the code looks like this:
<HTML><BODY>
<?php
function printBrk( $txt )
{
print("$txt
");
}
if ( $script == "si" ) {
if ( $currver == 1.3 ) {
printBrk("NO UPDATE");
}
if ( $currver < 1.3 ) {
printBrk("NEW VERSION 1.3");
printBrk("URL http://www.phucknut.net/scripts/v1.3sys.zip");
printBrk("CHANGES *These are the changes for 1.3, be seksed");
printBrk("DATE SINCE Never :)");
}
if ( $currver < 1.2 ) {
printBrk("NEW VERSION 1.2");
printBrk("URL http://www.phucknut.net/scripts/v1.2sys.zip");
printBrk("CHANGES *These are the changes for 1.2, be seksed");
printBrk("DATE SINCE Never :)");
}
if ( $currver < 1.1 ) {
printBrk("NEW VERSION 1.1");
printBrk("URL http://www.phucknut.net/scripts/v1.1sys.zip");
printBrk("CHANGES *LOADSA CRAP");
printBrk("DATE SINCE In the near future...");
}
}
if ( $script == "gs2m" ) {
if ( $currver == 1 ) {
printBrk("NO UPDATE");
}
}
print("<END FILE>"); ?>
</BODY></HTML>
THIS IS JUST A DEMO NOT THE ACTUAL CODE ON THE SERVER :) But the code format looks more or less like that.
The client side code looks like this just takes this information and spits it out in a dialog to you.
C}{$