Server not update-compatible or file at '.$updateserver.' not available.'; }else{ $latest = explode(".",$getnew); $ownversion = explode(".",$version); if($latest[0]>$ownversion[0]) echo '

New WebSPELL-Version available!

'; elseif($latest[0]==$ownversion[0] AND $latest[1]>$ownversion[1]) echo '

New functions for webSPELL'.$version[0].' available!

'; elseif($latest[0]==$ownversion[0] AND $latest[1]==$ownversion[1] AND $latest[2]>$ownversion[2]) echo '

New updates for webSPELL'.$version[0].' available!

'; } } elseif($_GET['action'] == "update") { //update server sends update information in following form: package1:updateversion1:additional1.package2:additional2:WritttenBy2..., e.g. members:4.01.30:written by FS if($getnew = file_get_contents($updateserver."index.php?version=".$version."")) { $updates = explode("##",$getnew); //get packages echo'

webSPELL-update

'; echo' '; foreach($updates as $value=>$package) { $updateinfo = explode("#",$package); //get packageinfos if($updateinfo[0]=="noupdates") { echo ''; }else { echo ''; } } echo'
filenameversioninformation
no updates available!
'.$updateinfo[0].'.php'.$updateinfo[1].''.$updateinfo[2].'

'; echo 'Get the newest webSPELL - Version here!'; } } ?>