Skip to content

Commit

Permalink
Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
Browse files Browse the repository at this point in the history
3/4 - Update archive directory.
  • Loading branch information
sgolemon committed May 31, 2019
1 parent c0afd74 commit 1cdde2e
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion archive/1998.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/1998.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 1998", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/1999.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/1999.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 1999", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2000.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2000.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2000", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2001.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2001.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2001", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2002.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2002.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2002", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2003.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2003.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2003", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2004.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2004.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2004", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2005.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2005.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2005", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2006.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2006.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2006", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2007.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2007.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2007", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2008.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2008.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2008", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2009.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2009.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2009", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2010.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2010.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2010", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2011.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2011.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2011", array("cache" => true));
?>
Expand Down
2 changes: 1 addition & 1 deletion archive/2012.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'archive/2012.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
news_archive_sidebar();
site_header("News Archive - 2012", array("cache" => true));
?>
Expand Down
4 changes: 2 additions & 2 deletions archive/2013.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2013.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2013", array("cache" => true));
?>
Expand Down
4 changes: 2 additions & 2 deletions archive/2014.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2014.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2014", array("cache" => true));
?>
Expand Down
4 changes: 2 additions & 2 deletions archive/2015.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2015.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2015");
//site_header("News Archive - 2015", array("cache" => true));
Expand Down
4 changes: 2 additions & 2 deletions archive/2016.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2016.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2016");
//site_header("News Archive - 2016", array("cache" => true));
Expand Down
4 changes: 2 additions & 2 deletions archive/2017.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2017.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2017");
//site_header("News Archive - 2017", array("cache" => true));
Expand Down
4 changes: 2 additions & 2 deletions archive/2018.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2018.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2018");
//site_header("News Archive - 2018", array("cache" => true));
Expand Down
4 changes: 2 additions & 2 deletions archive/2019.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

$_SERVER['BASE_PAGE'] = 'archive/2019.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2019");
//site_header("News Archive - 2019", array("cache" => true));
Expand Down
4 changes: 2 additions & 2 deletions archive/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
$i = 0;
do {
$y = date("Y")-$i;
Expand All @@ -9,5 +9,5 @@
}
} while(++$i<3);

include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
include_once __DIR__ . '/../include/errors.inc';
error_noservice();

0 comments on commit 1cdde2e

Please sign in to comment.