All pastes #442895 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-16 15:18 UTC
rendered paste body
<?php 
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AFEV Marseille / Galerie</title>

<script type="text/javascript" src="flashobject.js"></script>
<link rel="stylesheet" href="css.css" />
<style type="text/css">	
	/* hide from ie on mac \*/
	html {
		height: 100%;
		/*overflow: hidden;*/
	}
	
	#flashcontent {
		height: 92%;
	}
	/* end hide */

	body {
		height: 100%;
		margin: 0;
		padding: 0;
		background-color: #181818;
		color:#ffffff;
	}
	p {
		width: 54%;
		font-family: arial, helvetica;
		font-size: 70%;
		margin-left: 13%;

	}
	a, a:link { color: #fff; }
</style>
</head>
<body>

	<div class="menulistgal bottom" style="clear: both;">
		<h4>Choisissez parmis une catégorie:</h4>
		<ul>
	
		<?php
					     require_once("phpFlickr/phpFlickr.php");
						 
						 $flickr = new phpflickr("a07eb39cdfbfa4b54867b60f9a44f9aa");
						 // $flickr->enableCache("fs", "phpFlickrCache");
						 
						 $userId = '96092620@N00';
						 
						 $tableau = file('liste.txt'); 
					
					     if(is_array($tableau)) 
					     {
					          $contenu_fichier = '';
					
					          foreach($tableau AS $albumid)
					          {
							  		$albumId1 = rtrim($albumid);
									$albumTitle = $flickr->photosets_getInfo($albumId1);
									$title = $albumTitle['title'];
									
					           		echo '<li><a href="http://marseille.afev.org/photos_modif/index.php?valbumid1='.$albumId1.'">'.$title.'</a></li>';
					          }
					
					     }
		?>
	
		</ul>
		
	<?php  
	
	// $_SESSION['valbumsetid'] = 72157594390173232;
	
	
		if(isset($_GET['valbumid1']))
			{
			$_SESSION['valbumsetid'] = $_GET['valbumid1'];
			}
		
		else 
			{
			$_SESSION['valbumsetid'] = 72157594390173232;
			}
		echo $_SESSION['valbumsetid'];
	?>
	</div>

	<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a></div>	
	<script type="text/javascript">
		var fo = new FlashObject("viewer.swf", "viewer", "100%", "100%", "6", "#181818");
		fo.addVariable("xmlDataPath", "flickrViewer.php");
		fo.addParam("quality", "best");
		fo.write("flashcontent");	
	</script>
	<p>Powered by <a href="http://www.airtightinteractive.com/simpleviewer/" title="a free, customizable Flash image viewing application">SimpleViewer</a> and <a href="http://www.sweeting.org/mark/blog/category/flickrviewer/" title="Flickr API interface for SimpleViewer">FlickrViewer</a>.</p>
</body>
</html>