diff options
Diffstat (limited to 'help')
-rw-r--r-- | help/appinfo/app.php | 5 | ||||
-rw-r--r-- | help/index.php | 34 | ||||
-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..661b554f417 --- /dev/null +++ b/help/appinfo/app.php @@ -0,0 +1,5 @@ +<?php + +OC_APP::register( array( "id" => "help", "name" => "Help" )); + +?> diff --git a/help/index.php b/help/index.php new file mode 100644 index 00000000000..dafbd05cf33 --- /dev/null +++ b/help/index.php @@ -0,0 +1,34 @@ +<?php + +require_once('../lib/base.php'); +require( 'template.php' ); +if( !OC_USER::isLoggedIn()){ + header( "Location: ".OC_HELPER::linkTo( "index.php" )); + exit(); +} + +OC_APP::setActiveNavigationEntry( "help" ); +$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 |