Fix the SESSION debug output

This commit is contained in:
james 2010-09-23 16:41:40 +00:00
parent ffd09ae67e
commit a6ec8ef874

View File

@ -429,9 +429,9 @@ if(substr($config['version'], -1) % 2 != 0)
$revision=exec("svn info |grep Revision"); $revision=exec("svn info |grep Revision");
$extra=" (Development $revision)"; $extra=" (Development $revision)";
if($_SESSION['debug']=="true") if($_SESSION['debug']=="true")
$extra.=" DEBUG: ".print_r($_SESSION,true); $extradebug="<br />DEBUG SESSION: ".print_r($_SESSION,true);
} }
echo "<a target=\"blank\" href=\"http://www.sfiab.ca\">SFIAB Version ".$config['version']."{$extra}</a>"; echo "<a target=\"blank\" href=\"http://www.sfiab.ca\">SFIAB Version ".$config['version']."{$extra}</a>{$extradebug}";
?> ?>
</div><!--footer--> </div><!--footer-->
<div id="debug" style="display:<?=($_SESSION['debug']=='true')?'block':'none'?>; font-family:monospace; white-space:pre; " >Debug...</div> <div id="debug" style="display:<?=($_SESSION['debug']=='true')?'block':'none'?>; font-family:monospace; white-space:pre; " >Debug...</div>