help.php 768 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * 2012 Frank Karlitschek frank@owncloud.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();