echo SelectInput($student['GRADE_ID'], 'values[STUDENT_ENROLLMENT][' . $student_id . '][GRADE_ID]', (!$student['GRADE_ID'] ? '<FONT color=red>' : '') . _('Grade') . (!$student['GRADE_ID'] ? '</FONT>' : ''), $options); echo '</TD>'; if ($_REQUEST['student_id'] != 'new' && $student['SCHOOL_ID'] != UserSchool()) { $_CENTRE['allow_edit'] = $allow_edit; $_CENTRE['AllowEdit'][$_REQUEST['modname']] = $AllowEdit; } echo '</TR><TR>'; echo '<TD>'; echo TextInput($student['USERNAME'], 'students[USERNAME]', _('Username')); echo '</TD>'; echo '<TD>'; //echo TextInput($student['PASSWORD'],'students[PASSWORD]','Password'); echo TextInput(array($student['PASSWORD'], str_repeat('*', strlen($student['PASSWORD']))), 'students[PASSWORD]', ($student['USERNAME'] && !$student['PASSWORD'] ? '<FONT color=red>' : '') . _('Password') . ($student['USERNAME'] && !$student['PASSWORD'] ? '</FONT>' : '')); echo '</TD>'; echo '<TD>'; echo NoInput(makeLogin($student['LAST_LOGIN']), _('Last Login')); echo '</TD>'; echo '</TR></TABLE>'; // IMAGE if ($_REQUEST['student_id'] != 'new' && $StudentPicturesPath && (($file = @fopen($picture_path = $StudentPicturesPath . UserSyear() . '/' . UserStudentID() . '.JPG', 'r')) || ($file = @fopen($picture_path = $StudentPicturesPath . (UserSyear() - 1) . '/' . UserStudentID() . '.JPG', 'r')))) { fclose($file); echo '<TD><IMG SRC="' . $picture_path . '" width=150>'; if (User('PROFILE') == 'admin' && User('PROFILE') != 'student' && User('PROFILE') != 'parent') { echo '<br><a href=Modules.php?modname=Students/Upload.php style="text-decoration:none"><b>Upload Student\'s Photo</b></a></div>'; } echo '</TD><TD valign=top></TD>'; } else { if ($_REQUEST['student_id'] != 'new') { echo '<TD><div align="center"><IMG SRC="assets/noimage.jpg?id=' . rand(6, 100000) . '" width=144 class=pic>'; if (User('PROFILE') == 'admin' && User('PROFILE') != 'student' && User('PROFILE') != 'parent') { echo '<br><a href=Modules.php?modname=Students/Upload.php style="text-decoration:none"><b>Upload Student\'s Photo</b></a></div>';
{ return "<div id=\"footer\"><p><a href=\"http://www.solitude.dk/filethingie/\">File Thingie</a> © <!-- Copyright --> 2003-2006 <a href=\"http://www.solitude.dk\">Andreas Haugstrup Pedersen</a>.</p></div>"; } # Start running File Thingie # session_start(); header("Content-Type: text/html; charset=ISO-8859-1"); $str = ""; if (checklogin()) { // Run initializing functions. sanitizeREQUEST(); doAction(); $str = makeHeader(); $str .= makeSidebar(); $str .= makeBody(); } else { $str .= makeLogin(); } $str .= makeFooter(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <?php require "../includes/globals.php"; session_start(); //$id = $_SESSION['valid_admin']; //$pw = $_SESSION['pw']; $error = '<font color="#0000FF"><strong>You must be logged in to view this page</strong></font>'; ?>
// --- Declaration of global variables ------------------- session_start(); $autor = "Pascal Pink"; $version = "2015-11-03"; $titel = "Beispiel"; $formularAction = "index.php"; $formularLoginAction = "login.php"; $cssdatei = "mylogincss.css"; // --- integrate internal datas ------------------- include "mytools/my_tools_inc.php"; // integration of my_tools require "mytools/my_formular_inc.php"; // integration of the formular data require "mytools/my_content_req.php"; // integrate the contentalso w require "mytools/my_db_func.php"; // Integrate the database functions // --- Begin of declaration of functions / methods / modules ----------------- // --- End Declaration of functions / methods / modules ------------------- // ---- Start of flowchart diagram ---------------------------- makeHeader($titel, $cssdatei); makeLoginMenu(); makeLogin($formularLoginAction); if (isset($_GET['username']) && isset($_GET['pw'])) { $usr = $_GET['username']; $pw = $_GET['pw']; login($usr, $pw); } MakeProgressbar(60); makeFooter($autor, $version); //--- End Start of flowchart diagram ------------------------------