28 lines
557 B
PHP
28 lines
557 B
PHP
<?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" );
|
|
OC_APP::setActiveNavigationEntry( "help" );
|
|
|
|
$kbe=OC_OCSCLIENT::getKnownledgebaseEntries();
|
|
|
|
|
|
$tmpl = new OC_TEMPLATE( "help", "index", "admin" );
|
|
$tmpl->assign( "kbe", $kbe );
|
|
$tmpl->assign( "pagecount", $pagecount );
|
|
$tmpl->assign( "page", $page );
|
|
$tmpl->printPage();
|
|
|
|
?>
|