1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?php
//----------------------------------// // Copyright by Matthias Speer // //----------------------------------//
include('./config.inc.php');
include('./auth.php'); ob_implicit_flush(true); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE>Check Version</TITLE> <META http-equiv="Content-Type" content="text/html; charset=<?php echo GetLocText('charset', false); ?>"> <LINK href="style/global.css" rel="stylesheet" type="text/css"> <SCRIPT language="JavaScript" src="./script/frames.js" type="text/JavaScript"></SCRIPT> </HEAD>
<BODY class=body_form> <?php DisplayMessage(GetLocText('ver_wait')); echo '<BR>'; $port=80; $ip=@gethostbyname('phpmyserver.de'); $fh = @fsockopen ($ip, $port, &$errno, &$errstr, 30); if ($fh) { @fputs($fh, "GET /version/version.dat HTTP/1.0\r\n"); @fputs($fh, "Host: www.phpmyserver.de\r\n\r\n"); $rs=''; while (!@feof($fh)) { $rs.= @fgets($fh,128); } @fclose($fh); if (preg_match('/<Version>([^<>]*)<\/Version>/i', $rs, $match)) { if (strcmp(trim($match[1]), $PMS['version'])==0) { DisplayMessage(GetLocText('ver_utd')); } else { DisplayMessage(GetLocText('ver_new'), '<A href="http://www.phpmyserver.de" class=text2 target="_top">http://www.phpmyserver.de</A>'); } } else { DisplayError(GetLocText('err_ver'), '<A href="http://www.phpmyserver.de" class=text2 target="_top">http://www.phpmyserver.de</A>'); } } else { DisplayError($errstr); } ?> </BODY> </HTML>
|