Location: PHPKode > projects > EverQuest Roster/Gallery > html/change_pass.php
<?
        /**********************************************************************************
        *                                                                                 *
        *                              edit_profile.php                                     *
        *                             -------------------                                 *
        *                                                                                 *
        * Program           : EverQuest Roster/Gallery v1.7b1                             *
        * Copyright         : (C) 2001 - 2002 BladeTek Internet Services &                *
        *                                                     The EQRG Developement Team  *
        * Website           : http://eqcode.roleplayersinteraction.com                    *
        * Support Website   : http://www.sourceforge.net/projects/eqrostergallery         *
        * Email             : hide@address.com                                        *
        *                                                                                 *
        * For license information, please read the documents directory which              *
        * came with this edition                                                          *
        *                                                                                 *
        **********************************************************************************/

        include "includes/funcs.php";
        include "includes/read_profile.php";
        include "includes/write_profile.php";

        $id = $SESSION["uid"];
        if ($submit == 1) {
                $err = pass_change($id, $HTTP_POST_VARS);

                if (!$err) {
                        header("Location: edit_profile.php?id=$id");
                        exit;
                }
        } else {
                $read_err = read_user($id, $chars, $userpro);
        }

        draw_header("Change Password");
        draw_table_header("Change Password", "" . $options["scriptw"] . "");
        draw_text_header("Change Password", "" . $options["pntf"] . "", "" . $options["pnts"] . "", "" . $options["pntc"] . "");

        draw_back_header("Roster", "index.php", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        draw_back_header("Gallery", "gallery.php", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        draw_back_header("Events", "events.php", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        draw_back_header("Bank", "bank.php", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "");
        (isset($SESSION["uid"]) ? draw_back_header("Logout", "index.php?logout=1", "" . $options["tmf"] . "", "" . $options["tms"] . "", "" . $options["tmc"] . "") : "");
        if ($read_err) {
                echo "<p>\n";
                echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\" bgcolor=\"" . $options["tbc"] . "\">\n";
                draw_formatted_error("Load Error", $read_err, "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
                echo "</table>\n";
        } elseif (!$SESSION["uid"]) {
                echo "<p>\n";
                echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\" bgcolor=\"" . $options["tbc"] . "\">\n";
                draw_formatted_error("Load Error", "You must be logged in to change your password.", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
                echo "</table>\n";
        } else {
                echo "<p>\n";
                echo "<table width=\"" . $options["nowi"] . "\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" align=\"center\" bgcolor=\"" . $options["nbc"] . "\">\n";
                echo "<tr>\n";
                echo "<td bgcolor=\"" . $options["nbgc1"] . "\" align=\"right\">\n";
                echo "<font face=\"" . $options["ntf"] . "\" size=\"" . $options["nts"] . "\" color=\"" . $options["ntc"] . "\"><b>Notes</b></font>\n";
                echo "</td>\n";
                echo "</tr>\n";
                echo "<tr>\n";
                echo "<td bgcolor=\"" . $options["nbgc2"] . "\">\n";
                echo "<font face=\"" . $options["ntfa"] . "\" size=\"" . $options["ntsa"] . "\" color=\"" . $options["ntca"] . "\">\n";
                echo "You will need to re-login after your passwords is changed.\n";
                echo "</font>\n";
                echo "</td>\n";
                echo "</tr>\n";
                echo "</table>\n";
                echo "<p>\n";
                echo "<form action=\"$PHP_SELF?submit=1\" method=\"post\">\n";
                echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"0\" bgcolor=\"" . $options["tbc"] . "\">\n";
                ($err ? draw_formatted_error("Error", $err, "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "") : "");
                draw_formatted_password("Old Password", "passwd", "20", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
                draw_formatted_password("New Password", "npasswd", "20", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
                draw_formatted_password("Verify New Password", "vpasswd", "20", "20", "" . $options["ticl"] . "", "" . $options["ticr"] . "", "" . $options["ttcl"] . "", "" . $options["ttcr"] . "", "" . $options["ttfl"] . "", "" . $options["ttfr"] . "", "" . $options["ttsl"] . "", "" . $options["ttsr"] . "");
                echo "<tr>\n";
                echo "<td bgcolor=\"" . $options["ticl"] . "\">\n";
                echo "&nbsp;\n";
                echo "</td>\n";
                echo "<td bgcolor=\"" . $options["ticr"] . "\">\n";
                echo "<input type=\"submit\" value=\"Change Password\">\n";
                echo "</td>\n";
                echo "</tr>\n";
                echo "</form>\n";

                echo "</table>\n";
        }

        draw_copyright();
        draw_table_footer("Change Password");
        draw_footer();
?>
Return current item: EverQuest Roster/Gallery