1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Needed Login Script

Discussion in 'PHP' started by just-4-teens, Aug 30, 2005.

  1. #1
    I need a register/login script that will protect a directory and if a users try accessing when not logged in have it redirect them to the login page.

    how much would it cost for one of you to knock up a quick script?
     
    just-4-teens, Aug 30, 2005 IP
  2. Stoofovski

    Stoofovski Peon

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $30, md5 password, possible email check, user database, possible user page, with install and explanations.
     
    Stoofovski, Aug 30, 2005 IP
  3. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you gotta demo
     
    just-4-teens, Aug 30, 2005 IP
  4. Stoofovski

    Stoofovski Peon

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yeah, i have a few samples of work, let me pm you
     
    Stoofovski, Aug 30, 2005 IP
    just-4-teens likes this.
  5. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #5
    cheers stoofovski - excellent communications and a excellent script
     
    just-4-teens, Aug 31, 2005 IP
  6. qdsouza

    qdsouza Guest

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Does that login script have paypal or other payment integration?
    I might be interested too?
     
    qdsouza, Sep 1, 2005 IP
  7. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #7
    paypal copuld be easily added into it, im happy with the script, its easy to add more stuff to it,
     
    just-4-teens, Sep 1, 2005 IP
  8. Stoofovski

    Stoofovski Peon

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8

    Yes, paypal integration is possible to add. There is a space for different user levels.
     
    Stoofovski, Sep 1, 2005 IP
  9. sleepmonsta

    sleepmonsta Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hi i'm interested in your login script. i need a simple system that requires email authentication and a payment gateway (paypal and worldpay plus expandability to add others)

    can advise if you can do this, thanks!
     
    sleepmonsta, May 12, 2006 IP
  10. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    <?
    	include "conn.php";
    	if(isset($_POST['login']))
    	{
    		$res = mysql_query("select userid, email, fname from users where loginid = '".$_POST['login']."' and password = '".$_POST['password']."'") or die(mysql_error());
    		if($row = mysql_fetch_object($res))
    		{
    			session_start();
    			$_SESSION['userid'] = $row -> userid;
    			$_SESSION['loginid'] = $_POST['login'];
    			$_SESSION['email'] = $row -> email;
    			$_SESSION['fname'] = $row -> fname;
    			if($_SESSION['postadd'] == true)
    			{
    				$_SESSION['postadd'] = false;
    				header("Location:postadd.php");
    				exit();
    			}
    			else
    			{
    				header("Location:index.php");
    				exit();
    			}
    		}
    		else
    		{
    			$error = true;
    		}
    	}
    ?>
    
    PHP:
     
    dizyn, May 12, 2006 IP