<?php require_once "config.inc.php"; session_start(); if ((!isset($_SESSION[SESSION_USER_NAME]) || !isset($_SESSION[SESSION_USER_PASSWORD])) && strcmp($_SERVER['SCRIPT_NAME'], "/" . PHPFILE_INDEX) != 0) { echo get_derefer_html(PHPFILE_INDEX); die; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><!-- InstanceBegin template="/Templates/vorlage.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- <base href="http://www.fh-bochum.de/" />--> <link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_a83593bbe6.css" /> <script type="text/javascript" src="fileadmin/templates/web_fh-bochum.de/default.js"></script> <link rel="stylesheet" type="text/css" href="fileadmin/templates/web_fh-bochum.de/css/default.css" /> <link rel="stylesheet" type="text/css" href="fileadmin/templates/web_fh-bochum.de/css/import.css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="home/header.css" /> <link rel="stylesheet" type="text/css" media="screen, projection" href="home/keyvisual.css" /> <link rel="stylesheet" type="text/css" media="print" href="fileadmin/templates/web_fh-bochum.de/css/page_print.css" /> <!--[if lt IE 7.]> <link rel="stylesheet" type="text/css" href="../fileadmin/templates/web_fh-bochum.de/css/page_ie.css" /> <link rel="stylesheet" type="text/css" media="print" href="../fileadmin/templates/web_fh-bochum.de/css/page_print_ie.css" /> <![endif]-->
} //einloggen if (isset($_REQUEST[PHPFILE_INDEX_P_USERNAME]) && isset($_REQUEST[PHPFILE_INDEX_P_USERPWD])) { mysql_pconnect(MYSQL_SERVER, MYSQL_USER, MYSQL_PASSWD); echo mysql_error(); mysql_query("USE " . MYSQL_DB); echo mysql_error(); $query = mysql_query("SELECT * FROM `" . TABLE_USER . "` WHERE `" . T_USER_C_NAME . "` = '" . $_REQUEST[PHPFILE_INDEX_P_USERNAME] . "' AND `" . T_USER_C_PASSWD . "` = '" . $_REQUEST[PHPFILE_INDEX_P_USERPWD] . "';"); echo mysql_error(); if (mysql_num_rows($query) == 0) { echo get_derefer_html(PHPFILE_INDEX . "?" . PHPFILE_INDEX_P_LOGINFAILED); die; } else { $_SESSION[SESSION_USER_NAME] = $_REQUEST[PHPFILE_INDEX_P_USERNAME]; $_SESSION[SESSION_USER_PASSWORD] = $_REQUEST[PHPFILE_INDEX_P_USERPWD]; echo get_derefer_html(PHPFILE_LOGGED_IN); die; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><!-- InstanceBegin template="/Templates/vorlage.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- <base href="http://www.fh-bochum.de/" />-->