nextcloud/help/index.php

29 lines
557 B
PHP
Raw Normal View History

2011-04-16 19:49:57 +04:00
<?php
require_once('../lib/base.php');
require( 'template.php' );
if( !OC_USER::isLoggedIn()){
header( "Location: ".OC_HELPER::linkTo( "index.php" ));
exit();
}
//hardcode for testing
$pagecount=8;
$page=2;
// Load the files we need
OC_UTIL::addStyle( "help", "help" );
2011-04-16 20:06:23 +04:00
OC_APP::setActiveNavigationEntry( "help" );
2011-04-16 19:49:57 +04:00
$kbe=OC_OCSCLIENT::getKnownledgebaseEntries();
2011-04-16 19:49:57 +04:00
2011-04-17 17:05:34 +04:00
$tmpl = new OC_TEMPLATE( "help", "index", "admin" );
$tmpl->assign( "kbe", $kbe );
$tmpl->assign( "pagecount", $pagecount );
$tmpl->assign( "page", $page );
2011-04-16 19:49:57 +04:00
$tmpl->printPage();
?>