Proposed patch to cal.php
| From: | Jacques | Date: | Fri, 13 Jul 2001 03:20:42 +0000 |
| Subject: | Proposed patch to cal.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5526@lists.php.net to get a copy of this message | ||
Hi all,
Below is my proposed patch to cal.php which redirects to http://www.php.net/
if the mirror site is not the primary site. I'll commit it to CVS if
there are no problems.
Regards
--jm
jacques@shell:~/cvsstuff/phpweb$ cvs diff
cvs server: Diffing .
Index: cal.php
===================================================================
RCS file: /repository/phpweb/cal.php,v
retrieving revision 1.14
diff -u -r1.14 cal.php
--- cal.php 12 Jul 2001 18:21:05 -0000 1.14
+++ cal.php 13 Jul 2001 03:18:46 -0000
@@ -1,5 +1,11 @@
<?php
require_once 'prepend.inc';
+
+ if (!is_primary_site() || !strstr($MYSITE,"localhost")) {
+ header("Location: http://www.php.net/cal.php");
+ exit;
+ }
+
commonHeader("Event Calendar",1);
require_once 'cvs-auth.inc';