Commit: a54c0acc49c950b7932571b0019a85c5572182af Author: Christoph M. Becker <cmbecke...@gmx.de> Wed, 20 Jan 2021 14:50:07 +0100 Parents: 58b512b43641901c22e518ed10fdb6d67d60f9cd Branches: master
Link: http://git.php.net/?p=web/windows.git;a=commitdiff;h=a54c0acc49c950b7932571b0019a85c5572182af Log: Don't hard-code the base URL of the Website Instead we make it configurable, to ease local development (and potentially moving the Website). Changed paths: M include/config.php M templates/header.php Diff: diff --git a/include/config.php b/include/config.php index 5004084..ebed6b9 100644 --- a/include/config.php +++ b/include/config.php @@ -1,4 +1,5 @@ <?php +define('BASE_URL', 'https://windows.php.net/'); define('APP_PATH', 'C:/domains/windows.php.net/'); define('SNAPS_DIR', APP_PATH . 'docroot/downloads/snaps/'); define('RELEASES_DIR', APP_PATH . 'docroot/downloads/releases/'); diff --git a/templates/header.php b/templates/header.php index 98471a0..afc5cb5 100644 --- a/templates/header.php +++ b/templates/header.php @@ -16,17 +16,17 @@ <ul id="root"> <li id="header"> <div class="content"> - <h1><a href="https://windows.php.net/index.php">PHP: Hypertext Preprocessor</a></h1> + <h1><a href=<?=BASE_URL?>index.php">PHP: Hypertext Preprocessor</a></h1> </div><!-- .content --> </li><!-- .header--> <li id="main-menu"> <ul id="top-navigation"> - <li><a href="https://windows.php.net">Home</a></li> - <li><a href="https://windows.php.net/download/">Downloads</a></li> - <li><a href="https://windows.php.net/qa/">QA Releases</a></li> - <li><a href="https://windows.php.net/snapshots/">Snapshots</a></li> - <li><a href="https://windows.php.net/team/">Team</a></li> + <li><a href="<?=BASE_URL?>">Home</a></li> + <li><a href="<?=BASE_URL?>download/">Downloads</a></li> + <li><a href="<?=BASE_URL?>qa/">QA Releases</a></li> + <li><a href="<?=BASE_URL?>snapshots/">Snapshots</a></li> + <li><a href="<?=BASE_URL?>team.php">Team</a></li> <li class="last"><a href="http://www.php.net">PHP.net site</a></li> </ul> </li><!-- .main-menu--> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php