Jump to content

javmen

New Members
  • Posts

    9
  • Joined

  • Last visited

javmen's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Look i updated the files, the zbucks.php is the page i want to lock out for example. I added the code you asked me too read my previous messages, if you could test it out i have usernames and passwords? zbucks.php zwinky.class.php login.php
  2. okay so i have this page random name , hello.php i put this on top <?php require 'zwinky.class.php'; // require zwinky zwinky::authenticate_login(); // authenticates user, redirects user to login.php if they are not logged in. ?> and on my zwinky.class : // Authenticate login function. public static function authenticate_login() { session_start(); if ( !isset($_SESSION['username']) | !isset($_SESSION['password']) | !isset($_SESSION['session']) ) { header('Location: login.php'); } } okay when i go on the page hello.php for example yes it shows the login form of course cause i am not logged in and it redirects to login.php BUT i login and it refreshes and doesnt leave the login.php, also when i go straight to the login it wont go to the hello.php cause its somehow leading it back even though i enter correct details
  3. <?php require 'zwinky.class.php'; // require zwinky zwinky::authenticate_login(); // authenticates user, redirects user to login.php if they are not logged in. is added to the top of a random page and it puts the page white.
  4. It puts the page i want blocked out blank. Are you sure i'm not missing anything in zwinky.class for it to work?
  5. there you go please help me, thank you.
  6. login.phpzwinky.class.php
  7. here is the game's login/ system . http://pastebin.com/yTQNH02A that should be a better explaination please help if possible a friend of mine did it
  8. http://paste.ee/p/tscSm look at those two php files. its login system on an online game which uses accounts from a game It works. I'd like to fix it up a bit. I wanna make it to where for example if someone goes to example.com/HOME , home will redirect to the login page if they are not logged in with THAT login system i gave you! if someone is logged in they have access to all pages, example/fds etc etc. I know something about sessions but how would you go on about doing it with those logins i provided. I wanna block out ALL my pages UNLESS logged in.
  9. i need help with a login i have on my site. I'm new to this so i dont know if i'll get any help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.