-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sometimes we don't want users changing stuff. We might be upgrading to a newwer version of PostgreSQL by dumping and loading into another server. Setting IN_MAINTANCE_MODE to true, in include/constants.local.php will enter maintenance mode If you attempt to visit any of these pages, you will be redirected to now-in-maintenance-mode.php: * bouncing.php * customize.php * committer-opt-in.php * filter-setup.php * forgotten-password.php * new-user.php * password-reset-via-token.php * pkg_upload.php * port-watch.php * report-subscriptions.php * watch-categories.php * watch-list-maintenance.php * watch-list.php Once at now-in-maintenance-mode.php, the page will reload every MAINTENANCE_MODE_RERESH_TIME_SECONDS seconds, as defined in include/constants.php
- Loading branch information
Showing
16 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
# | ||
# $Id: now-in-maintenance-mode.php | ||
# | ||
# Copyright (c) 1998-2006 DVL Software Limited | ||
# | ||
|
||
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/common.php'); | ||
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/freshports.php'); | ||
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/databaselogin.php'); | ||
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/getvalues.php'); | ||
|
||
freshports_ConditionalGet(freshports_LastModified()); | ||
|
||
if (IN_MAINTENCE_MODE) { | ||
header('Refresh: ' . MAINTENANCE_MODE_RERESH_TIME_SECONDS); | ||
} else { | ||
header('Location: /', TRUE, 307); | ||
} | ||
freshports_Start('Maintenance Mode', | ||
'freshports - new ports, applications', | ||
'FreeBSD, index, applications, ports'); | ||
|
||
$ServerName = str_replace('freshports', 'FreshPorts', $_SERVER['HTTP_HOST']); | ||
|
||
GLOBAL $FreshPortsName; | ||
GLOBAL $FreshPortsSlogan; | ||
|
||
|
||
?> | ||
<?php echo freshports_MainTable(); ?> | ||
|
||
<tr><td valign="top" width="100%"> | ||
|
||
<?php echo freshports_MainContentTable(NOBORDER); ?> | ||
|
||
|
||
<tr> | ||
<?php echo freshports_PageBannerText("Maintenance Mode"); ?> | ||
</tr> | ||
<TR><TD> | ||
|
||
<p> | ||
The website is now in maintenance mode. No updates are allowed during this process. | ||
</p> | ||
|
||
<p> | ||
This page will reload every <?php echo MAINTENANCE_MODE_RERESH_TIME_SECONDS; ?> seconds. When maintence mode finishes, this page will be redirect to the home page. | ||
</p> | ||
|
||
<p align="center"> | ||
<img src="images/work-in-progress.jpg" width="640" height="480" alt="work in progress"> | ||
</p> | ||
|
||
</TD></TR> | ||
|
||
</TD> | ||
</TABLE> | ||
</TD> | ||
|
||
<TD VALIGN="top" WIDTH="*" ALIGN="center"> | ||
<? | ||
echo freshports_SideBar(); | ||
?> | ||
</td> | ||
|
||
</TR> | ||
</TABLE> | ||
|
||
<?php | ||
echo freshports_ShowFooter(); | ||
?> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters