Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 20feccf

Browse files
committed
remove php version check
1 parent ba5cd3b commit 20feccf

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

install/checkinstall.php

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<title>phpVMS Install Checker</title>
44
<style>
5-
body { font-family: "Lucida Grande" , Verdana, Geneva, Sans-serif; font-size: 11px; line-height: 1.8em; }
5+
body { font-family: "Lucida Grande" , Verdana, Geneva, Sans-serif; font-size: 11px; line-height: 1.8em; }
66
span { font-weight: bold; }
77
.style1 { color: #F60; font-size: x-large; filter: DropShadow(Color=#000, OffX=5, OffY=5, Positive=10); }
88
.style2 { font-size: small; }
@@ -17,7 +17,7 @@
1717

1818
/* Check install
1919
This checks a set of directories against a hash list generated by md5sum
20-
20+
2121
*/
2222
error_reporting(E_ALL);
2323
ini_set('display_errors', 'on');
@@ -57,17 +57,7 @@ function success($title, $txt)
5757

5858
echo '<strong>Checking PHP version</strong><br />';
5959
$version = phpversion();
60-
$version = substr($version, 0, 3);
61-
62-
if($version[0] == '4' || $version == '5.0' || $version == '5.1')
63-
{
64-
error('Error!', 'Must be running at least PHP 5.2');
65-
}
66-
else
67-
{
68-
$version = phpversion();
69-
success('OK', "PHP version is {$version}.x");
70-
}
60+
success('OK', "PHP version is {$version}.x");
7161
echo '<br />';
7262

7363
echo '<strong>ASP Tags</strong><br />';
@@ -138,27 +128,27 @@ function success($title, $txt)
138128
while(!feof($fp))
139129
{
140130
$line = fgets($fp);
141-
131+
142132
$line = trim($line);
143133
if(empty($line))
144134
continue;
145-
135+
146136
fscanf($fp, '%s %s', $checksum, $file);
147137
$total ++;
148138
$file = str_replace('*./', '../', $file);
149-
139+
150140
if($file == '../core/local.config.php' || substr_count($file, 'unittest') > 0 || empty($file))
151141
{
152142
continue;
153143
}
154-
144+
155145
if(!file_exists($file))
156146
{
157147
$errors++;
158148
error('Error', "{$file} doesn't exist");
159149
continue;
160150
}
161-
151+
162152
$calc_sum = md5_file($file);
163153
$file = str_replace('../', '/', $file); # make pretty
164154
if($calc_sum === false)
@@ -167,14 +157,14 @@ function success($title, $txt)
167157
error('Checksum failed', "{$file} - permissions might be incorrect!");
168158
continue;
169159
}
170-
160+
171161
if($calc_sum != $checksum)
172162
{
173163
$errors++;
174164
error('Checksum failed', "{$file} did not match, possibly corrupt or out of date");
175165
continue;
176166
}
177-
167+
178168
$file = '';
179169
}
180170

@@ -186,4 +176,4 @@ function success($title, $txt)
186176
echo "<br /><strong> -- Checked {$total} files, found {$errors} errors</strong><br />";
187177
?>
188178
</body>
189-
</html>
179+
</html>

0 commit comments

Comments
 (0)