help.php 788 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright (c) 2011, Frank Karlitschek karlitschek@kde.org
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. require_once('../lib/base.php');
  8. OC_Util::checkLoggedIn();
  9. // Load the files we need
  10. OC_Util::addStyle( "settings", "settings" );
  11. OC_App::setActiveNavigationEntry( "help" );
  12. $pagesize=7;
  13. if(isset($_GET['page'])) $page=$_GET['page']; else $page=0;
  14. $kbe=OC_OCSClient::getKnownledgebaseEntries($page,$pagesize);
  15. $totalitems=$kbe['totalitems'];
  16. unset($kbe['totalitems']);
  17. $pagecount=ceil($totalitems/$pagesize);
  18. $tmpl = new OC_Template( "settings", "help", "user" );
  19. $tmpl->assign( "kbe", $kbe );
  20. $tmpl->assign( "pagecount", $pagecount );
  21. $tmpl->assign( "page", $page );
  22. $tmpl->printPage();
  23. ?>