Public Login
From Relay
[edit] Question
karlk@utropicmedia.com: anonymous file access.(publish a link for a selected file(directory?) that is accessable to the world.)
[edit] Response
- Create a user "public" with password "public"
- Make a new virtual directory for this public user
- Add permission for the public user to the newly created directory
- Copy this text and save it as "public.html" and stick it in the same folder as index.php
<html>
<head>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/effects.js" type="text/javascript"></script>
<script type="text/javascript">
var url = 'relay.php';
var params = $H({ relay: 'userLogin', username: 'public', password: 'public' });
var ajax = new Ajax.Request(url,{
onSuccess: function() { window.location = "relay.html"; },
method: 'post',
parameters: params.toQueryString()
});
</script>
</head>
<body></body>
</html>
You could also put it into a folder named "public" but don't forget to change the two relative links for relay.php and relay.html.
