Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = $_POST['username'];
- $pass = $_POST['password'];
- $login = $_POST['login'];
- if(isset($login) {
- if($user == 'svetlio' && $pass == '1234567890') {
- redirect('localhost/stream.html');
- }
- else {
- echo("Ne staa kmete");
- }
- }
- // $url should be an absolute url
- function redirect($url){
- if (headers_sent()){
- die('?> <script type="text/javascript">window.location=\''.$url.'\';</script> <?php');
- }else{
- header('Location: ' . $url);
- die();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement