From 6aa73b1e725c805cabb0649837aaf680409509a4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 1 Sep 2008 22:25:02 +0000 Subject: [PATCH] Improved register_globals --- pages/account/12.php | 5 +++-- pages/account/16.php | 6 +++--- pages/account/18.php | 5 +++-- pages/account/22.php | 5 +++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pages/account/12.php b/pages/account/12.php index 300fe27..e6a4cc2 100644 --- a/pages/account/12.php +++ b/pages/account/12.php @@ -15,10 +15,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> +
- + @@ -35,7 +36,7 @@ UNIX_TIMESTAMP(`revoked`) as `revoked`, `CN`, `domaincerts`.`id` as `id` from `domaincerts`,`domains` where `memid`='".intval($_SESSION['profile']['id'])."' and `deleted`=0 and `domaincerts`.`domid`=`domains`.`id` "; - if($_GET['viewall'] != 1) + if($viewall != 1) { $query .= "AND `revoked`=0 AND `renewed`=0 "; $query .= "HAVING `timeleft` > 0 "; diff --git a/pages/account/16.php b/pages/account/16.php index f20e2b1..9289370 100644 --- a/pages/account/16.php +++ b/pages/account/16.php @@ -25,7 +25,7 @@ - @@ -38,11 +38,11 @@ - + - +
- -
:
:
:
diff --git a/pages/account/18.php b/pages/account/18.php index 5250a10..22736eb 100644 --- a/pages/account/18.php +++ b/pages/account/18.php @@ -15,10 +15,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> + - + @@ -36,7 +37,7 @@ from `orgemailcerts`, `org` where `memid`='".$_SESSION['profile']['id']."' and `org`.`orgid`=`orgemailcerts`.`orgid` "; - if($_GET['viewall'] != 1) + if($viewall != 1) { $query .= "AND `revoked`=0 AND `renewed`=0 "; $query .= "HAVING `timeleft` > 0 AND `revoked`=0 "; diff --git a/pages/account/22.php b/pages/account/22.php index 5951c88..dccc7b9 100644 --- a/pages/account/22.php +++ b/pages/account/22.php @@ -15,10 +15,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> +
- -
- + @@ -35,7 +36,7 @@ UNIX_TIMESTAMP(`revoked`) as `revoked`, `CN`, `orgdomaincerts`.`id` as `id` from `orgdomaincerts`,`org` where `org`.`memid`='".$_SESSION['profile']['id']."' and `orgdomaincerts`.`orgid`=`org`.`orgid` "; - if($_GET['viewall'] != 1) + if($viewall != 1) { $query .= "AND `revoked`=0 AND `renewed`=0 "; $query .= "HAVING `timeleft` > 0 ";
- -