Topic: Password for Gallerys

Hello,
it would be great to create password protected gallerys (if nessesary) to show pictures to invited people only.

BTW: Why did you delete my last post?

Re: Password for Gallerys

you may do it with php :
save this to index.php :
(password here is 'demo')

<?php 
if &#40;$pass=="demo"&#41; &#123;
?>

<!-- protected area -->
<html xmlns="http&#58;//www.w3.org/1999/xhtml" xml&#58;lang="en" lang="en">
<head>

your SimpleViewer code here ...


</body>
</html>

<!-- end of protected area-->



<?
&#125; else &#123;
?>


<html>
<head>

</head>
<body>
<form action='index.php' name="form" method=POST>

<center>
please enter password  &#58; 
<INPUT TYPE=password NAME=pass SIZE=15> 
<INPUT TYPE=Submit VALUE="submit">
</center>
</form>


</body>
</html>

<?
&#125;
?>
[url]http://www.photoscenique.com[/url]