Last change
on this file since 31353 was
30484,
checked in by SergeD, 10 years ago
|
version 1.0.14 - please refer to changelog for details
|
File size:
655 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $lines = file('changelog.txt'); |
---|
4 | $show = FALSE; |
---|
5 | $first = TRUE; |
---|
6 | |
---|
7 | echo '<div class="changelog">'; |
---|
8 | |
---|
9 | foreach ($lines as $line_num => $line): |
---|
10 | if (trim($line)): |
---|
11 | if ($show): |
---|
12 | if (substr( $line, 0, 7 ) === "version"): |
---|
13 | if ($first): |
---|
14 | $first = FALSE; |
---|
15 | else: |
---|
16 | echo "</ul>"; |
---|
17 | endif; |
---|
18 | echo "<h3>" . htmlspecialchars(str_replace("version ", "", $line)) . "</h3>\n<ul>"; |
---|
19 | else: |
---|
20 | echo "<li>" . htmlspecialchars($line) . "</li>\n"; |
---|
21 | endif; |
---|
22 | elseif (trim($line) == "=== Changelog ==="): |
---|
23 | $show = TRUE; |
---|
24 | endif; |
---|
25 | endif; |
---|
26 | endforeach; |
---|
27 | echo "</ul></div>"; |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.