Improved register_globals

pull/1/head
root 16 years ago
parent dbdf283dd6
commit ec4bb288aa

@ -23,7 +23,7 @@
<?=sprintf(_("This license applies to using the CAcert %s root keys %s."),'<a href="/index.php?id=3">','</a>')?></p> <?=sprintf(_("This license applies to using the CAcert %s root keys %s."),'<a href="/index.php?id=3">','</a>')?></p>
<? if(!$_SESSION['mconn']) echo "<font size='+1'>"._("Most CAcert functions are currently unavailable. Please come back later.")."</font>";?> <? if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn']) echo "<font size='+1'>"._("Most CAcert functions are currently unavailable. Please come back later.")."</font>";?>

@ -17,7 +17,7 @@
*/ ?> */ ?>
<? <?
if(!$_SESSION['mconn']) if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn'])
{ {
echo _("This function is currently unavailable. Please come back later."); echo _("This function is currently unavailable. Please come back later.");
exit; exit;

Loading…
Cancel
Save