summaryrefslogtreecommitdiffstats
path: root/help/index.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-04-17 00:53:10 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-04-17 00:53:10 +0200
commitca04b33abebce8ac21b561882761b4467302639d (patch)
treee9c6cc5f8e228fdd0cbca4a277e2419d587d005e /help/index.php
parent7de3ecfe5f5e7eebe88b5eb7027abfa0c73898cd (diff)
downloadnextcloud-server-ca04b33abebce8ac21b561882761b4467302639d.tar.gz
nextcloud-server-ca04b33abebce8ac21b561882761b4467302639d.zip
first step on online ocs knowledgebase integration
Diffstat (limited to 'help/index.php')
-rw-r--r--help/index.php21
1 files changed, 3 insertions, 18 deletions
diff --git a/help/index.php b/help/index.php
index dafbd05cf33..fe20c1c4ab5 100644
--- a/help/index.php
+++ b/help/index.php
@@ -8,27 +8,12 @@ if( !OC_USER::isLoggedIn()){
}
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"
- }
- }
-}
+$kbe=OC_OCSCLIENT::getKnownledgebaseEntries();
+
$tmpl = new OC_TEMPLATE( "help", "index", "user" );
-$tmpl->assign( "settings", $settings );
+$tmpl->assign( "kbe", $kbe );
$tmpl->printPage();
?>