Fixed register_globals problem

pull/1/head
root 16 years ago
parent 834d1b2ea7
commit b12f68c61d

@ -734,10 +734,10 @@
{
$id = 12;
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
echo "Processing request $id:<br/>";
@ -900,10 +900,10 @@
if($oldid == 5 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `emailcerts`
@ -964,10 +964,10 @@
{
$id = 5;
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `emailcerts`
@ -1448,11 +1448,11 @@
if($oldid == 18 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
$id = 18;
echo _("Now renewing the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
echo "Renewing certificate #$id ...\n<br/>";
$id = intval($id);
@ -1511,10 +1511,10 @@
{
$id = 18;
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`revoked`) as `revoke` from `orgemailcerts`, `org`
@ -1729,10 +1729,10 @@
if($oldid == 22 && array_key_exists('renew',$_REQUEST) && $_REQUEST['renew'] != "")
{
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now renewing the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`orgdomaincerts`.`revoked`) as `revoke` from
@ -1795,10 +1795,10 @@
if($oldid == 22 && array_key_exists('revoke',$_REQUEST) && $_REQUEST['revoke'] != "")
{
showheader(_("My CAcert.org Account!"));
if(is_array($revokeid))
if(is_array($_REQUEST['revokeid']))
{
echo _("Now revoking the following certificates:")."<br>\n";
foreach($revokeid as $id)
foreach($_REQUEST['revokeid'] as $id)
{
$id = intval($id);
$query = "select *,UNIX_TIMESTAMP(`orgdomaincerts`.`revoked`) as `revoke` from

Loading…
Cancel
Save