javmen
-
Posts
9 -
Joined
-
Last visited
Posts posted by javmen
-
-
okay so i have this page random name , hello.php
i put this on top
<?php
require 'zwinky.class.php'; // require zwinkyzwinky::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 tologin.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.phpcause its somehow leading it back even though i enter correct details -
<?phprequire 'zwinky.class.php'; // require zwinkyzwinky::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.
-
It puts the page i want blocked out blank. Are you sure i'm not missing anything in zwinky.class for it to work?
-
there you go please help me, thank you.
-
-
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
-
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. -
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
php login fix/edit
in PHP Coding Help
Posted
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