Zubrag.com
May 20, 2012, 10:37:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: user signup? - ***zubrag?  (Read 7665 times)
thejohnson4
Newbie
*
Posts: 28


« Reply #14 on: May 08, 2007, 02:19:29 am »

Zubrag,

that particular 'location' isnt anything to do with redirecting after a user logs in - (its just acts as a page refresh once a new user is added... so that their details appear  in your box beneath).


I was enquiring abotu the

 '$REDIRECT array (
  'admin' => 'folder/file.html",
  'zubrag' => '/root' 


etc....  that works in th original system, but obviously not in the new one- so i was asking how i can get it to work?

Adam

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #15 on: May 08, 2007, 04:46:06 am »

Updated password_protect.php. Download updated sources (download link in previous posts).

Now you should be able to list users both ways

user,password,http://www.redirect/link/here

or just

user,password
Logged
thejohnson4
Newbie
*
Posts: 28


« Reply #16 on: May 08, 2007, 08:08:33 am »

Zubrag,

thankyou again! as usual it works like a charm- absolutely perfectly.... IF i login directly from the password_protect.php page.  (i setup a redirect after your update, so it said: admin,admin,MYSITE.com/admin.html    - and it works).

However, i have included the password_protec.php form into another page - yet when i enter the user/pass the page just refreshes...i followed the instrucstions as shown here for integrating into your design, but its proving tricky: http://www.zubrag.com/forum/index.php/topic,94.0.html


Many thanks, this really is the last thing! Smiley

Adam
Logged
husker
Newbie
*
Posts: 13


« Reply #17 on: May 08, 2007, 02:01:54 pm »

Here is custom password protector (http://www.zubrag.com/downloads/protect_manager.zip) script for Adam.

If the page being protected is in a different directory than the script,
I believe you have to give the full path to the users.php file near the
top of the protection script.  I have the script in a /var/www/pwd
directory and this change appears to be working:
Code:
#############################
#  SETTINGS START
#############################

// load users list
// $users = file('users.php');
$users = file('/var/www/pwd/users.php'); // NEW - full path to users file

minor issue ... I realize the code was a "special".  Wink
Logged
thejohnson4
Newbie
*
Posts: 28


« Reply #18 on: May 09, 2007, 05:19:15 am »

Hey husker, thanks for that...

however, that isnt my problem .. you see - i can login correctly (and now be redirected correctly) if use the password_protect.php page to login.

Though, i have 'included' that form onto another 'login' page that i have made.... just a diff template.. yet it just clears the form when i hit submit. (all files for this system are in the same folder/same level).


Regards,


adam
Logged
thejohnson4
Newbie
*
Posts: 28


« Reply #19 on: May 16, 2007, 04:25:09 pm »

Updated password_protect.php. Download updated sources (download link in previous posts).

Now you should be able to list users both ways

user,password,http://www.redirect/link/here

or just

user,password


Zubrag,

Would you be so kind as to tell me how to set a default starting entry for each user?
i.e.  every users page is in their own folder in the client area... so for each user the address always begins as so: http://www.sitename.com/clientarea/

I dont really want to type that in everytime to redirect a new user.... i just want to be able to put say: clientarea/folder1 etc.... instead of http://www.sitename.com/clientarea/folder1..


Many Thanks,

Adam

(i knw it must be somthing like: http://www.sitename.com/$redirect... but hope you can help)
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #20 on: May 17, 2007, 03:42:28 am »

Adam, just add prefix in the password_protect.php, like shown below. Bolded string will always be added to the redirection url.

header('Location: http://www.sitename.com/clientarea/' . $REDIRECTS[$login]);
Logged
thejohnson4
Newbie
*
Posts: 28


« Reply #21 on: May 18, 2007, 04:23:27 am »

Zubrag,

thanks for that - though i think you misunderstood me - on the signup form (Where there is user/pass/ page url fields) i want whatever is entered in the page redirect field to be added to the users.txt  file as:

http://www.mysite.com/clientarea/PAGE_REDIRECT_FIELD_ENTRY

usernames/passwords are unique, but all of the redirect pages are in the Clientarea folder, thus i dont want to have to keep typing that in everytime.. i was asking for a way to truncate / auto-add this to the users.txt....   (by perhaps adding: http://www.sitename.com/clientarea/' . $REDIRECTS to the signup file?).

Many thanks,

Adam
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC