From 31c1cd305f440ce7072b759641f09a9a75328753 Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Fri, 25 Nov 2011 11:28:37 +0000 Subject: [PATCH] Fixes for https://bugs.cacert.org/view.php?id=965 : Outsource / fix Webdb text pages id=12, 13, (17) --- includes/account_stuff.php | 2 +- includes/general_stuff.php | 2 +- includes/tverify_stuff.php | 2 +- pages/account/37.php | 21 +++++++-------------- pages/account/38.php | 6 +++++- pages/index/12.php | 21 +++++++-------------- pages/index/13.php | 6 +++++- www/account.php | 4 ++++ www/index.php | 7 +++++++ 9 files changed, 38 insertions(+), 33 deletions(-) diff --git a/includes/account_stuff.php b/includes/account_stuff.php index b6fdd7a..108bd57 100644 --- a/includes/account_stuff.php +++ b/includes/account_stuff.php @@ -277,7 +277,7 @@ function hideall() { ?> -
| | | +
| | | | | ©2002-
diff --git a/includes/general_stuff.php b/includes/general_stuff.php index 088c39e..80cd8a7 100644 --- a/includes/general_stuff.php +++ b/includes/general_stuff.php @@ -131,7 +131,7 @@ if(!function_exists("showfooter"))
- | | | + | | | | | | ©2002-
diff --git a/includes/tverify_stuff.php b/includes/tverify_stuff.php index 46f49f6..93f7c32 100644 --- a/includes/tverify_stuff.php +++ b/includes/tverify_stuff.php @@ -66,7 +66,7 @@ if(!function_exists("showfooter"))
- | | | + | | | | | | | ©2002-
diff --git a/pages/account/37.php b/pages/account/37.php index 4b021e0..48c737a 100644 --- a/pages/account/37.php +++ b/pages/account/37.php @@ -15,17 +15,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> -

- -

- -

", ""); ?>

- -

- -

- -

- -

-

http://wiki.cacert.org/wiki/CAcertIncorporated

+

+', ''); +?> +

diff --git a/pages/account/38.php b/pages/account/38.php index 34cbea4..f311bf5 100644 --- a/pages/account/38.php +++ b/pages/account/38.php @@ -19,7 +19,11 @@

-

+

+', ''); +?>

diff --git a/pages/index/12.php b/pages/index/12.php index 4b021e0..48c737a 100644 --- a/pages/index/12.php +++ b/pages/index/12.php @@ -15,17 +15,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> -

- -

- -

", ""); ?>

- -

- -

- -

- -

-

http://wiki.cacert.org/wiki/CAcertIncorporated

+

+', ''); +?> +

diff --git a/pages/index/13.php b/pages/index/13.php index 34cbea4..68ee5ed 100644 --- a/pages/index/13.php +++ b/pages/index/13.php @@ -19,7 +19,11 @@

-

+

+', ''); +?> diff --git a/www/account.php b/www/account.php index 434053f..d1dd695 100644 --- a/www/account.php +++ b/www/account.php @@ -64,6 +64,10 @@ die("No such file."); } exit; + } else if ($id == 37) { + $protocol = $_SERVER['HTTPS'] ? 'https' : 'http'; + $newUrl = $protocol . '://wiki.cacert.org/FAQ/AboutUs'; + header('Location: '.$newUrl, true, 301); // 301 = Permanently Moved } else { showheader(_("My CAcert.org Account!")); includeit($id, "account"); diff --git a/www/index.php b/www/index.php index a139c4a..5f7fc14 100644 --- a/www/index.php +++ b/www/index.php @@ -632,6 +632,13 @@ if(!array_key_exists('signup',$_SESSION) || $_SESSION['signup']['year'] < 1900) $_SESSION['signup']['year'] = "19XX"; + + if ($id == 12) + { + $protocol = $_SERVER['HTTPS'] ? 'https' : 'http'; + $newUrl = $protocol . '://wiki.cacert.org/FAQ/AboutUs'; + header('Location: '.$newUrl, true, 301); // 301 = Permanently Moved + } if ($id == 19) {