summaryrefslogtreecommitdiffstats
path: root/settings/help.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-12 22:41:12 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-12 22:41:12 +0100
commitf85106b6b5d2e37ebf4cb850a076c4bb67f2a735 (patch)
treecc1d554e4059197af3ea3ee82aad0927ded582a4 /settings/help.php
parentb8b64d6ffc0645f5806d7120e337c2652e49c2e7 (diff)
downloadnextcloud-server-f85106b6b5d2e37ebf4cb850a076c4bb67f2a735.tar.gz
nextcloud-server-f85106b6b5d2e37ebf4cb850a076c4bb67f2a735.zip
first version of the new documentation system integration.
Diffstat (limited to 'settings/help.php')
-rw-r--r--settings/help.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/settings/help.php b/settings/help.php
index 69a5ec9c146..6f99596b2ba 100644
--- a/settings/help.php
+++ b/settings/help.php
@@ -12,15 +12,19 @@ OC_App::loadApps();
OC_Util::addStyle( "settings", "settings" );
OC_App::setActiveNavigationEntry( "help" );
-$pagesize=7;
-if(isset($_GET['page'])) $page=$_GET['page']; else $page=0;
-$kbe=OC_OCSClient::getKnownledgebaseEntries($page, $pagesize);
-$totalitems=$kbe['totalitems'];
-unset($kbe['totalitems']);
-$pagecount=ceil($totalitems/$pagesize);
+
+if(isset($_GET['mode']) and $_GET['mode']=='admin') {
+ $url=OC_Helper::linkToAbsolute( 'core', 'docu/admin' );
+}else{
+ $url=OC_Helper::linkToAbsolute( 'core', 'docu/user' );
+}
+
+$url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user';
+$url2=OC_Helper::linkToRoute( "settings_help" ).'?mode=admin';
$tmpl = new OC_Template( "settings", "help", "user" );
-$tmpl->assign( "kbe", $kbe );
-$tmpl->assign( "pagecount", $pagecount );
-$tmpl->assign( "page", $page );
+$tmpl->assign( "admin", OC_Group::inGroup(OC_User::getUser(), 'admin') );
+$tmpl->assign( "url", $url );
+$tmpl->assign( "url1", $url1 );
+$tmpl->assign( "url2", $url2 );
$tmpl->printPage();