<?php // Includes require_once '../inc/config.inc.php'; require_once DIR_CLASSES . 'schueler.class.php'; if ($_POST['pwd'] == CSV_PWD) { $s = new schueler(); $csv = $s->getCsv('csv'); header("Content-Type: text/csv"); header("Content-Disposition: attachment; filename=schueler.csv"); echo $csv; } else { ?> <form action="" method="post"> Passwort: <input type="password" name="pwd"><input type="submit"> </form> <?php }
/** * Debug-Methode * alias für schueler::debug */ function debug($debug) { schueler::debug($debug); }
<?php session_start(); // Includes require_once '../inc/config.inc.php'; require_once DIR_CLASSES . 'schueler.class.php'; require_once DIR_CLASSES . 'session.class.php'; // Programm Start $schueler = new schueler(); $error = $schueler->validate($_REQUEST['form']); $session = new session($form['captcha']); $seite = $session->getSeite($_REQUEST['form'], count($error)); ?> <!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"> <!-- Staatliche Berufsschule Erlangen Projekt: Schüleranmeldung Team: Döbeling, Kapp, Stepper, Wittmann Klasse: IFA 12B von 2008/09 Copyright: (C) 2009 Andreas Döbeling eMail: Kontakt AT Doebeling PUNKT de Dieser Hinweis darf nicht entfernt od. bearbeitet werden!