Location: PHPKode > projects > Course-manager > courseman-0.1.1/set-course-period.php
<?php
  require('global-php.php');
  $verbindung = pg_connect("dbname=$database user=$database_user");
  if (!$verbindung) {
    print($lang_database_failure[$language]);
    exit;
  }
  $PHP_AUTH_USER = $_SERVER["PHP_AUTH_USER"];
  $PHP_AUTH_PW = $_SERVER["PHP_AUTH_PW"];
  $ergebnis = db_exec($verbindung,
			"SELECT * FROM staff_authorization "
  				. "WHERE "
				. login_query_clauses(
					$PHP_AUTH_USER,
					$PHP_AUTH_PW)
				. ";");
  if (pg_numrows($ergebnis) < 1) {
    header('WWW-Authenticate: Basic realm="Kursverwaltung"');
    header("HTTP/1.0 401 Unauthorized");
    echo $lang_authentication_failure[$language];
    exit;
  }
  configure_option($course_period_option);
?>
Return current item: Course-manager