cvs: phpweb /manual add-note.php admin-notes.php

From: Date: Wed, 19 Sep 2001 18:11:58 +0000
Subject: cvs: phpweb /manual add-note.php admin-notes.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6453@lists.php.net to get a copy of this message
jimw Wed Sep 19 14:11:58 2001 EDT Modified files: /phpweb/manual add-note.php admin-notes.php Log: more primary/backup handling Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.23 phpweb/manual/add-note.php:1.24 --- phpweb/manual/add-note.php:1.23 Tue Aug 28 02:45:35 2001 +++ phpweb/manual/add-note.php Wed Sep 19 14:11:57 2001 @@ -4,9 +4,17 @@ # # Notes only available at main mirror site for now # -if ($MYSITE!='http://www.php.net/') { - Header('Location: http://www.php.net' . $HTTP_SERVER_VARS['REQUEST_URI'] ); - exit; +if (!is_primary_site()) { + if (is_backup_primary()) { + commonHeader("Service Unavailable");?> +<p>Sorry, you can't add a note to the manual right now.</p> +<?php + commonFooter(); + exit; + } + + header('Location: http://www.php.net' . $HTTP_SERVER_VARS['REQUEST_URI'] ); + exit; } $mailto = 'rasmus@php.net'; Index: phpweb/manual/admin-notes.php diff -u phpweb/manual/admin-notes.php:1.40 phpweb/manual/admin-notes.php:1.41 --- phpweb/manual/admin-notes.php:1.40 Tue Aug 28 02:45:36 2001 +++ phpweb/manual/admin-notes.php Wed Sep 19 14:11:57 2001 @@ -59,8 +59,17 @@ require_once 'cvs-auth.inc'; require_once 'email-validation.inc'; - if(!strstr($MYSITE,"www.php.net")) { - Header("Location: http://www.php.net/manual/admin-notes.php"); + + if (!is_primary_site()) { + if (is_backup_primary()) { + commonHeader("Service Unavailable");?> +<p>Sorry, you can't administer the manual notes right now.</p> +<?php + commonFooter(); + exit; + } + + header("Location: http://www.php.net/manual/admin-notes.php"); exit; }

« previous php.mirrors (#6453) next »