26 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
27 |
* |
* |
28 |
***************************************************************************/ |
***************************************************************************/ |
|
if ($HTTP_POST_VARS["password"] != "") { |
|
29 |
|
|
30 |
$login_success = login($HTTP_POST_VARS["username"], md5($HTTP_POST_VARS["password"])); |
echo "balh"; |
31 |
|
|
32 |
|
$login_success = login($_POST["username"], md5($_POST["password"])); |
33 |
|
|
34 |
if ($login_success ) { |
if ($login_success ) { |
35 |
|
|
36 |
session_start(); |
session_start(); |
37 |
$_SESSION["logged_in"] = $HTTP_POST_VARS["username"]; |
$_SESSION["logged_in"] = $_POST["username"]; |
38 |
|
|
39 |
header("location:http://" . $opt_server . $opt_loc_path . "index.php"); |
header("location:http://" . $opt_server . $opt_loc_path . "index.php"); |
40 |
|
|
44 |
|
|
45 |
} |
} |
46 |
|
|
|
} |
|
47 |
?> |
?> |