Location: PHPKode > projects > Homeless Mangement Information System > hmis/edit_user_login.php
<?php
//*Client Data System, Copyright (C) 2000, 2001 Tedd Kelleher.  This is free software, subject to the 
//*GNU GENERAL PUBLIC LICENSE, Version 2, June 1991 (in file named gpl.txt), which should accompany 
//*any distribution of this file.  Tedd Kelleher can be contacted at hide@address.com

////Variables used to set-up the page
//Used by "head()" and "page_title_table"
$page_title = "Change Password";
//Used by many elements, including the questions in general, "menu()", and help links
$page_id = "edit_user_login";
//Used by "authenticate.inc" to check against the user session variable $access_level 
$page_access_levels = ":10:20:30:40:";
//Used by "head()" to list instructions for using the page
$instructions .= "Provide your existing and new password to complete update. ";

////Header for every page that finds the include directory, connects to db, authenticates user access 
include("initialize_pointer.php");
if(!include($include_root."authenticate.inc")){echo "No Authentication"; exit; };

include($include_root."Questions_into_array_class.inc");
include($include_root."questions_display.inc");
include($include_root."Questions_answers_validation_class.inc");
include($include_root."head.inc");
include($include_root."template_parser.inc");
include($include_root."update_password_class.inc");
include($include_root."questions_into_tags_function.inc");
include($include_root."page_elements_display.inc");
include($include_root."user_info_functions.inc");
include($include_root.'passwords_class.inc');

    $pull_questions = new Load_new_entity_questions();
    $pull_questions->load_update_password_questions();

	if ( $_POST['form_submitted'] == $page_id)
    {
		//Validate the answers against the questions attributes pulled into an array above
		$validation = new Questions_answers_validation( $pull_questions->questions, $pull_questions->question_elements, $form_answer );
        
		if (!$question_validation_error)
        {
			$update_password = new Update_password ($pull_questions->questions, $validation->form_answer, $user_id);
            
			if (!$question_validation_error) {$validation->vetted_form_answer = "";}
		}
	}

//Define the values for tags contained in the html template
$tag_values["{FORM_START}"] = form_start ();
$tag_values["{FORM_END}"] .= form_end ("Submit New Password");
$tag_values["{PAGE TITLE}"] = page_title_table();
$tag_values["{MENU}"] = menu();
$tag_values["{HEAD}"] = head ($page_title, $head_page_specific, $head_dynamic_style);
$tag_values["{FOOTER}"] = footer();

questions_into_tags ($pull_questions->questions, $pull_questions->question_elements, $validation->vetted_form_answer);

//Parse the template for this page, replacing the tags with the HTML defined above.
template_parser ("add_groups.html", $tag_values);
?>
Return current item: Homeless Mangement Information System