-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
219 lines (186 loc) · 10.1 KB
/
index.php
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
echo "<link rel='stylesheet' type='text/css' href='style.css' />";
include('variables.php');
#echo '<div class="about">';
#echo '<a href="http://updates.version.report/moreinfo">More Info</a>';
#echo '</div>';
$today = date("m.d.y @ H:i");
echo '<div class="description">A simple page designed to provide you with the latest stable version numbers for various pieces of software. A script will automatically run every four hours to check for any updated versions and will alter the versions displayed if one is detected</div>';
echo '<div class="versions">';
echo "";
# Apache version string
echo '<div>';
echo '<span class="field-tip apache">';
printf(" Apache: %s.%s.%s ", $apache_major,$apache_minor,$apache_patch) ;
echo '<span class="tip-content apache">Updated '.$apache_update.'</span></span>';
echo '</div>';
#echo " Apache: $apache_major.$apache_minor.$apache_patch\n";
# bbPress version string
echo '<div>';
echo '<span class="field-tip bbpress">';
printf(" bbPress: %s.%s.%s ", $bbpress_major,$bbpress_minor,$bbpress_patch ) ;
echo '<span class="tip-content bbpress">Updated '.$bbpress_update.'</span></span>';
echo '</div>';
#echo " bbPress: $bbpress_major.$bbpress_minor.$bbpress_patch\n ";
# CentOS 6 version string
echo '<div>';
echo '<span class="field-tip centos6">';
printf(" CentOS 6: %s.%s ", $centos6_major,$centos6_minor ) ;
echo '<span class="tip-content centos6">Updated '.$centos6_update.'</span></span>';
echo '</div>';
#echo " CentOS 6: $centos6_major.$centos6_minor\n ";
# CentOS 7 version string
echo '<div>';
echo '<span class="field-tip centos7">';
printf(" CentOS 7: %s ", $centos7_all ) ;
#printf(" CentOS 7: %s.%s ", $centos7_major,$centos7_minor ) ;
echo '<span class="tip-content centos7">Updated '.$centos7_update.'</span></span>';
echo '</div>';
#echo " CentOS 7: $centos7_major.$centos7_minor\n ";
# cPanel version string
echo '<div>';
echo '<span class="field-tip cpanel">';
printf(" cPanel: %s.%s.%s.%s ", $cpanel_major,$cpanel_minor,$cpanel_patch,$cpanel_build ) ;
echo '<span class="tip-content cpanel">Updated '.$cpanel_update.'</span></span>';
echo '</div>';
#echo " cPanel: $cpanel_major.$cpanel_minor.$cpanel_patch.$cpanel_build\n ";
# Drupal 6 version string
echo '<div>';
echo '<span class="field-tip drupal6">';
printf(" Drupal 6: %s.%s ", $drupal6_major,$drupal6_minor ) ;
echo '<span class="tip-content drupal6">Updated '.$drupal6_update.'</span></span>';
echo '</div>';
#echo " Drupal 6: $drupal6_major.$drupal6_minor\n ";
# Drupal 7 version string
echo '<div>';
echo '<span class="field-tip drupal7">';
printf(" Drupal 7: %s.%s ", $drupal7_major,$drupal7_minor ) ;
echo '<span class="tip-content drupal7">Updated '.$drupal7_update.'</span></span>';
echo '</div>';
#echo " Drupal 7: $drupal7_major.$drupal7_minor\n ";
# Joomla 2 version string
echo '<div>';
echo '<span class="field-tip joomla2">';
printf(" Joomla 2: %s.%s.%s ", $joomla2_major,$joomla2_minor,$joomla2_patch ) ;
echo '<span class="tip-content joomla2">Updated '.$joomla2_update.'</span></span>';
echo '</div>';
#echo " Joomla 2: $joomla2_major.$joomla2_minor.$joomla2_patch\n ";
# Joomla 3 version string
echo '<div>';
echo '<span class="field-tip joomla3">';
printf(" Joomla 3: %s.%s.%s ", $joomla3_major,$joomla3_minor,$joomla3_patch ) ;
echo '<span class="tip-content joomla3">Updated '.$joomla3_update.'</span></span>';
echo '</div>';
#echo " Joomla 3: $joomla3_major.$joomla3_minor.$joomla3_patch\n ";
# Magento version string
echo '<div>';
echo '<span class="field-tip magento">';
printf(" Magento: %s.%s.%s.%s ", $magento_major,$magento_minor,$magento_patch,$magento_build ) ;
echo '<span class="tip-content magento">Updated '.$magento_update.'</span></span>';
echo '</div>';
#echo " Magento: $magento_major.$magento_minor.$magento_patch.$magento_build\n ";
# MariaDB version string
echo '<div>';
echo '<span class="field-tip mariadb">';
printf(" MariaDB: %s.%s.%s ", $mariadb_major,$mariadb_minor,$mariadb_patch ) ;
echo '<span class="tip-content mariadb">Updated '.$mariadb_update.'</span></span>';
echo '</div>';
#echo " MariaDB: $mariadb_major.$mariadb_minor.$mariadb_patch\n ";
# MediaWIKI version string
echo '<div>';
echo '<span class="field-tip mediawiki">';
printf(" MediaWiki: %s.%s.%s ", $mediawiki_major,$mediawiki_minor,$mediawiki_patch ) ;
echo '<span class="tip-content mediawiki">Updated '.$mediawiki_update.'</span></span>';
echo '</div>';
#echo " MediaWiki: $mediawiki_major.$mediawiki_minor.$mediawiki_patch\n ";
# MySQL version string
echo '<div>';
echo '<span class="field-tip mysql">';
printf(" MySQL: %s.%s.%s ", $mysql_major,$mysql_minor,$mysql_patch ) ;
echo '<span class="tip-content mysql">Updated '.$mysql_update.'</span></span>';
echo '</div>';
#echo " MySQL: $mysql_major.$mysql_minor.$mysql_patch\n ";
# NGINX version string
echo '<div>';
echo '<span class="field-tip nginx">';
printf(" Nginx: %s.%s.%s ", $nginx_major,$nginx_minor,$nginx_patch ) ;
echo '<span class="tip-content nginx">Updated '.$nginx_update.'</span></span>';
echo '</div>';
#echo " Nginx: $nginx_major.$nginx_minor.$nginx_patch\n";
# PHP version string
echo '<div>';
echo '<span class="field-tip php">';
printf(" PHP: %s.%s.%s ", $php_major,$php_minor,$php_patch ) ;
echo '<span class="tip-content php">Updated '.$php_update.'</span></span>';
echo '</div>';
#echo " PHP: $php_major.$php_minor.$php_patch\n ";
# phpBB version string
echo '<div>';
echo '<span class="field-tip phpbb">';
printf(" phpBB: %s.%s.%s ", $phpbb_major,$phpbb_minor,$phpbb_patch ) ;
echo '<span class="tip-content phpbb">Updated '.$phpbb_update.'</span></span>';
echo '</div>';
#echo " phpBB: $phpbb_major.$phpbb_minor.$phpbb_patch\n ";
# Ubuntu 10 LTS version string
echo '<div>';
echo '<span class="field-tip ubuntu10lts">';
printf("Ubuntu 10 LTS: %s.%02s.%s ", $ubuntu10LTS_major,$ubuntu10LTS_minor,$ubuntu10LTS_patch ) ;
echo '<span class="tip-content ubuntu10lts">Updated '.$ubuntu10LTS_update.'</span></span>';
echo '</div>';
#echo "Ubuntu 10 LTS: $ubuntu10LTS_major.$ubuntu10LTS_minor.$ubuntu10LTS_patch\n ";
# Ubuntu 12 LTS version string
echo '<div>';
echo '<span class="field-tip ubuntu12lts">';
printf("Ubuntu 12 LTS: %s.%02s.%s ", $ubuntu12LTS_major,$ubuntu12LTS_minor,$ubuntu12LTS_patch ) ;
echo '<span class="tip-content ubuntu12lts">Updated '.$ubuntu12LTS_update.'</span></span>';
echo '</div>';
#echo "Ubuntu 12 LTS: $ubuntu12LTS_major.$ubuntu12LTS_minor.$ubuntu12LTS_patch\n ";
# Ubuntu 14 version string
echo '<div>';
echo '<span class="field-tip ubuntu14">';
if (strlen($ubuntu14_patch) == 0){
printf(" Ubuntu 14: %s.%02s ", $ubuntu14_major,$ubuntu14_minor);
} else {
printf(" Ubuntu 14: %s.%02s.%s ", $ubuntu14_major,$ubuntu14_minor,$ubuntu14_patch);
}
echo '<span class="tip-content ubuntu14">Updated '.$ubuntu14_update.'</span></span>';
echo '</div>';
#printf(" Ubuntu 14: %s.%s ", $ubuntu14_major,$ubuntu14_minor ) ;
#echo " Ubuntu 14: $ubuntu14_major.$ubuntu14_minor\n ";
# Ubuntu 14 LTS version string
echo '<div>';
echo '<span class="field-tip ubuntu14lts">';
printf("Ubuntu 14 LTS: %s.%02s.%s ", $ubuntu14LTS_major,$ubuntu14LTS_minor,$ubuntu14LTS_patch ) ;
echo '<span class="tip-content ubuntu14lts">Updated '.$ubuntu14LTS_update.'</span></span>';
echo '</div>';
#echo "Ubuntu 14 LTS: $ubuntu14LTS_major.$ubuntu14LTS_minor.$ubuntu14LTS_patch\n ";
# Ubuntu 15 version string
echo '<div>';
echo '<span class="field-tip ubuntu15">';
if (strlen($ubuntu15_patch) == 0){
printf(" Ubuntu 15: %s.%02s ", $ubuntu15_major,$ubuntu15_minor);
} else {
printf(" Ubuntu 15: %s.%02s.%s ", $ubuntu15_major,$ubuntu15_minor,$ubuntu15_patch);
}
echo '<span class="tip-content ubuntu15">Updated '.$ubuntu15_update.'</span></span>';
echo '</div>';
#printf(" Ubuntu 15: %s.%02s ", $ubuntu15_major,$ubuntu15_minor ) ;
# vBulletin version string
echo '<div>';
echo '<span class="field-tip vbulletin">';
printf(" vBulletin: %s.%s.%s ", $vbulletin_major,$vbulletin_minor,$vbulletin_patch ) ;
echo '<span class="tip-content vbulletin">Updated '.$vbulletin_update.'</span></span>';
echo '</div>';
#echo " vBulletin: $vbulletin_major.$vbulletin_minor.$vbulletin_patch\n ";
# Wordpress version string
echo '<div>';
echo '<span class="field-tip word">';
if (strlen($word_patch) == 0){
printf(" WordPress: %s.%s ", $word_major,$word_minor,$word_patch ) ;
} else {
printf(" WordPress: %s.%s.%s ", $word_major,$word_minor,$word_patch ) ;
}
echo '<span class="tip-content word">Updated '.$word_update.'</span></span>';
echo '</div>';
echo '</div>';
?>