From 06fbc884c512582147289b914dfb20b1a2b1cd1b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Dec 2004 11:34:07 +0000 Subject: [PATCH] bug fixes, added stats page --- includes/account.php | 2 +- includes/general.php | 8 +++++++ pages/account/43.php | 41 ++++++++++++++++++++++++++++++++++- www/logos.php | 29 +++++++++++++------------ www/src-lic.php | 2 +- www/stats.php | 51 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+), 17 deletions(-) create mode 100644 www/stats.php diff --git a/includes/account.php b/includes/account.php index 13123d1..ce65077 100644 --- a/includes/account.php +++ b/includes/account.php @@ -313,7 +313,7 @@ if(is_array($adds)) foreach($adds as $line) { - $line = trim($line); + $line = trim(str_replace("\t", " ", $line)); $bits = explode(" ", $line); foreach($bits as $bit) { diff --git a/includes/general.php b/includes/general.php index 9965758..6489444 100644 --- a/includes/general.php +++ b/includes/general.php @@ -473,4 +473,12 @@ } return(utf8_decode($data)); } + + function screenshot($img) + { + if(file_exists("../screenshots/".$_SESSION['_config']['language']."/$img")) + return("/screenshots/".$_SESSION['_config']['language']."/$img"); + else + return("/screenshots/en/$img"); + } ?> diff --git a/pages/account/43.php b/pages/account/43.php index af0fca8..3eae335 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -16,7 +16,9 @@ if(intval($_GET['userid']) <= 0) { $email = mysql_escape_string(stripslashes($_POST['email'])); - $query = "select * from `users` where `email` like '%$email%' limit 100"; + $query = "select `users`.`id` as `id`, `email`.`email` as `email` from `users`,`email` + where `users`.`id`=`email`.`memid` and `email`.`email` like '%$email%' + group by `users`.`id` limit 100"; $res = mysql_query($query); if(mysql_num_rows($res) > 1) { ?> @@ -139,7 +141,44 @@
+
0) { ?> + + + + + + + + + +
:
+
+ 0) { ?> + + + + + + + + + +
:

+ diff --git a/www/logos.php b/www/logos.php index 77dc6c2..0f2c9f6 100644 --- a/www/logos.php +++ b/www/logos.php @@ -8,21 +8,22 @@ using the CAcert.org site logo and some gimp magic. Send comments or suggestions to Chris. Licence: Whatever. I don't care.

-www.cacert.org

-www.cacert.org   -www.cacert.org   -www.cacert.org

-www.cacert.org   -www.cacert.org   -www.cacert.org

-www.cacert.org

-www.cacert.org   -www.cacert.org

-www.cacert.org   -www.cacert.org

+www.cacert.org   +www.cacert.org   +www.cacert.org   +www.cacert.org

+www.cacert.org   +www.cacert.org   +www.cacert.org   +www.cacert.org

+www.cacert.org   +www.cacert.org   +www.cacert.org   +www.cacert.org

-www.cacert.org   -www.cacert.org

+www.cacert.org   +www.cacert.org   +www.cacert.org

diff --git a/www/src-lic.php b/www/src-lic.php index 6c66421..810a2e9 100644 --- a/www/src-lic.php +++ b/www/src-lic.php @@ -1,7 +1,7 @@ +

CAcert.org

+ + + + + + + + + + + + + + + + + + + + + + +NOW()")); + $certs += mysql_num_rows(mysql_query("select * from `emailcerts` where `revoked`=0 and `expire`>NOW()")); + $certs += mysql_num_rows(mysql_query("select * from `gpg` where `expire`<=NOW()")); + $certs += mysql_num_rows(mysql_query("select * from `orgdomaincerts` where `revoked`=0 and `expire`>NOW()")); + $certs += mysql_num_rows(mysql_query("select * from `orgemailcerts` where `revoked`=0 and `expire`>NOW()")); +?> + + + + + + + + +
CAcert.org
:
:
:
:
:
:= 100")))?>
+ +