Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

login script with redirects based on user

Links for php scripts

Moderators: macek, egami, gesf

login script with redirects based on user

Postby scatchon » Thu Jun 17, 2004 10:45 am

the title says it all - that's what im looking for - a simple script - does not need to be secure, needs to redirect to different folders depending on who's loging in.

thanks.
scatchon
New php-forum User
New php-forum User
 
Posts: 7
Joined: Tue Mar 30, 2004 10:33 am

Postby swirlee » Thu Jun 17, 2004 12:29 pm

You ought to be able to find something to fit your needs here:

http://www.hotscripts.com/PHP/Scripts_a ... index.html
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby KarterJK » Tue Jun 22, 2004 10:48 am

This may help
a simple redirect function

Code: Select all
<?php
function sendaway(){
@header("Location: http://disneyworld.disney.go.com/waltdisneyworld/");
exit;
}

$domain = gethostbyname($REMOTE_ADDR);
$user = "whoever";

if ($domain == "24.31.237.68" || $user == "whoever") sendaway();

?>
Last edited by KarterJK on Wed Jun 23, 2004 4:50 am, edited 1 time in total.
KarterJK
New php-forum User
New php-forum User
 
Posts: 21
Joined: Tue Aug 05, 2003 11:19 am

Postby swirlee » Tue Jun 22, 2004 11:51 am

KarterJK, posting a bit of code without any explanation and which doesn't actually help answer the poster's question is what we like to refer to as "counter-productive".
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.