diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-16 17:49:57 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-16 17:49:57 +0200 |
commit | af1e48df80680dfa2b6e1367752a41aee750c308 (patch) | |
tree | 6207783e6124c9fb795f2eb12b3d67886c239731 /help | |
parent | b5f913a3fc66a3036fc7ea291d67a72f7a0ecd40 (diff) | |
download | nextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.tar.gz nextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.zip |
Changes in the user experience
Diffstat (limited to 'help')
-rw-r--r-- | help/appinfo/app.php | 6 | ||||
-rw-r--r-- | help/index.php | 33 | ||||
-rw-r--r-- | help/templates/index.php | 8 |
3 files changed, 47 insertions, 0 deletions
diff --git a/help/appinfo/app.php b/help/appinfo/app.php new file mode 100644 index 00000000000..184f4d345be --- /dev/null +++ b/help/appinfo/app.php @@ -0,0 +1,6 @@ +<?php + +OC_APP::register( array( "id" => "help", "name" => "Help" )); +OC_APP::addPersonalMenuEntry( array( "order" => 2, "href" => OC_HELPER::linkTo( "help", "index.php" ), "name" => "Help" )); + +?> diff --git a/help/index.php b/help/index.php new file mode 100644 index 00000000000..0a54ddb9cf4 --- /dev/null +++ b/help/index.php @@ -0,0 +1,33 @@ +<?php + +require_once('../lib/base.php'); +require( 'template.php' ); +if( !OC_USER::isLoggedIn()){ + header( "Location: ".OC_HELPER::linkTo( "index.php" )); + exit(); +} + +$settings = array(); + +// Do the work ... +if( $_POST["submit"] ) +{ + if( $_POST["newpassword"] != $_POST["newpasswordconfirm"] ){ + // Say "Passwords not equal" + } + else{ + if( OC_USER::checkPassword( $_SESSION["username"], $_POST["password"] )){ + // Set password + OC_USER::setPassord( $_SESSION["username"], $_POST["newpassword"] ); + } + else{ + // Say "old password bad" + } + } +} + +$tmpl = new OC_TEMPLATE( "help", "index", "user" ); +$tmpl->assign( "settings", $settings ); +$tmpl->printPage(); + +?> diff --git a/help/templates/index.php b/help/templates/index.php new file mode 100644 index 00000000000..945969d88c5 --- /dev/null +++ b/help/templates/index.php @@ -0,0 +1,8 @@ +<?php +/* + * Template for settings page + */ +?> +<h1>Help</h1> + +Help.
\ No newline at end of file |