BIV

BIV & SFPE logos

Föreningen för brandteknisk ingenjörsvetenskap

test

{source}
<!– You can place html anywhere within the source tags —>

<script language=”javascript” type=”text/javascript”>
    // You can place JavaScript like this
    
</script>
<?php
session_start();

$session = current($_SESSION);

$user = $session[’user’];

$id = $user->id;

print $id;

mysql_connect(”s117.loopia.se”,”bivmember@s9585″,”YvsghNBxw3pDCOP9″);

mysql_select_db(”sfpe_biv_se”);

$expire = time() + 20*60;
$sessionId = md5(time()+ rand()).$id;

$sql = ”INSERT INTO `bm_sessions` (`session`, `memberId`,`expire`) VALUES (’$sessionId’,’$id’,’$expire’)”;
mysql_query($sql);
print mysql_error(); 

?>
<!– You can place html anywhere within the source tags —>

<script language=”javascript” type=”text/javascript”>
    // You can place JavaScript like this
    
</script>
<?php
print $sessionId;
?>

 

<script language=”javascript” type=”text/javascript”>
function iFrameHeight() {
    var h = 0;
    if ( !document.all ) {
        h = document.getElementById(’blockrandom’).contentDocument.height;
        document.getElementById(’blockrandom’).style.height = h + 60 + ’px’;
    } else if( document.all ) {
        h = document.frames(’blockrandom’).document.body.scrollHeight;
        document.all.blockrandom.style.height = h + 20 + ’px’;
    }
}
</script>

<iframe onload=”iFrameHeight()” id=”blockrandom”
    name=”iframe”
    src=”http://medlem.sfpe-biv.se/external/member-form?session=<?php print $sessionId; ?>&memberId=<?php print $id; ?>
    width=”100%”
    height=”500″
    scrolling=”auto”
    align=”top”
    frameborder=”0″
    class=”wrapper”>
    Detta val kommer inte att fungera korrekt. Din webbläsare stödjer tyvärr inte IFRAMES.</iframe>



{/source}