Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1473 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Admin Login

Thread title: Admin Login
Closed Thread    
    Thread tools Search this thread Display Modes  
09-11-2007, 09:24 PM
#1
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old  Admin Login

Hi

I have made a CMS type thing, and was like to have an admin login so it would not be easily accessible.

It needn't be complicated (if that is possible?) and need no other features.

I have looked on google breifly and i dont understand / cant find a good tutorial / script to follow, can you help me please?

Gareth.

09-11-2007, 09:29 PM
#2
Lee_ is offline Lee_
Status: Member
Join date: Jun 2006
Location: UK
Expertise:
Software:
 
Posts: 184
iTrader: 2 / 100%
 

Lee_ is on a distinguished road

  Old

A quick search on Pixel2Life gave me this, looks pretty decent.

http://www.tutorialtastic.co.uk/tuto...php_login_page

09-11-2007, 09:30 PM
#3
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

-- Wrong end of the stick, I have --

09-11-2007, 09:30 PM
#4
Sam Granger is offline Sam Granger
Status: Request a custom title
Join date: Feb 2005
Location: The Netherlands
Expertise:
Software:
 
Posts: 2,616
iTrader: 19 / 88%
 

Sam Granger is on a distinguished road

Send a message via MSN to Sam Granger

  Old

Is the admin panel in a seperate directory? Ifso, look into htaccess password protection. Simple to use.

09-11-2007, 10:32 PM
#5
Xuxa is offline Xuxa
Status: Request a custom title
Join date: Feb 2006
Location: USA
Expertise:
Software:
 
Posts: 1,076
iTrader: 17 / 95%
 

Xuxa is on a distinguished road

Send a message via MSN to Xuxa

  Old

Make a file with 2 variables like the following

Protect.php
PHP Code:
<?php

$USER_LOGIN  
'usernamehere';
$USER_PASS 'md5encryptedpw';

?>
Then for the login make it see if it's correct

PHP Code:
<?php

// Form process code above

$FORM_LOGIN $_POST['login'];
$FORM_PASS md5($_POST['password']);

// Checks to see if the submitted data from the form matches with set login info
if( $FORM_LOGIN == $USER_LOGIN && $FORM_PASS == $USER_PASS ) {

// If it has the combination has been successful echo, redirect, or what you to do here

} else {

// If the combination failed then do whatever you want (e.g. Dispaly an error message)

}

?>
That is very basic....you can also do it with a database and you can include cookies and such. Hope that helped

09-12-2007, 07:43 AM
#6
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old

Sweet thanks guys!

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed