-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjoomlog.php
More file actions
43 lines (36 loc) · 921 Bytes
/
Copy pathjoomlog.php
File metadata and controls
43 lines (36 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
session_start();
$usr = addslashes($_POST['name']);
$PASS = addslashes($_POST['pass']);
//http://pbeblog.wordpress.com/2008/02/12/secure-hashes-in-php-using-salt/
$SALT = "a764e53e4eb046cccded63360b9ff439";
$SALTPASS = md5($PASS.$SALT);
if($con = mysql_connect('localhost',$usr,$PASS))
{
if(isset($_SESSION)){
echo"<script>
Alert(\"HTTPS Login Verified\");
</script>
";
header('location: /masterpage.php');
}
//echo 'Login!';
$_SESSION['usr'] = $usr;
$_SESSION['rpw'] = $PASS;
header('Location: http://ckxuradio.su.uleth.ca/masterpage.php');
}
else{
if(!$con = mysql_connect('localhost','DGLLogger','CKXU2012'))
{
die("Login Error");
}
else{
echo"<script>
Alert(\"Login Failed\");
</script>";
header('Location: http://ckxuradio.su.uleth.ca/index.php/digital-program-logs');
}
//header('Location: /');
}
//header('Location: /');
?>