createElement("FormInfo"); /** * Forgot Password form has been submitted and no errors * were found with the form (the username is in the database) */ if(isset($_SESSION['resetcipass'])){ /** * New password was generated for user and sent to user's * email address. */ if($_SESSION['resetcipass']){ $element = $xml->createElement("mode", "success"); $rootElement->appendChild($element); } /** * Email could not be sent, therefore password was not * edited in the database. */ else{ $element = $xml->createElement("mode", "fail"); $rootElement->appendChild($element); } unset($_SESSION['resetcipass']); } else if (isset($_SESSION['setcipass'])) { if ($_SESSION ['setcipass']) { $element = $xml->createElement("mode", "success"); $rootElement->appendChild($element); } else{ $element = $xml->createElement("mode", "fail"); $rootElement->appendChild($element); } unset($_SESSION['setcipass']); } if ($form->num_errors > 0) { $errs = $xml->createElement("Errors"); $common->addXMLChildren($xml, $errs, $form->errors); $rootElement->appendChild($errs); $vals = $xml->createElement("Values"); $common->addXMLChildren($xml, $vals, $form->values); $rootElement->appendChild($vals); } $common->addXMLChildren($xml, $rootElement, array( "root"=>$common->rootPath() )); $xml->appendChild($rootElement); $pageContents = $common->transformXML($common->root()."/style/setCheckinPass.xsl", $xml); // $xml->formatOutput = true; // $pageContents = $xml->saveXML(); $page->replace_files(array( "memberLinks" => "layout/memberLinks.php", "pageLinks" => "layout/pageLinks.php", "loginWidget" => "layout/loginWidget.php" )); $page->replace_tags(array( "sidebar" => "", "pageContents" => $pageContents, "version" => VERSION )); getHeader($pageTitle, true); echo $page->output(); getFooter(); $database->closeConnection(); ?>