Results 1 to 3 of 3

Thread: login panel

  1. #1
    Join Date
    Oct 2008
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default login panel

    I want to in right column to appears the login panel with username, password and login, register and lost password......

    here is the link: otisweb.ro/steelgym/

    I used zencart to build it......
    Last edited by jscheuer1; 10-09-2010 at 10:41 AM. Reason: remove hotlink

  2. #2
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Where is the link to the login? We also need the the PHP code to it. Do you have access to MySQL databases?

  3. #3
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Here's the code (thank you very much to BlueWalrus):
    In the page after the login, put this code there before anything else:
    PHP Code:
    <?php 
    if ($_SERVER['HTTP_REFERER'] == "http://kapleenmusic.webfreehosting.net/thisisatestyouknow.php" || $_SERVER['HTTP_REFERER'] =="yoursite.com/login.php")
    \\
    Change that link to the page of the login. {
    if (
    $_GET['secured'] == 24) {  
    ?>
    And put this after everything else on that page:
    PHP Code:
    <?php 
        
    } else {  
            echo 
    "Unverified"; }  
    } else {  
        echo 
    "Sorry, but your login failed.";  

    ?>
    Put this code before anything else on the Login page:
    PHP Code:
    <?php 
    if ( isset($_POST['username']) && isset($_POST['password'])) {
    if (
    $_POST['username']=="foo" && $_POST['password']=="password") {
        
    header("Location: thepagetologinto.php?secured=24");
    } else {
        
    $fail "Login Failed";
    }
    }
    ?>
    in [icode]header("Location: thepagetologinto.php?secured=24"); change thepageyouloginto.php to, well, the page you login to. And to edit the user names and passwords, edit ($_POST['username']=="userhere" && $_POST['password']=="passwordhere") {
    You can add multiple like this:
    PHP Code:
    if ($_POST['username']=="foo" && $_POST['password']=="password") {
    if (
    $_POST['username']=="foo" && $_POST['password']=="password") { 
    Have fun and once again thanks BlueWalrus!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •