Skip to content

Commit

Permalink
Move reports and news out of document root
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Sep 26, 2019
1 parent 7d9a983 commit 5df9729
Show file tree
Hide file tree
Showing 48 changed files with 11 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion html/reports/2019-09.txt → data/reports/2019-09.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
13.11 0.17 0.83 3.71
15.22 0.17 1.67 3.96
2019-09-03 1.5 Writing Xdebug August 2019 update
2019-09-03 bug 1 Investigate Pull Request #474 for issue #1534 and #1665
2019-09-05 bug 3 Fixed issue #1665: Segfault with garbage collection and complex function arguments
Expand All @@ -8,3 +8,8 @@
2019-09-17 bug 1.25 Reproduced #1699, and provided a fix
2019-09-19 bug 0.25 Triaging bug #1703 (Symbol not found: _compiler_globals)
2019-09-19 bug 0.5 Triaging bug #1704 (Xdebug requires Zend Engine API version 320190529), starting and publishing new Windows builds of 2.8.0beta2
2019-09-20 xdebug3 2.5 Refactoring Xdebug globlas into constituent parts
2019-09-21 xdebug3 2 Refactoring Xdebug globlas into constituent parts
2019-09-22 xdebug3 0.5 Refactoring Xdebug globlas into constituent parts
2019-09-23 website 1 Merging Matt’s website re-architecture PR, added caching for download and log
2019-09-23 xdebug3 3 Windows part of moving files, and fixing the “core” issue/directory.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/Controller/NewsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class NewsController
*/
private static function getNewsItems() : array
{
$d = glob("news/*.txt");
$d = glob("../data/news/*.txt");
sort($d);
$d = array_reverse( $d );

Expand All @@ -21,7 +21,7 @@ private static function getNewsItems() : array
foreach ($d as $item) {
$file = file( $item );
$title = array_shift( $file );
$date = new \DateTimeImmutable(preg_replace( '@^news/(.*).txt$@', '\1', $item ));
$date = new \DateTimeImmutable(preg_replace( '@.+news/(.*).txt$@', '\1', $item ));
$contents = join( '', $file );

$news_items[] = new NewsItem($title, $date, $contents);
Expand Down
6 changes: 3 additions & 3 deletions src/Controller/SupportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function() : SupportLog {

public static function getLogModel() : SupportLog
{
$d = \dir( 'reports' );
$d = \dir( '../data/reports' );

$files = [];

Expand All @@ -60,7 +60,7 @@ function($file) {

private static function getMonthReport(string $file) : SupportLogMonthReport
{
$f = file( 'reports/'. $file );
$f = file( '../data/reports/'. $file );
$summary = array_shift($f);

preg_match( '/[0-9]{4}-[0-9]{2}/', $file, $matches );
Expand Down Expand Up @@ -116,7 +116,7 @@ private static function getMonthReport(string $file) : SupportLogMonthReport
*/
private static function get_supporters() : array
{
$f = file( 'reports/supporters.txt' );
$f = file( '../data/reports/supporters.txt' );

$lines = [];

Expand Down

0 comments on commit 5df9729

Please sign in to comment.