Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: included session code doesnt work  (Read 3531 times)

0 Members and 1 Guest are viewing this topic.

sporkit

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
included session code doesnt work
« on: August 04, 2004, 07:02:53 pm »

when i modded my site i just included a custom site_header.php and site_footer.php page to wrap around my gallery.  the page im working on (shown here) has a flash banner at the top of the page.  there is actually 2 of them, one that plays when you visit the page and another that loops till you leave the site.  to make this work i used a session that told my server to display the intro when a user visits the site and play the second looping one till they leave.

here is the code i used to do this.  at the top of the included page is
Code: [Select]
<?php session_start(); ?>
<html>
<head>
<title>de la fate</title>
<link href="/dsu/style.css" rel="stylesheet" type="text/css">... blah blah
and around the flash banner is this. 
Code: [Select]
<?php 

if ( $lgo_ply == )
{
echo ('
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="347" height="133">
          <param name="movie" value="/dsu/images/fate_loop.swf">
          <param name="quality" value="high">
          <embed src="/dsu/images/fate_loop.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="347" height="133"></embed>
  </object>
'
);
}
else
{

echo ('
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="347" height="133">
          <param name="movie" value="/dsu/images/fate_intro.swf">
          <param name="quality" value="high">
          <embed src="/dsu/images/fate_intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="347" height="133"></embed>
  </object>
'
);
}


  
$_SESSION['lgo_ply'] = 1;


?>

if $lgo_ply has a value of 1 in it then it plays the loop flash banner.  unfortunatly something must be happening to this variable since it is constantly playing the intro.  im not sure what else i can explain but if you need to see other code then ill post it.  heck, maybe there is a better way of doing this anyway.  thanks for your help. :)
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.