diff --git a/pages/gpg/3.php b/pages/gpg/3.php index 4800078..d9f54fb 100644 --- a/pages/gpg/3.php +++ b/pages/gpg/3.php @@ -16,8 +16,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> - $certid = intval($_SESSION['_config']['cert']); - $query = "select * from `gpg` where `id`='$certid' and `memid`='".$_SESSION[profile][id]."'"; + $certid = intval($_REQUEST['cert']); + $query = "select * from `gpg` where `id`='$certid' and `memid`='".intval($_SESSION['profile']['id'])."'"; $res = mysql_query($query); if(mysql_num_rows($res) <= 0) { @@ -29,5 +29,5 @@ ?>
- readfile($row[crt]); ?> + readfile($row['crt']); ?>