com web/php: force the account requests to www.php.net: git-php.php
| From: | Paul Dragoonis | Date: | Mon, 28 Jan 2013 01:33:26 +0000 |
| Subject: | com web/php: force the account requests to www.php.net: git-php.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22916@lists.php.net to get a copy of this message | ||
Commit: 1efb7d7696252825c51fcd1039bf65cff6a7c792
Author: Ferenc Kovacs <tyra3l@gmail.com> Mon, 28 Jan 2013 02:28:25 +0100
Parents: 48a0887282e4b6eda247e8b53a0039860fc443ca
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=1efb7d7696252825c51fcd1039bf65cff6a7c792
Log:
force the account requests to www.php.net
Changed paths:
M git-php.php
Diff:
diff --git a/git-php.php b/git-php.php
index 7a4ac9a..9c9da8f 100644
--- a/git-php.php
+++ b/git-php.php
@@ -5,6 +5,12 @@ include_once $_SERVER['DOCUMENT_ROOT'] .
'/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
+// Force the account requests to www.php..net
+if ($MYSITE != "http://www.php.net/" &&
$MYSITE != 'http://php.net/') {
+ header('Location: http://www.php.net/'.$_SERVER['BASE_PAGE']);
+ exit;
+}
+
$SIDEBAR_DATA = '
<h3>More about Git</h3>
<p>