Added password change
This commit is contained in:
@@ -13,22 +13,26 @@
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
/*
|
||||
* This view adds the main layout over the screen.
|
||||
* Header and menu.
|
||||
*/
|
||||
|
||||
include("../views/main.php");
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
updateSettings();
|
||||
}?>
|
||||
switch ($_POST["form"]) {
|
||||
case "profile":
|
||||
updateSettings();
|
||||
break;
|
||||
case "password":
|
||||
updatePassword();
|
||||
break;
|
||||
case "email":
|
||||
break;
|
||||
case "picture":
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
<?php
|
||||
/* Add your view files here. */
|
||||
include("../views/settings-view.php");
|
||||
|
||||
/* This adds the footer. */
|
||||
include("../views/footer.php");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user